nginx -- basic operation commands

        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

Guess you like

Origin blog.csdn.net/DGH2430284817/article/details/130845498