解决systemctl start vsftpd.service Failed to start vsftpd.service: The name org.freedesktop.PolicyKit1

systemctl start vsftpd.service Failed to start vsftpd.service: The name org.freedesktop.PolicyKit1
解决mac 的finder或者cyberduck连接服务器连接不上问题

一 背景

想连接服务器,使用ftp协议,结果不行。

二 原因

网上各种搜索发现都是说可能是这两种原因:

1.IP4与IP6不能同时监听在配置文件(/etc/vsftpd/vsftpd.conf)中将listen=YES改为listen=NO即可

2.Ccentos7系统中vsftpd配置文件默认监听了ip6,而我们的服务器并不支持ip6,需要在配置文件(/etc/vsftpd/vsftpd.conf)中将listen_ipv6=YES修改为listen_ipv6=NO即可

而尝试了上面2个也没有作用。

真正原因:服务没有开启
在这里插入图片描述

三 解决步骤

第一步

 cd /etc/systemd/system/multi-user.target.wants

第二 步 增加软链接

ln -s '/usr/lib/systemd/system/vsftpd.service' '/etc/systemd/system/multi-user.target.wants/vsftpd.service'

第三 步 查看

systemctl list-unit-files | grep vsftpd.service

在这里插入图片描述
然后就能使用了。
finder成功进入:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_39463175/article/details/119491903