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

1. http://nginx.org/en/docs/install.html

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

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

出现错误:./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

引用
或者:yum groupinstall "Development Tools" # will install all the basic stuff necessary to build software from source.

参考:2. http://www.linuxquestions.org/questions/linux-software-2/bash-make-command-not-found-on-centos-6-a-914523/

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

参考: http://blog.csdn.net/tx122/article/details/7576971


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

参考: http://wiki.nginx.org/GettingStarted#Running_Nginx

你可能感兴趣的:(源码,linux,nginx,centos,编译)