服务器技术

 首页 > 服务器技术 > Linux > 解决apache启动错误"httpd:Could not reliably determ

解决apache启动错误"httpd:Could not reliably determ

分享到:
【字体:
导读:
          启动apache遇到错误:httpd: Could not reliably determine the server#39;s fully qualified domain name[root@server httpd-2.2.4]# /usr/local/apache/bin/apachectl starthttpd: Could not ......

启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
[root@server httpd-2.2.4]# /usr/local/apache/bin/apachectl start
 
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
 
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 即可。
[root@server ~]# /usr/local/apache/bin/apachectl restart
 
 
本文出自 “300second的蜗居” 博客
      上一篇:“makefile:425: *** 遗漏分隔符 。 停止。”问题解决 下一篇:BackTrack 5 R1 U盘grub启动 - Linux操作系统:Ubuntu_C
    分享到:
    BackTrack 5 R1 U盘grub启动 - Linux操...
    title BackTrack5 R1 kernel /casper/vmlinuz live-media-path=/casper file=/preseed/custom.seed boot=casper text splash nouveau.modeset=0 vga=0x317 initrd /casper/initrd.gz boot 摘自 羽毛飞のBlog 上一篇:解决apache启动错误"httpd:Could not reliably determ 下一篇:nginx 访问目录身份验证...
    “makefile:425: *** 遗漏分隔符 。 停止...
    在终端下输入make时出现“makefile:2: *** 遗漏分隔符 。 停止。”问题,原因是在编写makefile文件时: 3 : 3.c          gcc -o 3 3.c gcc前的是tab分隔符,不能用空格,否则会出现“makefile:2: *** 遗漏分隔符 。 停止。”提示。。。   make中规定每一Shell命令之前的开头必须使用字符。         ...
    •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
    • 在这里……