下载地址
https://nginx.org/en/download.html
关闭nginx服务的命令为nginx.exe -s stop
搭建文件服务器的配置方法
以windows系统为例,在nginx.conf中加入:
location ^~ /files/ {
alias D:/some/path/;
index index.html index.htm;
}
然后利用http://localhost/files/1.jpg即可访问到对应文件。
下载地址
https://nginx.org/en/download.html
关闭nginx服务的命令为nginx.exe -s stop
搭建文件服务器的配置方法
以windows系统为例,在nginx.conf中加入:
location ^~ /files/ {
alias D:/some/path/;
index index.html index.htm;
}
然后利用http://localhost/files/1.jpg即可访问到对应文件。