Apache安装中遇到的问题,需要修改ServerName

安装Apache过程中显示 Invalid command 'ServrerName', perhaps misspelled or defined by a module not included in the server configuration,请问具体应该怎么办?

vi /etc/httpd/conf/httpd.conf
找到 #ServerName


修改为 ServerName www.lws.com:80 (设置为自己的域名 或 ServerName localhost:80)
:wq!#保存退出

可以参考我以前的文章: