centos 源码编译安装实战重要参考收藏

1.[url]http://nginx.org/en/docs/install.html[/url]

出现错误: ./configure: error: the HTTP rewrite module requires the PCRE library.
处理:
yum install pcre-devel

参考:2.[url]http://www.thegeekstuff.com/2011/07/install-nginx-from-source/[/url]

出现错误:./configure: error: the HTTP gzip module requires the zlib library.
处理:
yum install zlib-devel

参考:
yum searh zlib


出现错误: bash: make: command not found
处理:
yum install make

[quote]或者:yum groupinstall "Development Tools" # will install all the basic stuff necessary to build software from source.[/quote]
参考:2.[url]http://www.linuxquestions.org/questions/linux-software-2/bash-make-command-not-found-on-centos-6-a-914523/[/url]

问题:本地能访问,局域网其他机器无法访问
解决:关闭iptables
/etc/init.d/iptables stop

参考:[url]http://blog.youkuaiyun.com/tx122/article/details/7576971[/url]


最后:启动服务,
 /usr/local/nginx/sbin/nginx

参考:[url]http://wiki.nginx.org/GettingStarted#Running_Nginx[/url]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值