安装
yum install -y httpd
启动
/etc/init.d/httpd start
备注:Apache启动之后会提示错误: 正在启动httpd:httpd: Could not reliably determine the server’s fully qualif domain name, using ::1 for ServerName
解决办法:
vi /etc/httpd/conf/httpd.conf #编辑
找到 #ServerName www.example.com:80
修改为ServerName www.1000seo.com:80 #这里设置为你自己的域名,
如果没有域名,可以设置为localhost