How to shut down/restart/start nginx

How to shut down/restart/start nginx

closure

service nginx stop

systemctl stop nginx

start up

service nginx start

systemctl start nginx

Restart

service nginx reload

systemctl restart nginx

Automatically run when the system starts

systemctl enable nginx

Disable automatic operation when the system starts

systemctl disable nginx

Knowledge point expansion:

First, start nginx using the configuration file.

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

Restart the service: service nginx restart

2. Quickly stop or shut down Nginx: nginx -s stop

3. Stop or shut down Nginx normally: nginx -s quit

4. Modify the configuration file and reload the command: nginx -s reload

This is the end of this article about how to shut down/restart/start nginx. For more information about how to shut down/restart/start nginx, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of basic operation commands such as starting and stopping Nginx under Windows
  • Configure Nginx+PHP basic operations under Windows (start, restart and exit)

<<:  Vue+js realizes video fade-in and fade-out effect

>>:  js to realize a simple puzzle game

Recommend

Docker beginners' first exploration of common commands practice records

Before officially using Docker, let's first f...

Apache ab concurrent load stress test implementation method

ab command principle Apache's ab command simu...

React implements import and export of Excel files

Table of contents Presentation Layer Business Lay...

2017 latest version of windows installation mysql tutorial

1. First, download the latest version of MySQL fr...

Gearman + MySQL to achieve persistence operation example

This article uses the gearman+mysql method to imp...

A brief discussion on the principle of Vue's two-way event binding v-model

Table of contents explain: Summarize Replenish Un...

How to encapsulate axios in Vue

Table of contents 1. Installation 1. Introduction...

Detailed explanation of the six common constraint types in MySQL

Table of contents Preface 1.notnull 2. unique 3. ...

Detailed explanation of the solution to the nginx panic problem

Regarding the nginx panic problem, we first need ...

Some suggestions for Linux system optimization (kernel optimization)

Disable swap If the server is running a database ...

Summary of various methods for Vue to achieve dynamic styles

Table of contents 1. Ternary operator judgment 2....

Tomcat8 uses cronolog to split Catalina.Out logs

background If the catalina.out log file generated...

Vendor Prefix: Why do we need a browser engine prefix?

What is the Vendor Prefix? Vendor prefix—Browser ...

The implementation process of Linux process network traffic statistics

Preface Linux has corresponding open source tools...