通用
#查看cpu使用情况
top -bn 1 -i -c
Nginx
#编辑配置文件
vi /usr/local/nginx/conf/nginx.conf
#服务重启
systemctl restart nginx.service
#服务开机启动
systemctl enable nginx.service
防火墙
#关闭当前防火墙
systemctl stop firewalld
#开机防火墙不启动
systemctl disable firewalld
通用
#查看cpu使用情况
top -bn 1 -i -c
Nginx
#编辑配置文件
vi /usr/local/nginx/conf/nginx.conf
#服务重启
systemctl restart nginx.service
#服务开机启动
systemctl enable nginx.service
防火墙
#关闭当前防火墙
systemctl stop firewalld
#开机防火墙不启动
systemctl disable firewalld