无法source hosts文件
同光和尘 2012-05-18 01:45:46 前两天执行:source /etc/hosts 就没一点问题修改后的文件可以生效。今天再次修改hosts文件却无法执行 结果如下:
[root@192 ~]# source /etc/hosts
-bash: 127.0.0.1: command not found
-bash: 192.168.5.199: command not found
-bash: 121.14.76.138: command not found
文件内容如下:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.5.199 iservice
121.14.76.138 esales.qq.com
如果重启系统貌似可以生效,但是现在要求不能重启服务器,source却报错不知何因,请各位帮忙看看 到底什么原因?