or use
/usr/nginx/sbin/nginx -s reload
< Br>
Note, after modifying the configuration file, it is best to check whether the modified configuration file is correct, so as to avoid the Nginx error after the restart, which affects the stable operation of the server. The command to determine whether the Nginx configuration is correct is as follows: nginx -t -c /usr/nginx/conf/nginx.conf
or
/usr/nginx/sbin/nginx -t
< Br>Smooth upgrade If the server is running Nginx to upgrade, add or remove modules, we need to stop the server and modify it accordingly, so the server will stop service for a period of time, Nginx can be carried out without downtime Various upgrade actions without affecting server operation. Step 1: If you upgrade the Nginx program, first replace the old program file with the new program. If you compile and install the new program, compile it directly into the Nginx installation directory. Step 2: Execute the command kill -USR2 The main process number or process file name of the old program. At this time, the old Nginx main process will rename its own process file to .oldbin and execute the new version of Nginx. The old and new Nginx will run in conjunction with the city to process the request. At this time, you should gradually stop the old version of Nginx, enter the command: kill -WINCH The old version of the main process number will slowly exit the old work process as the task is completed, the new Nginx work process will gradually replace the old version of the work process. At this point, we can decide to use the new version or revert to the old version. Do not reload the configuration to start the new /old work process kill -HUP old /new version of the main process number gracefully close the old /new process kill -QUIT old /new main process number If the error is reported at this time, the prompt is still not ended, use the following command Close the old /new worker process, then close the main process number: kill -TERM old /new work process number. If you want to restore to the old version, only the above steps are to operate the new version of the main process number, if To use the new version to operate the old master process number in the above steps. The above is some basic operations of Nginx. I hope that Nginx will have a better way to handle these operations later. It is better to use Nginx commands instead of sending system signals to the Nginx process. ==========================================================
Grep nginx/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.confkill -quit 5900
Computer Store News Microsoft released Windows8 RTM for PC OEMs and manufacturer partners on August
Get the NIC traffic through the 3rd party tool, this must be very clear. In fact, the effect can be
JFS was developed by IBM and originally appeared on the AIX operating system, which provides a log-b
One of the benefits of learning Linux is that you can understand how the hardware works and the pri
Linux LAMP to build web application system
Several security precautions for Linux systems
Compile command for c mysql program under Linux
Linux system single network card batch add different IP
Sed mode space and reserved space
Linux release cache memory tutorial
Talking about the media player under Linux (on)
Linux system learning method entry experience
How to build l2tpd vpn server with centOS5.5
Epoll use detailed explanation
How does the Linux system change face Win8 Linux system Win8 skin
Win7 system registry to set the Windows service startup order method
How to use SkyDrive cloud storage is more convenient?
WPS Document Encrypted Graphic Steps Teaching
How to set up Win7 computer standby? Win7 set the computer standby method
Microsoft will release Windows 8 CTP version next week
Svn use under linux (svn command)
Web page acceleration graphics processing experience skills