安装 Nginx:

sudo apt-get install nginx

启动 Nginx:

sudo nginx -c /etc/nginx/nginx.conf 

重启 Nginx:

sudo service nginx reload # or: sudo service nginx force-reload

关闭 Nginx:

sudo nginx -s stop

修改配置文件:

sudo vim /etc/nginx/sites-available/default 

重新载入配置文件:

sudo nginx -s reload

参考链接:

Comments
Write a Comment