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

一、准备

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

 

posted on 2015-12-18 16:43  jenqz  阅读(354)  评论(0编辑  收藏  举报