关闭

Apache2.4.1安装手册

2238人阅读 评论(0) 收藏 举报
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!


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:6437次
    • 积分:113
    • 等级:
    • 排名:千里之外
    • 原创:4篇
    • 转载:0篇
    • 译文:0篇
    • 评论:1条
    文章存档
    最新评论