1.學會安裝nginx
2.文件服務器的配置
server {
client_max_body_size 4G;
listen 82; ## listen for ipv4; this line is default and implied
server_name XXX.XXX.XXX; ##主機名或者域名
root /file/http;
location / {
autoindex on; ##顯示索引
autoindex_exact_size on; ##顯示大小
autoindex_localtime on; ##顯示時間
}
}