CentOS 6.3 下编译Nginx(笔记整理)
1. 安装关联程序
[root@localhost opt]# yum search gcc [root@localhost opt]# yum install gcc-c++ [root@localhost opt]# yum install make [root@localhost opt]# yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel
2. 下载Nginx
[root@localhost files]# tar -zxvf nginx-1.4.7.tar.gz
3. 配置Makefire
[root@localhost nginx-1.4.7]# ./configure --prefix=/opt/nginx
4. 编译
[root@localhost nginx-1.4.7]# make
5. 安装
[root@localhost nginx-1.4.7]# make install
关于configure,make, make install参考笔记《理解configure,make,make install》