首先下载nginx的源代码,我下载的是rpm源码包,下载地址从rpmfind.net上找的:
ftp://rpmfind.net/linux/fedora/u....6.31-2.fc9.src.rpm
运行如下命令编译RPM:
yuminstall-yrpm-buildpcre-develzlib-developenssl-develperl-develgcc
mkdir/usr/src/redhat/SOURCES-p
rpm-ivhnginx-0.6.31-2.fc9.src.rpm
cd/usr/src/redhat/SPECS/
vimnginx.spec#removetheperl-develdependency
rpmbuild-bbnginx.spec
然后编译出来的RPM就在/usr/src/redhat/RPMS/i386/nginx-0.6.31-2.i386.rpm
点击下载nginx-0.6.31-2.i386.rpm
CentOS 5下编译nginx的RPM包CentOS 5下编译nginx的RPM包CentOS 5下编译nginx的RPM包CentOS 5下编译nginx的RPM包CentOS 5下编译nginx的RPM包CentOS 5下编译nginx的RPM包CentOS 5下编译nginx的RPM包CentOS 5下编译nginx的RPM包CentOS 5下编译nginx的RPM包CentOS 5下编译nginx的RPM包
阅读(497) | 评论(0) | 转发(0) |