1 Enter the installation directory whereis nginx
##\2. Enter the path: cd /usr/local/nginx /sbin3 Start nginx command: ./nginx The following appears and the startup is successful 4 Check the status of nginx ps -ef | grep nginx starts if master appears Success 5 Close nginx command kill -9 8725 (the one above the process number) to close nginx \6. Stop nginx command: ./nginx - s stop 7. Restart nginx command: ./nginx -s reloadThe above is the detailed content of How to start and shut down nginx command in Linux. For more information, please follow other related articles on the PHP Chinese website!