FTP的搭建 --linux

it2022-05-05  111

搭建FTP服务,大部分都是使用yum源去下载FTP服务。

    yum install vsftpd

其实要不要去设置/etc/vsftpd.conf文件,就要根据自己的需求。

 如果没有对vsftpd.conf进行设置,则:

    /etc/vsftpd/user_list   将root的账号注释掉   因为初始化的配置:userlist_enable=YES

    /etc/vsftpd/ftpuser     将root的账号注释掉   不让登陆的账号

由于影响到文件上传和下载、端口的开放是和selinux和iptables有关

       /etc/sysconfig/selinux    将SELINUX=disable 在更改完后重启电脑     然后再开启vsftpd服务:service vsftpd start                                service iptables stop

使用ftp工具,通过root用户登陆。

转载于:https://www.cnblogs.com/Dr-super/p/4692766.html


最新回复(0)