nginx on linxu server start close configure check command of recommended

  • 2020-10-31 22:06:41
  • OfStack

Close the nginx

./ ES4en-ES5en stop -- Quickly stop nginx

Process number ps-ef |grep ninx kill-9 is also available

Start nginx directly, often used for the first time

./sbin/nginx -c conf/nginx.conf

nginx checks the configuration

./ ES26en-ES27en --echo out success or fail

nginx restart

./ ES36en-ES37en reload -- the configuration file is reloaded and restarted

Common ways:

1. Suppose you want to modify your domain name, after modifying server_name, you need to check the configuration, execute ES45en-ES46en successfully, execute ES47en-ES48en reload

conclusion


Related articles: