Linux FastDFS 互为主从

环境说明
系统:CentOS 6.6  IP:10.3.45.231    FastDFS_v5.03.+nginx-1.6.2+libevent-2.0.21-stable
系统:CentOS 6.6  IP:10.3.45.232    FastDFS_v5.03.+nginx-1.6.2+libevent-2.0.21-stable
备注:作为主从服务器的fastDFS和nginx 版本建议使用同一版本!
说明:在两台fastDFS服务器192.168.10.157和192.168.21.158上分别进行如下操作,

 

开始:
一、安装libevent
1、下载libevent-2.0.21-stable.tar.gz
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
2、解压并安装配置
tar  -zxvf libevent-2.0.21-stable.tar.gz
cd  libevent-2.0.21-stable
mkdir -p /usr/local/libevnet
./configure --prefix=/usr/local/libevent
make && make install
#为libevent创建软链接到/lib库下,64位系统对应/lib64
ln -s /usr/local/libevent/lib/libevent-2.0.so.5 /usr/lib/libevent-2.

你可能感兴趣的:(中间件)