宇宙主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

欧基零壹微头条IP归属甄别会员请立即修改密码
查看: 4116|回复: 10

请教下,VI编辑没保存关闭了SSH,现在编辑出现这个怎么弄?

[复制链接]
发表于 2011-1-8 03:24:24 | 显示全部楼层 |阅读模式
这个大概是有个缓存一样的文件吧,但是这个在我就在重新编辑就编辑不了了。

如何才能够不提示这个,重新编辑@ 以前用LNMP没这样,我重新进入就没这个了

昨晚LNMP挂了,改 LAMP了,这个我就不会折腾了@

我是菜鸟麻烦大大们可以详细点告诉我么? Kloxo  那个apache  AddDefaultCharset UTF8 强制 UTF8 我把它OFF掉,不然GBK全乱码@  SSH可以快速查找么? 自己找了很久找到,不想弄错,直接关了SSH@出现这个没遇到过的问题
  1. E325: ATTENTION
  2. Found a swap file by the name ".httpd.conf.swp"
  3.           owned by: root   dated: Fri Jan  7 20:25:37 2011
  4.          file name: /etc/httpd/conf/httpd.conf
  5.           modified: YES
  6.          user name: root   host name: server.uubus.cc.uubus.cc
  7.         process ID: 30340
  8. While opening file "httpd.conf"
  9.              dated: Fri Jan  7 19:18:26 2011

  10. (1) Another program may be editing the same file.
  11.     If this is the case, be careful not to end up with two
  12.     different instances of the same file when making changes.
  13.     Quit, or continue with caution.

  14. (2) An edit session for this file crashed.
  15.     If this is the case, use ":recover" or "vim -r httpd.conf"
  16.     to recover the changes (see ":help recovery").
  17.     If you did this already, delete the swap file ".httpd.conf.swp"
  18.     to avoid this message.
  19. -- More --
复制代码
发表于 2011-1-8 03:28:46 | 显示全部楼层
rm -f .*.swp
发表于 2011-1-8 03:29:50 | 显示全部楼层
其实吧,怎么处理都已经打印在屏幕上了,软件做到这个份上已经非常不错,你该找本字典翻翻解释,弄明白那几句话到底在说什么。
发表于 2011-1-8 04:01:58 | 显示全部楼层
二楼回答正确,删掉那个临时保存文件就行
发表于 2011-1-8 07:51:37 | 显示全部楼层
我以前遇到这个问题看说明自己解决了,看来你比我还我还菜……
发表于 2011-1-8 09:11:13 | 显示全部楼层
直接按enter继续编辑
发表于 2011-1-8 09:17:18 | 显示全部楼层
喜欢winscp上直接编辑
发表于 2011-1-8 19:31:49 | 显示全部楼层
删了SWP文件
发表于 2011-1-8 23:46:52 | 显示全部楼层
vim -r httpd.conf
人家软件命令都个你打出来了!
发表于 2011-1-8 23:48:33 | 显示全部楼层
原帖由 wzwen 于 2011-1-8 09:17 发表
喜欢winscp上直接编辑


我以前喜欢用winscp,但是现在觉得又开putty,又开winscp很麻烦,就改用vi了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|兜哪儿主机交流论坛

GMT+8, 2024-9-20 21:31 , Processed in 0.065412 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表