LinuxSir.cn,穿越时空的Linuxsir!

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

怎么我改了计算机名后,不能启动mysqld和httpd了?

[复制链接]
发表于 2004-3-22 23:23:31 | 显示全部楼层 |阅读模式
开机后登录之前,就有错误消息:mysqld ended
之后自己登录自己的http服务器,也说连不上,不知为何?
我改的是/etc/hosts文件,只是把自己的ip-计算机名加在了127.0.0.1行的下面,后来出问题后,我把哪行删掉了,但还是不行。:help
发表于 2004-3-22 23:26:27 | 显示全部楼层
#
# hosts                This file describes a number of hostname-to-address
#                mappings for the TCP/IP subsystem.  It is mostly
#                used at boot time, when no name servers are running.
#                On small systems, this file can be used instead of a
#                "named" name server.  Just add the names, addresses
#                and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine.  It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1                localhost
192.168.1.7                comeonlinux.anubis.org comeonlinux

# End of hosts.
 楼主| 发表于 2004-3-23 13:42:40 | 显示全部楼层
不行的,我又用netconfig重新设置了一下,确定不是hosts文件的问题。
但我手动启动它时,总是那个错误提示:mysql ended
后来我又想启动httpd,居然说apachectl无法启动,晕死
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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