1.ssh端口位置
vim /etc/ssh/sshd_config
2.NGINX位置
3.查看进程,,kill进程
ps -ef:grep nginx ;kill -quit 12345 ;pkill -9 nginx
4.查看端口占用
netstat -ntlp
5.定时
yum install vixie-cron crontabs ; crontab -l ;chkconfig -list
6.防火墙
yum install firewalld firewalld-config
firewall-cmd --zone=public--add-port=80/tcp --permanent
firewall-cmd --zone=public--remove-port=80/tcp --permanent
systemctl start firewalld.service
firewall-cmd --reload
firewall-cmd --permanent --list-port
systemctl enable firewalld
systemctl status firewalld
iptables -L -n