發表文章

目前顯示的是 7月, 2018的文章

[Linux ] centos iptables 防火牆設定方法(開啟指定Port)

圖片
今天Linux菜菜小弟需要開啟端口來做websocket,就來記錄下如何開啟iptables port,步驟如下: 1.開啟8080 port,輸入 /sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT   即可 2.重新啟動防火牆 /etc/init.d/iptables restart 3. 查看所有port /etc/init.d/iptables status 如上圖表示已經開啟8080 port了