顺德公农庄 发表于 2018-11-10 10:47:04

linux vi操作提示Found a swap file by the name "/usr/local/nginx/conf/.nginx.conf.swp

  # vi /usr/local/nginx/conf/nginx.conf
  E325: ATTENTION
  Found a swap file by the name "/usr/local/nginx/conf/.nginx.conf.swp"
  owned by: root   dated: Mon Nov 10 10:11:06 2014
  file name: /usr/local/nginx/conf/nginx.conf
  modified: no
  user name: root   host name: centos1

  process>  While opening file "/usr/local/nginx/conf/nginx.conf"
  dated: Mon Nov 10 08:11:27 2014
  (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 /usr/local/nginx/conf/nginx.conf"
  to recover the changes (see ":help recovery").
  If you did this already, delete the swap file "/usr/local/nginx/conf/.nginx.conf.swp"
  to avoid this message.
  "/usr/local/nginx/conf/nginx.conf" 117L, 2656C
  Press ENTER or type command to continue
  解决方法:# ls -a /usr/local/nginx/conf/
  .   fastcgi.conf          fastcgi_params          koi-utfmime.types          nginx.conf          .nginx.conf.swpscgi_params.defaultuwsgi_params.default
  ..fastcgi.conf.defaultfastcgi_params.defaultkoi-winmime.types.defaultnginx.conf.defaultscgi_params      uwsgi_params         win-utf
  # rm .nginx.conf.swp    删除些文件解决

页: [1]
查看完整版本: linux vi操作提示Found a swap file by the name "/usr/local/nginx/conf/.nginx.conf.swp