{"id":5083,"date":"2022-03-11T23:27:04","date_gmt":"2022-03-11T15:27:04","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=5083"},"modified":"2022-03-10T17:23:49","modified_gmt":"2022-03-10T09:23:49","slug":"linux%e7%b3%bb%e7%bb%9f%e5%bc%80%e5%90%af%e5%92%8c%e5%85%b3%e9%97%ad%e9%98%b2%e7%81%ab%e5%a2%99%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/5083.html","title":{"rendered":"Linux\u7cfb\u7edf\u5f00\u542f\u548c\u5173\u95ed\u9632\u706b\u5899\u547d\u4ee4"},"content":{"rendered":"
\u5f00\u542f\uff1a chkconfig iptables on
\n\u5173\u95ed\uff1a\u00a0chkconfig iptables off<\/p>\n
\u5f00\u542f\uff1a service iptables start
\n\u5173\u95ed\uff1a\u00a0service iptables stop<\/p>\n
vim \/etc\/sysconfig\/iptables
\n\u6dfb\u52a0\u60f3\u8981\u5f00\u542f\u7684\u76f8\u5173\u7aef\u53e3
\n-A INPUT -m state --state NEW -m tcp -p tcp --dport 6379 -j ACCEPT
\n-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
\n-A INPUT -m state --state NEW -m tcp -p tcp --dport 8081 -j ACCEPT
\n-A INPUT -m state --state NEW -m tcp -p tcp --dport 8082 -j ACCEPT
\n-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT<\/p>\n
service iptables restart<\/p>\n","protected":false},"excerpt":{"rendered":"
Linux\u7cfb\u7edf\u5f00\u542f\u548c\u5173\u95ed\u9632\u706b\u5899\u547d\u4ee4 1.\u6c38\u4e45\u6709\u6548 \u5f00\u542f\uff1a chkconfig iptables on \u5173\u95ed\uff1a\u00a0 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1621,1618,1619,1620],"class_list":{"0":"post-5083","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-jiaocheng","7":"tag-linux","10":"tag-1620"},"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=5083"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5083\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=5083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=5083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=5083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}