Modify the nginx configuration, restart the nginx process, and first enter the nginx directory
Check nginx status
ps -ef | grep nginx
Save the /conf/nginx.conf configuration file after modifying it.
Check if the configuration file is correct
./sbin/nginx -t
Check that the file configuration is normal
Close nginx
./sbin/nginx -s quit
Start nginx
./sbin/nginx
Finish