1 下载nginx

下载地址 http://nginx.org/en/download.html

下载当前稳定版本。

windows安装nginx

下载完成后解压。

2. 配置nginx

nginx文件夹中 conf文件夹下的nginx.conf

windows安装nginx

 

3 启动

在nginx文件夹下执行命令。

常用命令如下:

start nginx : 启动nginx
nginx -s reload  :重新加载

nginx -s reopen  :重新打开日志
nginx -t -c /path/to/nginx.conf 测试nginx配置文件是否正确

nginx -s stop  :快速停止nginx
nginx -s quit  :完整有序的停止nginx

 

相关文章:

  • 2021-04-12
  • 2021-09-07
  • 2021-11-24
  • 2022-02-06
猜你喜欢
  • 2021-10-03
  • 2021-06-10
  • 2021-07-27
  • 2021-12-04
  • 2022-12-23
  • 2021-04-20
  • 2021-06-20
相关资源
相似解决方案