- 问题:SecureCRT远程重启apache2错误且httpd.conf为空
- /etc/init.d/apache2 restart
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
...done.
- google上对策:
- Open a terminal
-
Open the
/etc/apache2/httpd.conffile:sudo editor /etc/apache2/httpd.conf # [1] -
By default, it would be blank(空文件). Simply add the following line:
ServerName localhost -
Save the file and exit
-
Restart the server
sudo service apache2 restart -
大意:直接往空文件httpd.conf添加一句ServerName localhost再启动,修改后成功
httpd.conf为空
最新推荐文章于 2023-06-17 15:40:29 发布
本文介绍了一种解决SecureCRT远程重启Apache2时出现错误的方法。具体步骤包括:编辑空的httpd.conf文件并添加ServerNamelocalhost一行,保存文件后重启Apache2服务。
1164

被折叠的 条评论
为什么被折叠?



