FPM Apache2 RPM Package Customization

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.