随笔分类 - nginx
摘要:1.本地D:\aa\static建立1.html 2.nginx.conf中增加 location /static { root d:/aa; } 3.最后访问http://127.0.0.1:8888/static/1.html (我的nginx配的端口是8888) root的意思是从哪一个路径开
阅读全文
摘要:windows: 在nginx安装目录下 start nginx:启动 taskkill /f /t /im nginx.exe:停止 nginx -s reload 重新加载配置并刷新 linux: /usr/sbin/nginx目录下执行 nginx :启动nginx nginx -s stop
阅读全文
摘要:配置文件 #运行用户 #user nobody; #启动进程,通常设置成和cpu的数量相等或者2倍于cpu的个数(具体结合cpu和内存)。默认为1 worker_processes 1; #全局的错误日志和日志级别[ debug | info | notice | warn | error | cr
阅读全文

浙公网安备 33010602011771号