客户端与服务端连接故障:
Connecting to 10.0.0.201:22...
连接不上xshell 解决方法:
1、检查服务端:网卡、IP是不是启动和正确的
ip add或者ifconfig
2、检查服务端:端口和进程
查端口:ss -lntup| netstat -lntup 查进程:ps -ef|grep ssh
想让他提供服务 systemctl start sshd 在检查。
3、客户端:IP、端口、协议是不是对的。
PING 10.0.0.200(10.0.0.200) 56(84)字节的数据。
从10.0.0.201 icmp_seq=1目标主机不可达
解决方法:检查ip地址是否正确 查IP:输入:ip add
1、command not found
命令 没有 找到
2、No such file or directory
没有 这个 文件 或 目录
3、Permission denied
权限 拒绝
4、syntax error
语法 错误
5、Try `cp --help' for more information.
试试 `cp --help' 获取 更多 信息
6、invalid user name
不可用的 用户 名字
一. 文件和目录类
1. File exist 文件已经存在
mkdir: cannot create directory ‘/lidao’: File exists
2. No such file or directory 没有这个文件或目录(这个东西不存在)
3.不能创建 /data/oldboy/lidao/ 目录
4.touch命令只能创建文件,目录不存在则会报错
网络连接类
远程连接错误 Connection Failed 连接失败
yum安装软件故障提示 Could not resolve host无法解析主机
【巨坑】tar让你迷茫的提示: Removing leading `/' from member names
为何tar命令这么做?
假设压缩包中存放的是绝对路径
/tmp/etc.tar.gz 压缩包中的文件都是绝对路径。
/etc/hosts
/etc/services
解压的时候 也会按照绝对路径解压 会把源文件覆盖。
系统替我们预防故障,通过把绝对路径--->相对路径。
温馨提示:
不要加上-P (创建压缩包的时候强制使用绝对路径)
不想要这个提示?
先进入这个目录,然后再压缩、