- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業務經營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯網協會理事單位
- 安全聯盟認證網站身份V標記
- 域名注冊服務機構許可:滇D3-20230001
- 代理域名注冊服務機構:新網數碼
錯誤出現情況的是,在我們用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
紅色是生成的文件名字
提交成功!非常感謝您的反饋,我們會繼續努力做到更好!
這條文檔是否有幫助解決問題?
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP