LinuxSir.cn,穿越时空的Linuxsir!

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

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

[复制链接]
发表于 2004-2-26 12:19:30 | 显示全部楼层 |阅读模式
默认安装了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,或者是其他的?

请问如何解决?我是新手,谢了先
发表于 2004-2-26 13:15:39 | 显示全部楼层
检查log
发表于 2004-2-27 09:17:33 | 显示全部楼层
修改/etc/hosts。
在里面加上你的httpd的ServerName的解析条目。
比如你的ServerName是hello
在里面加上
hello       ***.***.***.***(your server ip)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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