./nginx -s reload | ./nginx 重启
netstat -tln netstat -ntlp
netstat -tln # 查看TCP监听端口 netstat -tn # 查看所有TCP连接
netstat -tunlp
用于显示 tcp,udp 的端口和进程等相关情况
查看端口占用
systemctl stop firewalld #关闭防火墙
systemctl status firewalld #查看防火墙状态
、永久关闭防火墙(通过命令):
1、对于 iptables
防火墙:
sudo service iptables stop
sudo chkconfig iptables off