Swap file ".server.xml.swp" already exists!
現象:
Linux 下的 vim 編輯過程中,可能某種原因異常退出正在編輯的檔案,再次編輯該檔案時,會出現如下提示:
Swap file ".apiserver.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:
原因:
使用vim編輯檔案實際是先copy一份臨時檔案並對映到記憶體給你編輯, 編輯的是臨時檔案, 當執行:w後才儲存臨時檔案到原檔案,執行:q後才刪除臨時檔案。
每次啟動編輯時都會檢索這個檔案是否已經存在臨時檔案, 有則詢問如何處理,就會出現如上情景。
解決方法:
ll -ad找到對應的檔案生成的xxx.swp
rm xxx.swp 即可
相關推薦
Swap file ".server.xml.swp" already exists!
現象: Linux 下的 vim 編輯過程中,可能某種原因異常退出正在編輯的檔案,再次編輯該檔案時,會出現如下提示: Swap file ".apiserver.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover,
Swap file ".hive-site.xml.swp" already exists
ready swa com image already oop exists ive exist 1、使用命令[hadoop@slaver1 conf]$ ls -la查找出隱藏文件,然後刪除報出來的錯誤文件。 [hadoop@slaver1 conf]$ rm -r
Swap file "/etc/.hosts.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it,
vi編輯器 編輯 swp文件 討論 恢復文件 ado div linu 正常 非正常關閉vi編輯器時會生成一個.swp文件 非正常關閉vi編輯器時會生成一個.swp文件 關於swp文件 使用vi,經常可以看到swp這個文件,那這個文件是怎麽產生的呢,當你打開一個文件,
錯誤:django.db.utils.InternalError: (1050, "Table 'tb_books' already exists")
django中同步資料庫時出現錯誤(前面的忽略): 錯誤程式碼1050: pymysql.err.InternalError: (1050, "Table 'tb_books' already exists") 解決方法: python manage.py migrat
Aspose WorkbookDesigner開啟檔案異常"Error xml namespace"
錯誤描述: 平臺是VS2010的.Net Framework 需要用Aspose的WorkbookDesigner開啟excel檔案的時候產生異常 異常碼是Aspose.Cells.ExceptionType.InvalidData 錯誤資訊是"Error xml namespace
django.db.utils.InternalError: (1050, "Table 'tb_content' already exists")
在goods應用裡面寫了tb_content資料表的模型類(不該寫在這裡的),進行了資料遷移,還匯入了資料。 在contents應用裡也寫了tb_content資料表的模型類(應該寫在這裡的), 解決辦吧: 程式碼上,刪除goods裡面的。 python manage.py migrate c
資料遷移問題(django.db.utils.InternalError:(1050,"Table 'tb_content' already exists"))
django.db.utils.InternalError:(1050,“Table ‘tb_content’ already exists”)這個錯誤主要是重複匯入了已有的表格。 解決方法 先刪掉已生成的檔案如: 然後輸入: python manage.py makemigrat
swap file "*.swp" already exists問題解決!!!
vimLinux下編程難免會開啟多次vim編輯, 同一個文件如果在上一次編輯時未進行保存,則在下一次想要進行編輯時就會出現: swap file "*.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (D)e
swap file "*.swp" already exists!的解決方法
Linux下程式設計難免會開啟多次vim編輯, 同一個檔案如果在上一次編輯時未進行儲存,則在下一次想要進行編輯時就會出現: swap file "*.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (D)ele
linux進行檔案vim編輯時沒有退出檔案直接關閉出現E325: ATTENTION Found a swap file by the name "/usr/local/php/etc/.php.ini.swp"
E325: ATTENTIONFound a swap file by the name "/usr/local/php/etc/.php.ini.swp" owned by: root &n
Git-解釋“Swap file .MERGE_MSG.swp already exists”的問題
ref read get swap tar HR AD wap AR 當合並代碼時非正常保存退出遇到的問題。 博客原文: https://blog.csdn.net/qq_32452623/article/details/78395832Git-解釋“Swap file .
編輯文件警告Swap file “apiserver.swp…” already exists!
test xml文件 col swap file exist server lan com 同時 Linux下多個用戶同時編輯一個文件,或編輯時非正常關閉,再下次編輯打開文件時均為顯示如下警告信息: Swap file ".apiserver.swp" already ex
zipfile.BadZipfile: File name in directory "AndroidManifest.xml" and header "META-INF/MANIFEST.MF" d
問題 python 使用zipfile庫來解壓apk壓縮檔案的時候,出現了報錯zipfile.BadZipfile: File name in directory "AndroidManifest.xml" and header "META-INF/MANIFEST.MF" differ
tomcat中的server.xml文件配置了URIEncoding="UTF-8"需要註意的問題
tail 單獨 model xml文件 proto nco parameter ctp del 1. get請求傳遞中文時本地連正式庫訪問都正常,正式環境下單獨訪問報錯 代碼: 請求:project/projectInfo/export/
[Nuxt] Setup a "Hello World" Server-Rendered Vue.js Application with the Vue-CLI and Nuxt
clas red eat side pre obj sta ted blog Install: npm install -g vue-cli Init project: vue init nuxt/starter . Run: n
Data source rejected establishment of connection, message from server: "Too many connections"
重新 並發 登錄用戶 -c https 但是 ces 部署 ins 詳細錯誤信息: Caused by: com.MySQL.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source re
Data source rejected establishment of connection, message from server: "Too many connections"
logs ucc access register nds code mysq acc ora 1 com.mchange.v2.resourcepool.BasicResourcePool(line/:1841) - 2 [email protec
Exception in thread "main" java.net.BindException: Address already in use: JVM_Bind
next style exception void println clas can color imp 1 import java.io.PrintStream; 2 import java.net.Socket; 3 import java.net.Serve
python升級帶來的yum異常:File "/usr/bin/yum", line 30
系統 一行 isp nbsp board 一是 2.x ror entos 問題: $ yum File "/usr/bin/yum", line 30 except KeyboardInterrupt, e:
MySQL中查詢時"Lost connection to MySQL server during query"報錯的解決方案
解決 lose tool 查詢 不用 resolv 原因 網上 技術 一、問題描述: mysql數據庫查詢時,遇到下面的報錯信息: 二、原因分析: dw_user 表數據量比較大,直接查詢速度慢,容易"卡死",導致數據庫自動連接超時.... 三、解決辦法: 方案1.在my