CentOS下安装配置VsFTP

查询系统版本

# uname -a

el7(CentOS 7)

# yum install vsftpd
# which nologin
/usr/sbin/nologin
# useradd -d /data/www -s /usr/sbin/nologin www
# passwd www
# vim /etc/vsftpd/vsftpd.conf
    anonymous_enable=NO
    local_enable=YES
    write_enable=YES
    chroot_local_user=YES
# systemctl start vsftpd
# systemctl enable vsftpd
# chmod a-w /data/www  //解决500 OOPS: vsftpd: refusing to run with writable root inside chroot()
# mkdir /data/www/index
# chown -R www /data/www/index

el6(CentOS 6)

# yum install vsftpd
# which nologin
/sbin/nologin
# useradd -d /data/www -s /sbin/nologin www
# passwd www
# vim /etc/vsftpd/vsftpd.conf
    anonymous_enable=NO
    local_enable=YES
    write_enable=YES
    chroot_local_user=YES
# service vsftpd start
# chkconfig --add vsftpd
# chkconfig --list
上一篇 CentOS下安装JDK
下一篇 CentOS下安装配置Nginx
目录
文章列表
1 SpringBoot Apollo客户端监听配置变化、动态刷新
SpringBoot Apollo客户端监听配置变化、动态刷新
2
整合Shiro出现org.quartz.Scheduler错误
整合Shiro出现org.quartz.Scheduler错误
3
CentOS 7下安装RabbitMQ
CentOS 7下安装RabbitMQ
4
React Dva入门
React Dva入门
5
一句Shell命令搞定代码行数统计
一句Shell命令搞定代码行数统计
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。