Open dpc761218914 opened 6 years ago
1、官网下载当前最稳定的版本 http://nginx.org/en/download.html 2、下载可以直接启动nginx.exe 访问localhost可以直接访问当index页面,这个页面是在F:\nginx\nginx-1.14.0\html 路径下面。默认配置的根路径是在html下。 3、如果想修改磁盘路径,就需要修改:
location / { # 例如指定到本地 F:/nginx/images;目录下 root F:/nginx/images; }
注意坑:1、修改配置(nginx-1.14.0\conf\ngnix.conf)需要用编译器修改,不能用txt修改。 2、修改配置后如果需要生效,需要在进程管理中关闭。
ngnix: 中文文档 http://www.nginx.cn/doc/
1、官网下载当前最稳定的版本 http://nginx.org/en/download.html 2、下载可以直接启动nginx.exe 访问localhost可以直接访问当index页面,这个页面是在F:\nginx\nginx-1.14.0\html 路径下面。默认配置的根路径是在html下。 3、如果想修改磁盘路径,就需要修改:
注意坑:1、修改配置(nginx-1.14.0\conf\ngnix.conf)需要用编译器修改,不能用txt修改。 2、修改配置后如果需要生效,需要在进程管理中关闭。
ngnix: 中文文档 http://www.nginx.cn/doc/