1. 安装关联程序
1 2 3 4 |
[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
1 |
[root@localhost files] # tar -zxvf nginx-1.4.7.tar.gz |
3. 配置Makefire
1 |
[root@localhost nginx-1.4.7] # ./configure --prefix=/opt/nginx |
4. 编译
1 |
[root@localhost nginx-1.4.7] # make |
5. 安装
1 |
[root@localhost nginx-1.4.7] # make install |
关于configure,make, make install参考笔记《理解configure,make,make
install》
CentOS 6.3 下编译Nginx(笔记整理),布布扣,bubuko.com
原文:http://www.cnblogs.com/timelyxyz/p/3633544.html