一、安装及启动

  1. Windows部分安装

cd c:
unzip nginx-1.11.10.zip
cd nginx-1.11.10
start nginx

命令行查任务运行状态
C:nginx-1.11.10>tasklist /fi "imagename eq nginx.exe"

Image Name PID Session Name Session# Mem Usage
=============== ======== ============== ========== ============
nginx.exe 652 Console 0 2 780 K
nginx.exe 1332 Console 0 3 112 K

启动、关闭、重新加载
nginx -s stop //fast shutdown
nginx -s quit //graceful shutdown 平滑关闭
nginx -s reload //changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes
nginx -s reopen //re-opening log files

相对路径以安装目录为准:
C:nginx-1.11.10
access_log logs/site.log;
root C:/web/html;

  1. Linux部分安装
    待补充


最后修改:2021 年 01 月 31 日
如果觉得我的文章对你有用,请随意赞赏