以下是CentOS下Nginx的常用命令汇总:
sudo systemctl start nginxsudo systemctl stop nginxsudo systemctl restart nginxsudo systemctl reload nginxsudo systemctl status nginxsudo systemctl enable nginxsudo systemctl disable nginxsudo nginx -tnginx -Vsudo nginx -T(需root权限)ps aux | grep nginxsudo pkill nginxtail -f /var/log/nginx/access.logtail -n 100 /var/log/nginx/error.log