![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Nginx
D调的聪
☂木头一个☂
展开
-
Nginx启动、关闭脚本
创建bat文件,放于 nginx.exe 所在目录。如启动bat:@echo offrem 如果启动前已经启动nginx并记录下pid文件,会kill指定进程nginx.exe -s quitrem 测试配置文件语法正确性nginx.exe -t -c conf/nginx.confrem 按照指定配置去启动nginxnginx.exe -c conf/nginx.conf正常运行启动脚本后,会出现一个Dos界面,此界面关闭不影响使用。如:如果运行启动脚本后Dos界面原创 2021-07-07 17:03:30 · 467 阅读 · 0 评论 -
Nginx配置TCP负载均衡+关闭日志
修改 \conf\nginx.conf 文件,修改后的内容如下:#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections 1024;}error_log nul原创 2021-07-07 16:51:57 · 424 阅读 · 0 评论