Linux 搭建 ftp服务器

发布时间 2023-10-17 15:06:05作者: y_d_g

ftp服务器的搭建 : 文件的上传,文件下载


yum -y install vsftpd //安装ftp

vim /etc/vsftpd/vsftpd.conf      //关闭匿名访问
anonymous_enable=NO         //关闭匿名访问

systemctl start vsftpd.service //启动服务

systemctl status vsftpd.service //查看服务状态
如果看到的结果中包含active(running) ,那就表示启动成功了

开发访问端口
[root@localhost ~]# firewall-cmd --zone=public --add-port=21/tcp --permanent
success
[root@localhost ~]# firewall-cmd --zone=public --add-port=1025-65535/tcp --permanent
success
[root@localhost ~]# systemctl restart firewalld


新建一个用户
adduser unistrong@123
passwd unistrong@123