帮助命令:nginx -h
启动Nginx服务器 :sudo nginx
重启Nginx服务器:sudo nginx -s reload
查看进程: ps aux | grep nginx
配置文件路径:/usr/local/nginx/conf/nginx.conf
检查配置文件:sudo nginx -t
指定启动配置文件:sudo nginx -c /usr/local/nginx/conf/nginx.conf
暴力停止服务:sudo nginx -s stop
优雅停止服务:sudo nginx -s quit
nginx 常用命令
最新推荐文章于 2024-05-26 10:51:47 发布