一、准备
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
[[email protected] FastDFS]# service fdfs_trackerd start
file /usr/local/bin/fdfs_trackerd does not exist!
[[email protected] 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
[[email protected] FastDFS]# service fdfs_trackerd start
[[email protected] 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