After centos7.0 is installed, the Apache version installed through yum is 2.4.6.
Then, the HTTPd service is stopped, and the default installed version is uninstalled.
Systemctl stop httpd. Service
Rpm-Qa | grep httpd # view the Apache package and find the name (for example, httpd-2.4.6-18.el6_2.1.x86_64) use the following command to delete rpm-e httpd-2.2.15-15.el6_2.1.x86_64 # But first Delete the dependent Apache package or yum list | grep httpd # view Apache package name, such as httpd. x86_64yum erase httpd. x86_64 # The dependent package will be automatically removed to start installation 2.4.10wgethttp: // mirrors.cnnic.cn/apache/httpd/httpd-2.4.10.tar.gz wget http://apache.dataguru.cn/apr/apr-1.5.1.tar.gzwget http://apache.dataguru.cn/apr/apr-util-1.5.3.tar.gzcd apr-1.5.1. /configure -- prefix =/usr/local/aprmakemake installcd apr-util-1.5.3. /configure -- prefix =/usr/local/APR-util -- With-Apr =/usr/local/aprmakemake install CD/usr/local/srctar-xvf httpd-2.4.10.tar.gz. /configure -- prefix =/usr/local/Apache -- sysconfdir =/etc/httpd2 -- enable-so -- enable-SSL -- enable-CGI -- enable-Rewrite -- With-zlib -- -PCRE -- With-Apr =/usr/local/APR -- With-Apr-util =/usr/local/APR-util -- enable-modules = most -- enable-MPMs-shared = all -- With-MPM = event -- enable-proxy-fcgi # The parameters are: httpd installation path httpd configuration file storage path enable modular mode enable SSL Secure Connection # enable CGI Script Function enable URL rewriting enable server compression enable regular expressions support APR installation path # APR util installation path enable common module to ensure that Apache works properly and the multi-process model is non-static # enable the event asynchronous model Makemake install
This article is from the "Wang Sheng swimming pool" blog, please be sure to keep this source http://wangsheng1.blog.51cto.com/29473/1553790
Centos7.0 install Apache-2.4.10