本文讲述了制作nginx的RPM包的方法,实例如下:
1. 下载nginx源码,直接运行命令:
cd /root
wget http://nginx.org/download/nginx-1.7.1.tar.gz
在拿到源码包之后,解压,并进入目录:
tar zxvf nginx-1.7.1.tar.gz
cd nginx-1.7.1
2. 编写SPEC文件
文件名为:nginx.spec
Summary: High Performance Web Server
Name: nginx
Version: 1.7.1
Release: el5
License: GPL
Group: A