修改主机名时碰到E212:不能以写入模式打开
修改主机名及E212:不能以写入模式打开问题的解决[@more@]1. 执行命令 hostname,修改当前系统的主机名 hostname newhost2. 修改 /etc/sysconfig/network,使得下次启动时使用新的主机名 hostname=newhost在使用VI编辑这后报“etc/sysconfig/network”E212:不能以写入模式打开。我查了一个资料是这样说的:When you get error "E138: Can't write viminfo file" check that no old temp files were left behind (e.g. ~/.viminf*) and that you can write in the directory of the .viminfo file. {not in Vi}I