Apache2.4.1安装手册

1. 准备相关依赖组件

apr-1.4.6.tar.gz  
apr-util-1.4.1.tar.gz 
httpd-2.4.1.tar.gz  
pcre-8.12.tar.bz2

2. 安装apr-1.4.6.tar.gz

#tar -zxvf apr-1.4.6.tar.gz
#./configure --prefix=/usr/local/apr
#make
#make install

3.安装apr-util-1.4.1.tar.gz

#tar -zxvf apr-util-1.4.1.tar.gz
#./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config
#make
#make install

4.安装pcre-8.12.tar.bz2

#tar jxvf pcre-8.12.tar.bz2
#./configure --prefix=/usr/local/pcre
#make
#make install

5.安装httpd-2.4.1.tar.gz

#tar -zxvf httpd-2.4.1.tar.gz
#./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre
#make
#make install

6. 启动apache

#/usr/local/apache2/bin/apachectl start 

7. 检测apache是否启动
#netstat -ntlp

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name  
tcp        0      0 0.0.0.0:20000               0.0.0.0:*                   LISTEN      6948/nginx         
tcp        0      0 0.0.0.0:970                 0.0.0.0:*                   LISTEN      2484/rpc.statd     
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      2438/portmap       
tcp        0      0 172.16.3.125:1521           0.0.0.0:*                   LISTEN      22262/tnslsnr      
tcp        0      0 172.16.3.125:631            0.0.0.0:*                   LISTEN      2795/cupsd         
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      2838/sendmail: acce
tcp        0      0 172.16.3.125:1978           0.0.0.0:*                   LISTEN      10698/memcached    
tcp        0      0 0.0.0.0:48442               0.0.0.0:*                   LISTEN      22223/ora_d000_cook
tcp        0      0 ::ffff:127.0.0.1:8005       :::*                        LISTEN      31545/java         
tcp        0      0 :::24165                    :::*                        LISTEN      31545/java         
tcp        0      0 :::8009                     :::*                        LISTEN      31545/java         
tcp        0      0 :::9004                     :::*                        LISTEN      31545/java         
tcp        0      0 ::ffff:127.0.0.1:9005       :::*                        LISTEN      1789/java          
tcp        0      0 :::9998                     :::*                        LISTEN      31545/java         
tcp        0      0 :::13775                    :::*                        LISTEN      31545/java         
tcp        0      0 :::80                       :::*                        LISTEN      4865/httpd         
tcp        0      0 :::9009                     :::*                        LISTEN      1789/java          
tcp        0      0 :::22                       :::*                        LISTEN      2781/sshd          
tcp        0      0 :::9080                     :::*                        LISTEN      1789/java          
tcp        0      0 :::8443                     :::*                        LISTEN      31545/java

存在该进程,说明已经启动成功。

浏览器检测:http://ip   回车 显示

It works!


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值