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