Nginx读书笔记 --(一)安装及启动
一、安装及启动
- 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;
- Linux部分安装
待补充
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »