记一次ftp服务器下载文件 530 问题
阿里云搭建 FTP 服务器
第一步
// 安装vsftpd
yum install -y vsftpd
第二步
修改vsftpd配置文件
进入安装的vsftpd目录下:
[root@iZbp1f2xn3w6b7ozws0bg7Z ~]# cd /etc/vsftpd/
[root@iZbp1f2xn3w6b7ozws0bg7Z vsftpd]# ls
ftpusers user_list vsftpd.conf vsftpd_conf_migrate.sh
vsftpd.conf
核心配置文件
user_list
用户列表 允此文件里的用户允许访问 FTP 服务器
ftpusers
黑名单 此文件里的用户不允许访问 FTP 服务器
修改配置文件
1、anonymous_enable = YES
改为 anonymous_enable = NO
2、注释掉user_list
文件和 ftpusers
文件中的 root
并保存
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
第三步
重启ftp服务
// 查询ftp服务状态
service vsftpd status
// 重启服务命令
systemctl restart vsftpd.service
// 启动服务命令
systemctl start vsftpd.service
第四步
阿里云服务器设置安全组可入端口
第五步
测试是否能连接ftp服务器,当出现 230 Login successful. 证明设置成功!
C:\Users\Administrator>ftp 56.91.122.15
连接到 56.91.122.15。
220 (vsFTPd 3.0.2)
200 Always in UTF8 mode.
用户(47.97.121.25:(none)): root
331 Please specify the password.
密码:
230 Login successful.