安装:https://blog.csdn.net/jklcl/article/details/119360729?spm=1001.2014.3001.5501
conf/nginx.conf中配置
server {
listen 80;
charset utf-8;
server_name 服务器IP;
root /data/Downloads/;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
执行sbin/nginx -t 检查配置
执行sbin/nginx -s reload 更新
浏览器输入服务器IP
即可下载,或者wget