由 hallan 在 03-22-2004 23:23 发表:
怎么我改了计算机名后,不能启动mysqld和httpd了?
开机后登录之前,就有错误消息:mysqld ended
之后自己登录自己的http服务器,也说连不上,不知为何?
我改的是/etc/hosts文件,只是把自己的ip-计算机名加在了127.0.0.1行的下面,后来出问题后,我把哪行删掉了,但还是不行。
由 hgty123456789 在 03-22-2004 23:26 发表:
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
1<[email protected]> says that 127.0.0.1
2
3# should NEVER be named with the name of the machine. It causes problems
4
5# for some (stupid) programs, irc and reputedly talk. :^)
6
7#
8
9
10
11# For loopbacking.
12
13127.0.0.1 localhost
14
15192.168.1.7 comeonlinux.anubis.org comeonlinux
16
17
18
19# End of hosts.
20
21__________________
22
23####################</[email protected]>