Focus on cloud service provider activities
Notes on website operation and maintenance

Nginx stop and start commands in several commonly used panels and one click packages

In the ECS WEB system, we mostly use Apache and Nginx engines, and the latter still wants to use more. For example, we may deploy Nginx engine on BT panel, LNMP, AMH panel, etc. Many times we need to use the command to restart Nginx. Even though some WEB panels can be started directly, sometimes it is faster to use commands.

Here Lao Zuo records several Nginx stop and start commands for common environments.

First, Pagoda panel Nginx command

Nginx installation directory

 /www/server/nginx

start-up

 /etc/init.d/nginx start

stop it

 /etc/init.d/nginx stop

restart

 /etc/init.d/nginx restart

Start load

 /etc/init.d/nginx reload

Nginx configuration file

 /www/server/nginx/conf/nginx.conf

Second, Nginx command of AMH panel

Restart Nginx

 amh nginx restart

Restore Configuration

 \cp /usr/local/nginx-generic-1.6.0-backup/conf/nginx.conf /usr/local/nginx-generic-1.6.0/conf/nginx.conf

Backup Configuration

 mv /usr/local/nginx-generic-1.6.0 /usr/local/nginx-generic-1.6.0-backup

Reinstall

 amh nginx-generic-1.6.0 install

Third, OneInstack Nginx command

Restart Nginx

 service nginx restart

Close Nginx

 service nginx stop

Have we all learned?

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Nginx stop and start commands in several commonly used panels and one click packages


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge