参考: http://blog.csdn.net/csdn_lqr/article/details/53334583
注:
1,nginx-1.8.0.tar.gz下载地址 链接: https://pan.baidu.com/s/1eUjIqh8 密码: 8m8e
2, vim /usr/local/nginx/nginx.conf
ps:这段是我做图片服务器的一个文件夹 不需要可不添加
location / {
root /root/html;
index index.html index.htm;
}
后添加
location /images {
root /home/ftpuser/www/;
autoindex on;
}
3,如遇到 403 错误
nginx.conf头部加入一行:
user root;