CentOS 6.2下fastDFS的完整安装和配置步骤

CentOS 6.2下fastDFS的完整安装和配置步骤

1:安装libevent(libevent-2.0.16-stable)
 
##卸载系统自带libevent
 
rpm -qa|grep libevent rpm -e libevent*
 
##为Trackerd和Storaged节点节点安装libevent
 
cd /home/ylh
 
wget https://github.com/downloads/libevent/libevent/libevent-2.0.16-stable.tar.gz
 
tar -zxvf libevent-2.0.16-stable.tar.gz
 
cd libevent-2.0.16-stable
 
make clean
 
./configure
 
make && make install
 
 ##为libevent创建软链接到/lib库下,64位系统对应/lib64
 
ln -s /usr/local/lib/libevent* /lib/
 
ln -s /usr/local/lib/libevent* /lib64/
 
 
 
2:为Trackerd节点安装FastDFS,并修改配置文件/etc/fdfs/tracker.conf( 如果Trackerd需要使用内置的web server,需要修改make文件,启用WITH_HTTPD=1再编译)
 
 cd /home/ylh
 
wget
 
tar -zxvf FastDFS_v3.06.tar.gz
 
cd FastDFS_v3.06
 
./make.sh
 
./make.sh install
 
##创建存储目录
 
mkdir /home/ylh/fastdfs
 
##修改配置文件. vim /etc/fdfs/tracker.conf 修改后保存退出
 
##启动Trackerd
 
/usr/local/bin/fdfs_trackerd  /etc/fdfs/tracker.conf
 
 
 
3:为Storaged节点安装FastDFS, Storaged节点也需要libevent,安装步骤参见第一步
 
cd /home/ylh
 
wget
 
tar -zxvf FastDFS_v3.06.tar.gz
 
cd FastDFS_v3.06
 
./make.sh
 
./make.sh install

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/20407.html