安裝
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