全球主机交流论坛

标题: 请教下,VI编辑没保存关闭了SSH,现在编辑出现这个怎么弄? [打印本页]

作者: 菜鸟也疯狂    时间: 2011-1-8 03:24
标题: 请教下,VI编辑没保存关闭了SSH,现在编辑出现这个怎么弄?
这个大概是有个缓存一样的文件吧,但是这个在我就在重新编辑就编辑不了了。

如何才能够不提示这个,重新编辑@ 以前用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 --
复制代码

作者: vnconfig    时间: 2011-1-8 03:28
rm -f .*.swp
作者: vnconfig    时间: 2011-1-8 03:29
其实吧,怎么处理都已经打印在屏幕上了,软件做到这个份上已经非常不错,你该找本字典翻翻解释,弄明白那几句话到底在说什么。
作者: ender049    时间: 2011-1-8 04:01
二楼回答正确,删掉那个临时保存文件就行
作者: skywing    时间: 2011-1-8 07:51
我以前遇到这个问题看说明自己解决了,看来你比我还我还菜……
作者: 网者归来    时间: 2011-1-8 09:11
直接按enter继续编辑
作者: wzwen    时间: 2011-1-8 09:17
喜欢winscp上直接编辑
作者: mfch666    时间: 2011-1-8 19:31
删了SWP文件
作者: houniao    时间: 2011-1-8 23:46
vim -r httpd.conf
人家软件命令都个你打出来了!
作者: 菠萝    时间: 2011-1-8 23:48
原帖由 wzwen 于 2011-1-8 09:17 发表
喜欢winscp上直接编辑


我以前喜欢用winscp,但是现在觉得又开putty,又开winscp很麻烦,就改用vi了
作者: cdis    时间: 2011-1-9 01:43
vim -r httpd.conf

人家已经说清楚了……输入这个就行……LZ,仔细看看
不过我个人喜欢nano,省事儿,需要干替换什么的sed就行,组合嘛,哈哈~




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4