Before using nginx operation commands, you must enter the nginx directory
/usr/local/nginx/sbin
#查看版本号
./nginx -v
#启动nginx
./nginx
#停止nginx
./nginx -s stop
#重新加载nginx
./nginx -s reload
Before using nginx operation commands, you must enter the nginx directory
/usr/local/nginx/sbin
#查看版本号
./nginx -v
#启动nginx
./nginx
#停止nginx
./nginx -s stop
#重新加载nginx
./nginx -s reload