急!!!问一个apache和一个mysql的问题!

由 nothing9 在 02-26-2004 12:19 发表:

急!!!问一个apache和一个mysql的问题!

默认安装了apache+php+mysql

问题一

用以下命令修改了mysql的密码

mysqladmin -u root password (新的密码)

phpMyAdmin也可以正常使用,可是

[root@localhost root]# service mysqld restart

停止 MySQL: [ 确定 ]

Timeout error occurred trying to start MySQL Daemon.

启动 MySQL: [失败]

ps -aux里显示的mysql用户执行的,mysql只有root帐号.如何让mysqld正常启动?

问题二

[root@localhost root]# service httpd restart

停止 httpd: [ 确定 ]

启动 httpd:httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ 确定 ]

我开了猫的路由和NAT,用了动态域名,没有bind,named,自己用192.168.0.254来访问本机主页的,该怎么设置hostname?是设置成动态域名,还是localhost,或者是其他的?

请问如何解决?我是新手,谢了先


由 Tony 在 02-26-2004 13:15 发表:


检查log


Seeking Freedom,pure Freedom!

ICQ: 160088366

http://etony.blogone.net/


由 zysno1 在 02-27-2004 09:17 发表:


修改/etc/hosts

Published At
Categories with 服务器类
comments powered by Disqus