手机看片精品高清国产日韩,色先锋资源综合网,国产哺乳奶水91在线播放,乱伦小说亚洲色图欧洲电影

幫助中心 >  技術知識庫 >  云服務器 >  服務器教程 >  centos系統使用VI訪問文件時候出現E325: ATTENTION類的錯誤提示處理方法

centos系統使用VI訪問文件時候出現E325: ATTENTION類的錯誤提示處理方法

2017-03-12 17:18:37 13153

錯誤出現情況的是,在我們用VI編輯文件時候在文件加載時候出現錯誤提示,需要在安任意鍵后才能正常編輯.
錯誤提示類似如下:

E325: ATTENTION
Found a swap file by the name "/etc/sysconfig/.iptables.swp"
          owned by: root   dated: Sun Mar 12 09:53:43 2017
         file name: /etc/sysconfig/iptables
          modified: YES
         user name: root   host name: 64.242.55.116.broad.km.yn.dynamic.163da
        process ID: 3443
While opening file "/etc/sysconfig/iptables"
             dated: Sun Mar 12 09:55:13 2017
      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 /etc/sysconfig/iptables"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/sysconfig/.iptables.swp"
    to avoid this message.
"/etc/sysconfig/iptables" 22L, 879C


這種情況一般是由于在用vi編輯時候突然出現異常導致vi編輯終止導致的。例如 用SSL連接編輯時,斷開。
處理方法:
通常出現這樣的情況是因為之前操作中意外中斷后系統在同級目錄下生成了一個.開頭的同名文件。
如上報錯是在編輯防火墻配置文件時候出現的,在同級目錄下生成了.iptables.swp的文件。只需要上了就額可以正常了。
刪除命令:

rm –f .iptables.swp

紅色是生成的文件名字

提交成功!非常感謝您的反饋,我們會繼續努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務,我們很需要您進一步的反饋信息:

在文檔使用中是否遇到以下問題: