最新消息:

分布式文件服务器FastDFS的安装 (二)

FastDFS 老鹰 326浏览 0评论

安装 Nginx

1)安装常见依赖库:Pcre

rpm -qa | grep pcre

rpm -e –nodeps pcre

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.35.zip

unzip pcre-8.35.zip

cd pcre-8.35

./configure

make

make install

tar -xzvf nginx-1.4.7.tar.gz

cd nginx-1.4.7

yum install gcc-c++

./configure –prefix=/usr/local/nginx

make

yum -y install openssl openssl-devel

./configure –prefix=/usr/local/nginx

make

make install

vi + /etc/sysconfig/iptables

service iptables restart

iptables-save > /etc/sysconfig/iptables

service iptables restart

cd /usr/local/nginx/sbin/

./nginx

/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

ldd $(which /usr/local/nginx/sbin/nginx)

ln -s libpcre.so.0.0.1 libpcre.so.1

cd /usr/local/lib

ln -s libpcre.so.0.0.1 libpcre.so.1

ldd $(which /usr/local/nginx/sbin/nginx)

cd /usr/local/nginx/sbin/

./nginx

转载请注明:冯英胜的博客 » 分布式文件服务器FastDFS的安装 (二)

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址