nginx start stop restart

Write it down for your notes to avoid forgetting

 

1. Stop

Universal view program process command

ps -ef | grep nginx

 

2. Start

 2.1 Switch to sbin in the installation directory

 2.2 Please check before starting: ./nginx -t

        See the following display nginx.conf syntax is ok

        nginx.conf test is successful

       The configuration file is correct!

 

2.3 Start command, you need to change your nginx corresponding directory

/opt/mysrv/nginx/sbin/nginx -c /opt/mysrv/etc/nginx/nginx.conf

 

Published 51 original articles · Like 4 · Visitor 7862

Guess you like

Origin blog.csdn.net/u012174809/article/details/105703663