解决httpd: Could not reliably determine the server’s fully qualified domain name, using ::1 for ServerName

有网络营销从业者在VPS安装完CWP控制面板,使用Linux命令重启httpd ▼

service httpd restart

之后,SSH就出现如下提示的问题 ▼

Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualifie domain name, using ::1 for ServerName

解决方法

第 1 步:找到httpd.conf文件

这是CWP控制面板httpd.conf文件的具体路径 ▼

/usr/local/apache/conf/httpd.conf

第 2 步:编辑Apache文件

我们可以在CWP控制面板,点击Apache Settings→Apache Configuration直接对此文件进行编辑。

第 3 步:编辑httpd.conf文件

在httpd.conf文件中添加 ▼

ServerName localhost:80

第 4 步:接着,重启httpd服务即可:

service httpd restart

第 5 步:返回如下结果,表示此问题已经成功解决好了!

Stopping httpd: [ OK ]
Starting httpd: [ OK ]

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注