[root@itdragon ~]# useradd ftpuser [root@itdragon ~]# passwd ftpuser Changing password for user ftpuser. New password: BAD PASSWORD: it is too short BAD PASSWORD: is too simple Retype new password: passwd: all authentication tokens updated successfully. [root@itdragon ~]# yum -y install vsftpd [root@itdragon ~]# ifconfig第一步:添加ftp用户 第二步:设置ftp用户密码 第三步:安装vsftpd 第四步:查看ip地址 第五步:本地使用免费的FileZilla 链接虚拟机 [b]遇到的问题 [/b] 连接失败
状态: 正在等待重试... 状态: 正在连接 192.168.0.11:21... 错误: 20 秒后无活动,连接超时 错误: 无法连接到服务器
[root@itdragon ~]# vim /etc/vsftpd/vsftpd.conf anonymous_enable=NO pasv_min_port=30000 pasv_max_port=31000 [root@itdragon ~]# service vsftpd restart [root@itdragon ~]# vim /etc/sysconfig/iptables -A INPUT -p tcp -m multiport --dport 20,21 -m state --state NEW -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT -A INPUT -p tcp --dport 30000:31000 -j ACCEPT [root@itdragon ~]# service iptables restart [root@itdragon ~]# getsebool -a | grep ftp allow_ftpd_anon_write --> off allow_ftpd_full_access --> off allow_ftpd_use_cifs --> off allow_ftpd_use_nfs --> off ftp_home_dir --> off ftpd_connect_db --> off ftpd_use_fusefs --> off ftpd_use_passive_mode --> off httpd_enable_ftp_server --> off tftp_anon_write --> off tftp_use_cifs --> off tftp_use_nfs --> off [root@itdragon ~]# setsebool -P allow_ftpd_full_access on [root@itdragon ~]# setsebool -P ftp_home_dir on
[root@itdragon modprobe.d]# service iptables stop iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Flushing firewall rules: [ OK ] iptables: Unloading modules: [ OK ] [root@itdragon modprobe.d]# chkconfig iptables off
响应:553 Could not create file. 错误: 严重文件传输错误
[root@itdragon html]# mkdir images [root@itdragon html]# chmod -R 777 images [root@itdragon html]# ll total 12 -rw-r--r--. 1 root root 537 Nov 18 10:53 50x.html drwxrwxrwx. 2 root root 4096 Nov 18 10:55 images -rw-r--r--. 1 root root 612 Nov 18 10:53 index.html [root@itdragon html]# vim /etc/vsftpd/vsftpd.conf local_root=/var/ftp [root@itdragon html]# service vsftpd restart
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有