码迷,mamicode.com
首页 > 其他好文 > 详细

centos6.5安装配置fastdfs+nginx实现分布式图片服务器

时间:2015-12-18 18:32:00      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:

一、准备

yum groupinstall -y "Development Tools"
yum install -y wget libevent-devel pcre-devel zlib-devel

wget https://fastdfs.googlecode.com/files/FastDFS_v4.06.tar.gz

wget https://fastdfs.googlecode.com/files/fastdfs-nginx-module_v1.15.tar.gz

wget http://nginx.org/download/nginx-1.9.9.tar.gz

 

二、安装

tar xvf FastDFS_v4.06.tar.gz

cd FastDFS

vi make.sh

找到 #WITH_LINUX_SERVICE=1 去掉注释,并且设置TARGET_PREFIX=/usr/local/fastdfs

./make.sh

./make.sh install

[root@centos1 FastDFS]# service fdfs_trackerd start
file /usr/local/bin/fdfs_trackerd does not exist!

[root@centos1 FastDFS]# find /usr -name fdfs_trackerd
/usr/local/fastdfs/bin/fdfs_trackerd

ln -s /usr/local/fastdfs/bin/fdfs_trackerd /usr/local/bin/fdfs_trackerd

[root@centos1 FastDFS]# service fdfs_trackerd start

[root@centos1 tools]# netstat -ntl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22122 0.0.0.0:* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 ::1:25 :::* LISTEN

 

centos6.5安装配置fastdfs+nginx实现分布式图片服务器

标签:

原文地址:http://www.cnblogs.com/jenqz/p/5057496.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!