FPM Apache2 RPM Package Customization One, download Apache2 required installation compilation package
apr包下载:(/app/software)wget http://mirror.bit.edu.cn/apache//apr/apr-1.6.3.tar.gzarp-util包下载:(/app/software)http://mirror.bit.edu.cn/apache//apr/apr-util-1.6.1.tar.gzhttpd-2.4.33包下载:(/app/software)wget http://mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.33.tar.gz
Ii. start compiling and installing apache2
1, install the dependent package yum-y install Expat-devel OpenSSL pcre gcc2, create a apache2 installation of the specified directory [[email protected] software]# mkdir-p/app/ APACHE23, compile and install apr[[email protected] software]# tar-zxvf apr-1.6.3.tar.gz[[email protected] apr-1.6.3]#. Configure--prefix=/app/apache2/apr/[[email protected] apr-1.6.3]# make[[email protected] apr-1.6.3]# Make INSTALL4, compile and install apr-util[[email protected] software]# TAR-ZXVF apr-util-1.6.1.tar.gz[[email protected] apr-util-1.6.1]#./configure--prefix=/app/apache2/apr-util/--with-apr=/app/apache2/apr/[[email protected] apr-util-1.6.1]# make install5, unzip httpd-2.4.33 compile package [[email protected] software]# tar-zxvf httpd-2.4.33.tar.gz6, Copy the apr-1.6.3 and apr-util-1.6.1 to the httpd-2.4.33/srclib/directory [[email protected] software]# mv apr-1.6.3 Apr[[email protected] software]# mv apr-util-1.6.1 apr-util[[email protected] software]# cp-r Apr httpd-2.4.33/srclib/ [[email protected] software]# cp-r apr-util HTTPD-2.4.33/SRCLIB/7, compile and install apache2[[Email protected] httpd-2.4.33]#./configure--prefix=/app/apache2/--with-included-apr--enable-so-- enable--deflate=shared--enable-expires=shared--enable-ssl--enable-rewrite=shared[[email protected] httpd-2.4.33]# make && make install8, modify apache2 configuration file [[email protected] apache2]# vi conf/httpd.conf ' # Serveradmin:your address, where problems with the server should be# e-mailed. This address appears on some server-generated pages, such# as error documents. e.g. [email protected] #ServerAdmin [email protected] "9, start test apache2[[email protected] apache2]#. Bin/apachectl start
Iii. FPM Custom Tool Kit
fpm -s dir -t rpm -n apache2 -v 2.4.33-d ‘pcre,expat-devel,openssl,openssl-devel‘ -f /app/apache2/
FPM Apache2 RPM Package Customization