Basic Nginx Commands

2024 年 5 月 5 日 星期日(已编辑)
40
这篇文章上次修改于 2024 年 5 月 5 日 星期日,可能部分内容已经不适用,如有疑问可询问作者。

Basic Nginx Commands

Here are some basic nginx commands used in the process of deploying this site.

Starting Nginx

cd /etc/nginx
nginx

Open Nginx config file ( and then modify )

vi /etc/nginx/nginx.conf

Test after modify nginx.conf

nginx -t

Load new nginx.conf gracefully

nginx -s reload
  • Loading...
  • Loading...
  • Loading...
  • Loading...
  • Loading...