yum 安装Apache

1、查看是否安装Apache,命令:  rpm    -qa    httpd   

2、yum install httpd ,yum安装Apache

3、chkconfig    httpd  on

  service httpd start  启动软件

 

遇到的问题

1、启动Apache报错,httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName

编辑httpd.conf文件,搜索"#ServerName",在下方添加ServerName localhost:80

posted on 2015-07-09 18:30  Fun0623  阅读(245)  评论(0编辑  收藏  举报