测试Apache服务器及httpd: Could not reliably determine the server's fully qualified domain name解决办法

测试Apache服务器:

重启apache:

sudo /usr/local/apache/bin/apachectl restart

  若出现错误:

    httpd: Could not reliably determine the server‘s fully qualified domain name......

  解决办法:

  1)进入apache的安装目录:(视个人安装情况而不同)

     [[email protected]]# cd /usr/local/apache/conf
  2)编辑httpd.conf文件
    [[email protected]XXXX conf]# vi httpd.conf
    将 #ServerName www.example.com:80
    改为:ServerName localhost:80(注意去掉注释哦~)
  3)再重新启动apache
    [[email protected]XXXX]# /usr/local/apache/bin/apachectl restart

在浏览器中打开 http://localhost/ ,回车后若看到类似如下页面,则说明Apache服务器安装成功。

测试Apache服务器及httpd: Could not reliably determine the server's fully qualified domain name解决办法

时间: 2024-10-06 11:28:02

测试Apache服务器及httpd: Could not reliably determine the server's fully qualified domain name解决办法的相关文章

解决apache启动错误httpd: Could not reliably determine the server's fully qualified domain name

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this messagehttpd (pid 1068) already running 编辑httpd.conf文件,搜索"#ServerName",添

解决apache启动错误:httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

启动apache遇到提示: [[email protected] conf]# ../bin/apachectl -thttpd: apr_sockaddr_info_get() failed for bqh-119httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerNameSyntax OK[[email protected] conf]#

源码安装Apache,报错:Cannot use an external APR with the bundled APR-util和httpd: Could not reliably determine the server's fully qualified domain name

一.解决APR和APR-util错误: 1.1.安装APR: [[email protected] httpd-2.2.23]# cd srclib/apr [[email protected] apr]# ./configure --prefix=/usr/local/apr root@ganglia apr]# make && make install 1.2.安装APR-util: [[email protected] apr]# cd ../apr-util/ [[email pr

httpd: Could not reliably determine the server's fully qualified domain name

[[email protected]~]# /usr/local/apache2/bin/apachectl start httpd: Could not reliably determine the server's fully qualified domain name, usinglocalhost.localdomain for ServerName 分析:该错误信息表示Apache无法彻底确定服务器的完全限定域名只好用using localhost.localdomain for Se

解决方案:httpd: Could not reliably determine the server's fully qualified domain name

(1)一开始学习php的人都会安装wamp或者xamp或者phpstudy等集成环境软件.但是在现实中,公司服务器端的apache.php.mysql都是自己一个个安装的. (2)我们说的安装apache,其实是说的安装apache http server软件,所以下载的软件一般名字是httpd-2.2.22-win32-x86之类的. --官网下载很坑爹,各种网页打不开.还是百度了以下,在华为网盘下载的,是2.2.22版本,此时官方已到2.4.12版本.不过,一样用. --安装过程,很简单.安

httpd: Could not reliably determine the server's fully qualified domain name(转)

ttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 解决办法非常简单: #vim /web/apache/conf/httpd.conf (在这里/web/apahce是我安装apache的目录,你默认安装的话应该是/usr/local/apache2/icons) 找到#ServerName www.example.com:80  

解决httpd: Could not reliably determine the server's fully qualified domain name

用vim打开 /usr/local/apache2/cong/httpd.conf 将里面的 #ServerName localhost:80 注释去掉即可. 再执行 /usr/local/apache2/bin/apachectl start 然后可以通过浏览器访问 http://localhost:80 ,如果页面显示 “It works!” ,即表示apache已安装并启动成功. 解决httpd: Could not reliably determine the server's full

重启Apache报错apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting的解决方法

启动apache提示 : 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 (1)

apache AH00558错误: Could not reliably determine the server's fully qualified domain name

/usr/local/httpd/bin/apachectl start AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message apache 启动出现这种错误的解决方法:将 apache 的配