ftp内网资源池的错误集锦

error1:
"Failed connect to 192.168.161.127:21; 拒绝连接"

ways:检查服务端服务是否正常启动
在这里插入图片描述可以看到服务端没有启服务,centos启动vsftpd服务命令如下;
在这里插入图片描述

error2:
ftp://192.168.161.127/pub/centos/7/dvd/Packages/unzip-6.0-20.el7.x86_64.rpm: [Errno 14] FTP Error 550 - Server denied you to change to the given directory
正在尝试其它镜像。

检查防火墙是否阻拦

error3:
ftp://192.168.161.127/pub/centos/7/dvd/Packages/unzip-6.0-20.el7.x86_64.rpm: [Errno 14] FTP Error 550 - Server denied you to change to the given directory
正在尝试其它镜像。

上图是检查客户端的,这次检查下服务端的
在这里插入图片描述两边防火墙规则都放通了,再试还是如下报错

ftp://192.168.161.127/pub/centos/7/dvd/Packages/unzip-6.0-20.el7.x86_64.rpm: [Errno 14] FTP Error 550 - Server denied you to change to the given directory
正在尝试其它镜像。

这时检查下客户端及服务端的selinux是否没有关闭,如下图
在这里插入图片描述打开,顺便设置一下永久生效的,见下图
在这里插入图片描述再试一次,成功。
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_38774492/article/details/108057128