CentOS7.2部署FTP
2017-07-18 19:49
525 查看
目前Linux大部分部署的FTP服务器都是vsftpd,至于为什么,暂时没什么必要深究。
1.安装vsftpd
2
1
2
2.配置参数
1
修改为如下参数
2
3
4
5
6
1
2
3
4
5
6
3.重启ftp
2
1
2
4.修改防火墙配置
2
3
1
2
3
5.为ftp创建一个用户test1(指定目录为/home/www,不允许远程登录shell)
2
3
![](http://static.blog.csdn.net/images/save_snippets_01.png)
1
2
3
6.为ftp用户设置一个密码
1
1.安装vsftpd
# yum check-update # yum -y install vsftpd1
2
1
2
2.配置参数
# vi /etc/vsftpd/vsftpd.conf1
1
修改为如下参数
anonymous_enable=NO chroot_local_user=YES allow_writeable_chroot=YES pasv_enable=YES pasv_min_port=40000 pasv_max_port=401001
2
3
4
5
6
1
2
3
4
5
6
3.重启ftp
# systemctl restart vsftpd.service # systemctl enable vsftpd.service1
2
1
2
4.修改防火墙配置
# firewall-cmd --permanent --add-service=ftp # firewall-cmd --reload # setsebool -P ftp_home_dir on1
2
3
1
2
3
5.为ftp创建一个用户test1(指定目录为/home/www,不允许远程登录shell)
# useradd -d /home/www -m test1 -s /sbin/nologin # cd /home/www # chmod -R 777 *1
2
3
![](http://static.blog.csdn.net/images/save_snippets_01.png)
1
2
3
6.为ftp用户设置一个密码
# passwd test11
1
相关文章推荐
- CentOS7.2部署FTP
- CentOS7.2部署FTP
- 阿里云centos7.2部署笔录--使用ftp(一)
- 阿里云ECS 部署 LAMP (CentOS 7.2)
- Linux的centos7.2部署rocketMq3.5.8
- [原]CentOS7.2部署KVM虚拟机
- CentOS 7.2 部署网站访问日志分析器 - Piwik
- ArcGIS Enterprise 10.5.1 静默安装部署记录(Centos 7.2 minimal)- 4、安装 ArcGIS for Server
- [原]CentOS7.2最小安装环境部署Asp.NET Core笔记
- centos7.2 安装部署ElkStack 5.0日志分析系统
- CentOS 7.2 部署Saltstack
- 完整部署CentOS7.2+OpenStack+kvm 云平台环境(1)--基础环境搭建
- centos7.2部署vnc服务记录
- 部署 LAMP (CentOS 7.2)
- CentOS7.2 LNMP安装部署zabbix3.2
- 阿里云 CentOS7.2 配置FTP+Node.js环境
- centos7.2 ftp连接问题
- ArcGIS Enterprise 10.5.1 静默安装部署记录(Centos 7.2 minimal)- 5、安装Datastore
- 阿里云服务器建站之部署 LAMP (CentOS 7.2)