Linux中Apache(httpd)安装、配置、加为服务

时间:2024-11-06 13:42:42
[root@localhost soft]# tar -zxf apr-1.5. [root@localhost soft]# tar -zxf apr-util-1.5. [root@localhost soft]# tar -zxf pcre-8. [root@localhost soft]# tar -zxf httpd-2.4. [root@localhost soft]# cd apr-1.5.2 [root@localhost apr-1.5.2]# ./configure --prefix=/usr/local/apr [root@localhost apr-1.5.2]# make [root@localhost apr-1.5.2]# make install [root@localhost apr-1.5.2]# cd ../apr-util-1.5.4 [root@localhost apr-util-1.5.4]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config [root@localhost apr-util-1.5.4]# make [root@localhost apr-util-1.5.4]# make install [root@localhost apr-util-1.5.4]# cd ../pcre-8.38 [root@localhost pcre-8.38]# ./configure --prefix=/usr/local/pcre --with-apr=/usr/local/apr/bin/apr-1-config [root@localhost pcre-8.38]# make [root@localhost pcre-8.38]# make install [root@localhost pcre-8.38]# cd ../httpd-2.4.18 [root@localhost httpd-2.4.18]# ./configure --prefix=/usr/local/httpd --with-pcre=/usr/local/pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util [root@localhost httpd-2.4.18]# make [root@localhost httpd-2.4.18]# make install