你的位置:首页 > 软件开发 > Java > linux 安装nginx

linux 安装nginx

发布时间:2016-08-02 17:00:05
linux系统为Centos6.5 64位nginx为1.4.7从http://nginx.org/download/上下载相应的版本解压 tar -zxvf nginx-1.4.7.tar.gz 设置一下配置信息: ./configure --prefix=/usr ...

linux 安装nginx

linux系统为Centos6.5 64位

nginx为1.4.7

http://nginx.org/download/上下载相应的版本

解压 tar -zxvf nginx-1.4.7.tar.gz 

设置一下配置信息: ./configure --prefix=/usr/local/nginx (如果不执行此命令,make的时候可能会报错【make:No targets specified and no makefile found stop】)

make编译

make install安装

 

执行./configure --prefix=/usr/local/nginx可能会出现错误

【错误为:】./configure: error: the HTTP rewrite module requires the PCRE library.

【解决办法:】安装pcre-devel解决问题 yum -y install pcre-devel

 

【错误为:】/configure: error: the HTTP cache module requires md5 functions

原标题:linux 安装nginx

关键词:linux

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录