ubuntu上搭建ftp服务器

来源:互联网 发布:总结 优化机构设置 编辑:程序博客网 时间:2024/06/05 11:01

下载安装vsftpd

apt-get install vsftpd

此时在用户的/home即多了个ftp文件夹。

配置文件

vim /etc/vsftpd.conf 。

重启 ftp服务器

/etc/init.d/vsftpd restart
或者service vsftpd restart

结果验证

本地
ftp 127.0.0.1

远程windows cmd
ftp 10.0.0.1

使用ftp上传指定文件到指定目录
先保证目的文件夹可写
chmod 777 /guodong/ftp/
put命令
cd /guodong/ftp/switchconf
ftp>put c:/123.txt