Centos6.10-FastDFS-Tracker-Nginx示例配置
nginx 安装过程《详见》
1.进入工作目录
cd /usr/local/nginx/conf
2.创建子目录
mkdir configs
3.创建storage代理配置
cd configs
vi storage.conf
uptream fdfs_group1 { server 192.168.125.154:9100 weight=1 max_fails=2 fail_timeout=30s; } server { listen 8888; server_name localhsot; charset utf8; location /group1/M00{ proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://fdfs_group1; } error_page 500 502 503 504 /50x.html; location =/50x.html { root /html; } }
保存退出。
4.引入configs/storege.conf配置
cd /usr/local/nginx/conf
vi nginx.conf
5.重启nginx
nginx -s reload
6.访问验证