1.进入nginx目录(操作命令必备前提)
cd /usr/local/nginx/sbin
2.查看nginx版本
nginx -v
3.查看进程
ps aux|grep nginx
4.检查配置文件
nginx -t
5.重新加载配置文件
nginx -s reload
6.指定启动配置文件
nginx -c /usr/local/nginx/conf/nginx.conf
7.停止服务
nginx -s quit
8.强制停止服务
nginx -s stop
cd /usr/local/nginx/sbin
nginx -v
ps aux|grep nginx
nginx -t
nginx -s reload
nginx -c /usr/local/nginx/conf/nginx.conf
nginx -s quit
nginx -s stop