当前位置:网站首页>VIM, another program may be editing the same file If this is the solution of the case
VIM, another program may be editing the same file If this is the solution of the case
2022-07-04 12:36:00 【Menon research monk】
The problem is shown in
adopt vim perhaps vi When editing the file, the following appears: :
The terminal displays as follows :
Found a swap file by the name "/mydata/mysql/conf/.my.conf.swp"
owned by: root dated: Sat Jul 02 12:52:53 2022
file name: /mydata/mysql/conf/my.conf
modified: YES
user name: root host name: xx
process ID: xx
While opening file "/mydata/mysql/conf/my.conf"
CANNOT BE FOUND
(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 /mydata/mysql/conf/my.conf"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/mydata/mysql/conf/.my.conf.swp"
to avoid this message.
Swap file "/mydata/mysql/conf/.my.conf.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
The screenshot is as follows :
2. Principle analysis
stay linux In order to ensure security , If the document is inconsistent
For example, multiple people edit this file, resulting in different files 、 Last edit did not exit normally
Will generate a file suffix swp File format ( Temporary exchange file , Main backup buffer contents )
The way of saving or writing files is correct , commonly swp Format files will be automatically deleted , If there is an error in writing , Temporary files will always exist , When you edit it again, you will always point to changing the file
Delete it and re edit it or restore it and re edit it
3. resolvent
adopt ls -al When viewing all the files
You can see swp Format ( Hide temporary files , Temporary buffer )
vim Edit the prompt that appears :
Solve it according to the following tips
If the file is not important , direct q sign out ,rm -rf Delete it and try again 
边栏推荐
- Possible to restore a backup of SQL Server 2014 on SQL Server 2012?
- Here, the DDS tutorial you want | first experience of fastdds - source code compilation & Installation & Testing
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 14
- Azure solution: how can third-party tools call azure blob storage to store data?
- Uva536 binary tree reconstruction tree recovery
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 10
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 13
- Unity performance optimization reading notes - Introduction (1)
- Flet教程之 02 ElevatedButton高级功能(教程含源码)(教程含源码)
- The database connection code determines whether the account password is correct, but the correct account password always jumps to the failure page with wrong account password
猜你喜欢
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 6](/img/38/51797fcdb57159b48d0e0a72eeb580.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 6

The latest idea activation cracking tutorial, idea permanent activation code, the strongest in history
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 8](/img/16/33f5623625ba817e6e022b5cb7ff5d.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 8

LVS load balancing cluster deployment - Dr direct routing mode
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 5](/img/68/4f92ca7cbdb90a919711b86d401302.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 5

2022, 6G is heating up
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 19](/img/7c/f728e88ca36524f92c56213370399b.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 19
![Entitas learning [3] multi context system](/img/f9/a3ce86ff2121dd1043305b7e834cc5.jpg)
Entitas learning [3] multi context system

TCP fast retransmission sack mechanism

IPv6 experiment
随机推荐
Ml and NLP are still developing rapidly in 2021. Deepmind scientists recently summarized 15 bright research directions in the past year. Come and see which direction is suitable for your new pit
IIS error, unable to start debugging on the webserver
[ES6] template string: `string`, a new symbol in es2015
Netgear switch basic configuration command set
Unity performance optimization reading notes - explore performance issues -profiler (2.1)
Error: Failed to download metadata for repo ‘AppStream‘: Cannot download repomd. XML solution
MPLS experiment
ASP. Net razor – introduction to VB loops and arrays
Global and Chinese market of cardiac monitoring 2022-2028: Research Report on technology, participants, trends, market size and share
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 5
The frost peel off the purple dragon scale, and the xiariba people will talk about database SQL optimization and the principle of indexing (primary / secondary / clustered / non clustered)
netstat
Xshell's ssh server rejected the password, failed to skip publickey authentication, and did not register with the server
Cadence physical library lef file syntax learning [continuous update]
Article download address
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 6
Recommend a cool geospatial data visualization tool with low code
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 13
The latest idea activation cracking tutorial, idea permanent activation code, the strongest in history