centos上安装配置好之后。
先打开终端,尝试连接一下
如果你还没有ftp指令,就先yum install ftp安装一下,之后再来尝试。
vsftpd配置文件中有配置指定的ftp文件夹
需要新建指定的/product/ftpfile文件夹,如果不新建会报下面的错。
出现以下错误的话,就创建出文件夹/product/ftpfile
为了演示,再文件夹里面再新建一个file文件touch file
。
完整的vsftpd.config如下
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
#ftp文件夹的路径
local_root=/product/ftpfile
#开启后,访问ftp可以将目录退到根目录,不安全
#chroot_local_user=YES
anon_root=/product/ftpfile
use_localtime=YES
#匿名
#anonymous_enable=YES
anonymous_enable=NO
#
#