How to start and restart nginx in Linux system

WBOY
Release: 2023-05-12 13:19:13
forward
1719 people have browsed it

1. Enter the sbin directory under the nginx installation directory.

2. Execute the following command:

./nginx -c /usr/local/nginx/nginx/conf/nginx. conf

● Where/usr/local/nginx/nginx/conf/nginx.conf is your own nginx.conf path. ●The -c parameter specifies the path to the nginx configuration file to be loaded.

How to restart nginx in linux?

Restart smoothly:

1. Enter the sbin directory under the nginx installation directory

2. Execute the following command:

./nginx -s reload

How to stop nginx in linux?

1. Enter the sbin directory under the nginx installation directory

2. Execute the following command:

./nginx -s stop

The above is the detailed content of How to start and restart nginx in Linux system. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!