版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_37933685/article/details/89342051
centos:
vi /etc/sysconfig/selinux
修改
...
SELINUX=disabled
...
修改完后
reboot
7:
firewall-cmd --zone=public --add-port=8888/tcp --permanent
6:
iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart
firewall-cmd --zone=public --remove-port=8888/tcp --permanent
firewall-cmd --query-port=8888/tcp
7:
firewall-cmd --list-ports
6:
/etc/init.d/iptables status
7:
firewall-cmd --reload
6:
service iptables restartd
7:
systemctl stop firewalld.service
6:
service iptables stop
7:
systemctl start firewalld.service
6:
service iptables start
7:
systemctl enable firewalld.service
6:
chkconfig iptables on
7:
systemctl disable firewalld.service
6:
chkconfig iptables off