美文网首页
Linux使用过程中的报错总结

Linux使用过程中的报错总结

作者: e2ed43b5a4f2 | 来源:发表于2020-07-06 14:16 被阅读0次

    一、远程连接失败的常见原因-----排错
    1、ping IP地址----查看能否ping通
    2、检查本地IP地址是否存在
    3、检查虚拟网络编译器中的vmnet8网卡信息是否配置正确
    4、检查VMnet8网卡是否被禁用
    5、检查本地VMware服务是否启动 本地搜索 services.msc
    6、还原虚拟网络配置重新配置。虚拟网络配置器失效

    二、No Such file or directory -----------没有这个文件或目录
    1、路径写错
    2、路径对了但是没有这个文件或者目录

    三、command not found -----------命令没找到
    1、命令写错
    2、命令没写错,但是系统中没有安装这个命令

    四、File Exists -------------文件已存在
    1、创建的时候文件或者目录真的已存在
    2、创建的时候路径写错了

    五、Is a directory ----------是一个目录
    1、命令不能针对目录进行操作
    2、有时候需要一些选项才能实施

    六、Vim的故障
    1、vim非正常退出
    2、别人正在编辑此文件时
    报错内容:(实例)
    报错内容:(实例)
    E325: ATTENTION
    Found a swap file by the name ".passwd.swp"
    owned by: root dated: Wed Dec 11 19:45:20 2019
    file name: ~root/passwd
    modified: no
    user name: root host name: qls
    process ID: 68044 (still running)
    While opening file "passwd"
    dated: Wed Dec 11 18:32:03 2019

    (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 passwd"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file ".passwd.swp"
    to avoid this message.

    Swap file ".passwd.swp" already exists!
    [O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:

    [root@qhh ~]# vim -r passwd #恢复之前没有保存的状态
    [root@qhh ~]# vim passwd
    [root@qhh ~]# rm -f .passwd.swp #删除临时文件

    [root@qhh ~]# ps aux | grep vim #查看后台vim进程

    root 68044 0.0 0.2 149224 5092 pts/2 S+ 19:45 0:00 vim passwd
    root 68148 0.0 0.0 112708 976 pts/1 R+ 19:47 0:00 grep --color=auto vim

    相关文章

      网友评论

          本文标题:Linux使用过程中的报错总结

          本文链接:https://www.haomeiwen.com/subject/ovxowctx.html