Linux安装Apache常见报错(一)
程序员文章站
2022-09-11 09:37:45
启动Apache提示报错:Could not reliably determine the server's fully qualified domain name, using localhost,localdomain . Set the 'ServerName' directive globa ......
启动Apache提示报错:Could not reliably determine the server's fully qualified domain name, using localhost,localdomain . Set the 'ServerName' directive globally to suppress this message.
解决办法:
1、进入apache的安装目录:(视个人安装情况而不同) [root@server ~]# cd /usr/local/apache/conf
2、编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80
[root@server conf]# ls
extra httpd.conf magic mime.types original
[root@server conf]# vi httpd.conf
#ServerName www.example.com:80
ServerName localhost:80
3、再重新启动apache 即可。
下一篇: 汉武帝为何要实行推恩令?到底难在哪里?
推荐阅读
-
Linux+php+apache+oracle环境搭建之CentOS下安装Oracle数据库
-
在Linux系统下安装QQ的一般方法
-
Linux系统下安装mosh来远程连接另一台Linux主机
-
免费常用Linux VPS管理面板/一键包介绍和安装方法
-
linux下安装apache详解
-
Linux下一个智能重启Apache服务器的脚本分享
-
Ubuntu、Linux Mint一键安装Chrome浏览器的Shell脚本分享
-
linux NFS安装配置及常见问题、/etc/exports配置文件、showmount命令
-
阿里云linux服务器下安装Apache的简单方法
-
Apache2.4.2编译安装2个常见错误和解决方法