dfs环境搭建
教程连接地址
win10下docker搭建fastDFS
基本上按照教程就能够搭建成功了,不过稳定性比较差。可能docker重启以后环境就各类问题了。建议仍是在linux环境下搭建。html
教程连接地址
在CentOS上搭建FastDFS+nginx
按照这个教材搭了几回,里面的踩到的有些坑记录下来。linux
首先下载软件nginx
https://nginx.org/en/download...c++
fastDFS安装时,./make.sh编译时出错---perl:未找到命令
执行下面命令就能够解决git
yum -y install zlib zlib-devel pcre pcre-devel gcc gcc-c++ openssl openssl-devel libevent libevent-devel perl unzip net-tools wget
nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:37
报错,须要在编译nginx时添加--with-http_stub_status_module
。还有可能出现缺乏stub_status
模块的问题,编译时加上--with-http_stub_status_module
./configure \ --prefix=/usr/local/nginx \ --pid-path=/var/run/nginx/nginx.pid \ --lock-path=/var/lock/nginx.lock \ --error-log-path=/var/log/nginx/error.log \ --http-log-path=/var/log/nginx/access.log \ --with-http_gzip_static_module \ --http-client-body-temp-path=/var/temp/nginx/client \ --http-proxy-temp-path=/var/temp/nginx/proxy \ --http-fastcgi-temp-path=/var/temp/nginx/fastcgi \ --http-uwsgi-temp-path=/var/temp/nginx/uwsgi \ --http-scgi-temp-path=/var/temp/nginx/scgi \ --with-http_ssl_module \ --with-http_stub_status_module \ --add-module=/soft/fastdfs-nginx-module/src #注意这里配置的必须是是fastdfs-nginx-module的src目录绝对路径
启动trackergithub
/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart
启动storagedocker
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart
从新加载nginx配置文件app
cd /usr/local/nginx/sbin ./nginx -s reload
启动nginx测试
cd /usr/local/nginx/sbin ./nginx
测试上传文件ui
/usr/bin/fdfs_test /etc/fdfs/client.conf upload /home/test.jpg