Centos下FTP服务器搭建
[*]安装
Yum install vsftpd启动/重启/关闭Service vsftpd start/restart/stop开机默认启动Chkconfig vsftpd on
[*]配置
配置文件位置:/etc/vsftpd/vsftpd.conf配置vsftpd.confanonymous_enable=NO #禁止匿名xferlog_enable=YES #打开日志记录xferlog_file=/var/log/vsftpd.log #日志存放位置
xferlog_std_format=YES #标准日志格式idle_session_timeout=600 #空闲连接超时
data_connection_timeout=120 chroot_local_user=YES #限制用户在其目录下,不能访问其他目录
[*]添加FTP本地用户
添加一个目录为/var/www的test用户/usr/sbin/adduser -d /var/www-g ftp -s /sbin/nologin testAdduser 添加test用户,自己的文件夹位置为/var/www,属于用户组ftp,不能登陆系统(-s /sbin/nologin)
页:
[1]