{"id":4111,"date":"2021-09-02T19:30:14","date_gmt":"2021-09-02T11:30:14","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=4111"},"modified":"2021-09-02T19:31:57","modified_gmt":"2021-09-02T11:31:57","slug":"centos7%e9%98%b2%e7%81%ab%e5%a2%99%e7%ab%af%e5%8f%a3%e5%bc%80%e6%94%be%e5%8f%8a%e6%9f%a5%e7%9c%8b%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=4111","title":{"rendered":"Centos7\u9632\u706b\u5899\u7aef\u53e3\u5f00\u653e\u53ca\u67e5\u770b\u547d\u4ee4"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>#\u5f00\u653e\uff0c\u79fb\u9664\u7aef\u53e3\uff1b\u91cd\u65b0\u8f7d\u5165\u4f7f\u4e4b\u751f\u6548\nfirewall-cmd --zone=public --add-port=5672\/tcp --permanent\nfirewall-cmd --zone=public --remove-port=5672\/tcp --permanent\nfirewall-cmd --reload\n\n#\u67e5\u770b\u6240\u6709\u5f00\u653e\u7684\u7aef\u53e3\nfirewall-cmd --zone=public --list-ports\n\n#\u5173\u95ed\u9632\u706b\u5899\nsystemctl stop firewalld.service\n\n#\u67e5\u770b\u9632\u706b\u5899\u72b6\u6001\nfirewall-cmd --state\n\n#\u67e5\u770b\u76d1\u542c\u7684\u7aef\u53e3\nnetstat -lnpt\n\/\/ yum install -y net-tools\n\n#\u68c0\u67e5\u7aef\u53e3\u88ab\u54ea\u4e2a\u8fdb\u7a0b\u5360\u7528\nnetstat -lnpt |grep 5672<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4111"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4111"}],"version-history":[{"count":2,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4111\/revisions"}],"predecessor-version":[{"id":4113,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4111\/revisions\/4113"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}