################# Windows 启动
配置文件更新了 nginx -s reload
nginx -s stop 或者 nginx -s quit
stop表示立即停止nginx,不保存相关信息
quit表示正常退出nginx,并保存相关信息
start nginx 启动
当后台无法关闭nginx 进程时
cmd 输入命令 netstat -ano 如图 找到nginx监听端口的pid
netstat -ano | findstr “8889”
tasklist | findstr “45324”
查询是 nginx.exe 6844 RDP-Tcp#63 1 7,948 K
taskkill /f /t /im nginx.exe 关闭进程
再重新启动 nginx 就可以了
################# Linux 安装与启动
tar -zxvf
cd /nginx-1.9.15
./configure --with-http_stub_status_module --with-http_ssl_module
make & make install
sudo /usr/local/nginx/sbin/nginx -c /jimmy/soft/nginx-1.9.15/conf/nginx.conf //路径要改变
cd sbin/
./nginx -s reload
root 745 675 0 7月05 ? 00:00:00 nginx: master process /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx
root 34032 675 0 09:11 ? 00:00:00 /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx
root 34032 675 0 09:11 ? 00:00:00 /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx
root 742 675 0 7月05 ? 00:00:00 svlogd -tt /var/log/gitlab/nginx