在linux上踩过的坑

    技术2022-07-12  84

    1、Xshell工具无法连接虚拟机Linux系统 (1)报错:

    Could not connect to '192.168.149.129' (port 22): Connection failed. Type `help' to learn how to use Xshell prompt.

    (2)原因:防火墙关闭 (3)解决:重启防火墙

    service iptables restart

    以上办法无法解决请看一下

    centOS7配置好IP地址后,发现可以ping通,但是不能ssh远程连接 解决办法: 查看防火墙:service iptables status 关闭防火墙:service iptables stop 打开防火墙:service iptables start 发现不是防火墙的原因。 最后原因是没有使能ssh服务。 解决办法:运行 /etc/init.d/sshd restart

    2、加压jdk报错 (1)问题

    tar (child): jdk-8u161-linux-x64.tar.gz:无法 open: 没有那个文件或目录 tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now

    (2)原因 不明 (3)解决

    直接传压缩文件到某个文件夹 再解压

    tar -zxvf jdk1.8.tar.gz 文件夹名称

    3、

    Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
    Processed: 0.009, SQL: 9