LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 567|回复: 2

请问前辈们这个问题怎么解决???

[复制链接]
发表于 2004-10-4 14:10:19 | 显示全部楼层 |阅读模式
[root@dhcp-221-15 root]# /etc/init.d/mysqld start
初始化 MySQL 数据库: Sorry, the host 'dhcp-221-15' could not be looked up.
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option
                                                           [失败]
[root@dhcp-221-15 root]# /etc/init.d/httpd start
启动 httpd:httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [失败]
今天做apache+mysql+php时候为什么不允许我启动服务.
是域名的问题??主机名??:confused:
谢谢
发表于 2004-10-4 14:19:24 | 显示全部楼层

看看:

看看你的hostname的输出。
查看你的/etc/hosts文件的内容。
关于apache的,修给你的httpd.conf文件里面的ServerName一项作为你自己的名称。前面可能是有#符号的注释掉了。
 楼主| 发表于 2004-10-4 14:34:00 | 显示全部楼层
太感谢前辈了~~终于搞好了~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表