nginx install

nginx install

unzip fastdfs-nginx-module-master.zip

On OpenSUSE

zypper install nginx

cd ./fastdfs-nginx-module-master/src
cp mod_fastdfs.conf /etc/fdfs/mod_fastdfs.conf
vi /etc/fdfs/mod_fastdfs.conf
connect_timeout=10
tracker_server=[YourIP]:22122
url_have_group_name=true
store_path0=/home/python/fastdfs/storage

cd ./fastdfs-master/conf
cp http.conf /etc/fdfs/http.conf
vi /etc/fdfs/http.conf
http.anti_steal.token_check_fail=/home/Forrest/FastDFS/fastdfs-master/conf/anti-steal.jpg
cp mime.types /etc/fdfs/mime.types

vi /usr/local/nginx/conf/nginx.conf
server {
listen 8888;
server_name localhost;
location ~/group[0-9]/ {
ngx_fastdfs_module;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

Restart nginx

ps -ef|grep nginx
kill -QUIT [root pid]
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

Visit nginx

http://[YourIP]:8888

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值