标签:
安装apr请参考: http://www.cnblogs.com/yuzhaokai0523/p/4382974.html
1安装httpd-2.4.10.tar.gz
2.修改/usr/local/apache/conf/httpd.conf
找到#ServerName www.example.com:80修改为ServerName localhost:80
3.将http加入service
4.修改/etc/rc.d/init.d/httpd
在#!/bin/bash下加入
5.启动apache
添加 chkconfig --add httpd
6.验证apache是否启动成功
出现如下输出则证明apache启动
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 4158 root 4u IPv6 50349 0t0 TCP *:http (LISTEN)
httpd 4159 daemon 4u IPv6 50349 0t0 TCP *:http (LISTEN)
httpd 4160 daemon 4u IPv6 50349 0t0 TCP *:http (LISTEN)
httpd 4161 daemon 4u IPv6 50349 0t0 TCP *:http (LISTEN)
标签:
原文地址:http://www.cnblogs.com/yuzhaokai0523/p/4409445.html