环境:CentOS

安装FTP:yum install vsftpd

启动FTP:service vsftpd start(stop | status | restart)

FTP自启动:chkconfig –level 35 vsftpd on

设置FTP权限(配置文件默认在/etc/vsftpd/vsftpd.conf)

关闭匿名登陆:anonymous_enable=NO

添加账户:useradd ftpadmin -s /sbin/nologin –d /www(初始进入的目录)

设置密码:passwd ftpadmin


文章来源:胡旭个人博客 => 【原】Linux(CentOS)下开启FTP服务

转载请注明出处,违者必究!

Share:

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.