首页 > IT职业 > IT图书 > fastdfs----------初探
因图片不能显示详情请看github本人原创
FastDFS Installation manual


yum -y groupinstall 'Development Tools' && yum -y install wgetwget https://github.com/happyfish100/libfastcommon/archive/master.zipunzip master.zipcd libfastcommon-master./make.sh./make.sh install
wget https://github.com/happyfish100/fastdfs/archive/V5.05.tar.gztar -zxvf V5.05.tar.gzcd fastdfs-5.05/./make.sh./make.sh install
mv /etc/fdfs/tracker.conf.sample /etc/fdfs/tracker.confVi /etc/fdfs/tracker.conf
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 22122 -j ACCEPTfdfs_trackerd /etc/fdfs/tracker.conf start
mv /etc/fdfs/storage.conf.sample /etc/fdfs/storage.confVi /etc/fdfs/storage.conf


or
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 23000 -j ACCEPTfdfs_storaged /etc/fdfs/storage.conf
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 22122 -j ACCEPTwget https://github.com/happyfish100/fastdfs-nginx-module/archive/master.zipwget http://openresty.org/download/ngx_openresty-1.7.10.1.tar.gztar -zxvf ngx_openresty-1.7.10.1.tar.gzunzip master.zipyum -y install pcre-devel openssl openssl-develcd ngx_openresty-1.7.10.1/./configure --with-luajit --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --add-module=/root/fastdfs/nginx/fastdfs-nginx-module-master/src/ && gmake && gmake installcp ../fastdfs-nginx-module-master/src/mod_fastdfs.conf /etc/fdfs/vi /etc/fdfs/mod_fastdfs.conf
or



vi /usr/local/openresty/nginx/conf/nginx.conf
/usr/local/openresty/nginx/sbin/nginx start
cd ngx_openresty-1.7.10.1./configure --prefix=/usr/local/nginx --add-module=/root/nginx/ngx_cache_purge-2.3 --with-pcre=/root/nginx/pcre-7.8/ --with-zlib=/root/nginx/zlib-1.2.5gmake && gmake installvi /usr/local/nginx/nginx/conf/nginx.conf

/usr/local/nginx/nginx/sbin/nginx start
vi /etc/fdfs/client.conf


echo 1234 > test.htmlfdfs_test /etc/fdfs/client.conf upload test.html
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4440/viewspace-2807392/ ,如需转载,请注明出处,否则将追究法律责任。