编缉SAMBA文件时出现错误信息该如何处理

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
amwisk
帖子: 25
注册时间: 2006-12-13 19:38

编缉SAMBA文件时出现错误信息该如何处理

#1

帖子 amwisk » 2008-02-07 0:19

E325: ATTENTION
Found a swap file by the name ".smb.conf.swp"
owned by: root dated: Sun Feb 3 14:37:35 2008
file name: /etc/samba/smb.conf
modified: YES
user name: root host name: localhost
process ID: 6921
While opening file "smb.conf"
dated: Thu Feb 7 00:05:42 2008
NEWER than swap file!

(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.

(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r smb.conf"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".smb.conf.swp"
to avoid this message.
"smb.conf" 533L, 22028C
Press ENTER or type command to continue
头像
sense
帖子: 308
注册时间: 2007-02-14 13:54

#2

帖子 sense » 2008-02-07 21:21

其实 vim 的提示已十分清楚了,出现问题的原因是上次你用 vim 编辑 smb.conf 时没有正常退出或者有另一个终端也在编辑这个文件。
在确认没有另一个终端在编辑同一个文件后,用 vim -r smb.conf 可以恢复上次没有保存的信息,要不就在编辑前手工删除文件 .smb.conf.swp
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2008-02-07 21:25

vim这么强大的东西,怎么楼主的提示都是英文的哦。 :lol:
● 鸣学
回复