红联Linux门户
Linux帮助

centos6安装nginx1.5.9不成功

发布时间:2014-01-25 23:25:07来源:红联作者:eremiter
安装 nginx,参考如下进行安装,复制压缩文件到tmp下,解压后安装,下面红色的部份,我是省略到,因为是改名字,不知道是否一定要改。
还有tmp下的tar文件安装完,是否可以删除掉
[code]装pcre重写rewrite
tar -zxvf pcre-8.33.tar.gz
mv pcre-8.33 pcre
cd pcre

./configure
make && make install
  
安装zlib,为了gzip压缩
tar -zxvf zlib-1.2.8.tar.gz
mv zlib-1.2.8 zlib
cd zlib

./configure
make
make install

安装openssl 可以提供安全链接,这个系统本来就有安装,所以没再安装了
cd /usr/local/src
ls
tar -zxvf openssl-1.0.1e.tar.gz
mv openssl-1.0.1e openssl
history

安装 nginx
tar -zxvf nginx-1.4.3.tar.gz
cd nginx-1.4.3
./configure --sbin-path=/usr/local/nginx/nginx \
--conf-path=/usr/local/nginx/nginx.conf \
--pid-path=/usr/local/nginx/nginx.pid \
--with-http_ssl_module \
--with-pcre=/usr/local/src/pcre \
--with-zlib=/usr/local/src/zlib \
--with-openssl=/usr/local/src/openssl

make
make install[/code]代码如下,老是无法成功,因grce有安装,怎么会提示找不到,真是搞不懂,进入相应的目录,即是没有相应的文件[code][root@webserver nginx-1.5.9]# make
make -f objs/Makefile
make[1]: Entering directory `/tmp/nginx-1.5.9'
cd /usr/local/src/pcre \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 2: ./configure: No such file or directory
make[1]: *** [/usr/local/src/pcre/Makefile] Error 127
make[1]: Leaving directory `/tmp/nginx-1.5.9'
make: *** [build] Error 2
[root@webserver nginx-1.5.9]# make install
make -f objs/Makefile install
make[1]: Entering directory `/tmp/nginx-1.5.9'
cd /usr/local/src/pcre \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 2: ./configure: No such file or directory
make[1]: *** [/usr/local/src/pcre/Makefile] Error 127
make[1]: Leaving directory `/tmp/nginx-1.5.9'
make: *** [install] Error 2
[root@webserver nginx-1.5.9][/code]
文章评论

共有 4 条评论

  1. dlchengzi 于 2014-05-06 17:47:37发表:

    楼主很厉害!

  2. dlchengzi 于 2014-05-06 17:43:44发表:

    楼主很厉害!

  3. a363218774 于 2014-02-16 13:55:00发表:

    学习学习

  4. 于 2014-01-28 23:21:47发表:

    请安装开发包,而不是运行包 即名字后面带dev的包