[root@centos1 ~]# 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 ID: 11139 (still running)
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
解决方法:[root@centos1 ~]# ls -a /usr/local/nginx/conf/
. fastcgi.conf fastcgi_params koi-utf mime.types nginx.conf .nginx.conf.swp scgi_params.default uwsgi_params.default
.. fastcgi.conf.default fastcgi_params.default koi-win mime.types.default nginx.conf.default scgi_params uwsgi_params win-utf
[root@centos1 conf]# rm .nginx.conf.swp 删除些文件解决
转载于:https://blog.51cto.com/vqiao/1575021