原文地址:开发者导航 · 你想要的,我全都有!
windows系统下,如果不像每次都输入命令重启,可以在nginx安装目录下新添一个启动批处理文件startup.bat,双击即可运行。
内容如下:
==============================================
@echo off rem 如果启动前已经启动nginx并记录下pid文件,会kill指定进程 nginx.exe -s stop rem 测试配置文件语法正确性 nginx.exe -t -c conf/nginx.conf rem 显示版本信息 nginx.exe -v rem 按照指定配置去启动nginxnginx.exe -c conf/nginx.conf
======================================
原文地址:开发者导航 · 你想要的,我全都有!
windows系统下,如果不像每次都输入命令重启,可以在nginx安装目录下新添一个启动批处理文件startup.bat,双击即可运行。
内容如下:
==============================================
@echo off rem 如果启动前已经启动nginx并记录下pid文件,会kill指定进程 nginx.exe -s stop rem 测试配置文件语法正确性 nginx.exe -t -c conf/nginx.conf rem 显示版本信息 nginx.exe -v rem 按照指定配置去启动nginxnginx.exe -c conf/nginx.conf
======================================