在树莓派上安装FTP服务器

在树莓派终端安装FTP服务器
sudo apt-get install vsftpd

然后对FTP进行配置,打开它的配置文件
sudo nano /etc/vsftpd.conf

修改以下配置
# 不允许匿名访问 
anonymous_enable=NO 
# 设定可以进行写操作
write_enable=YES 
# 设定本地用户可以访问
local_enable=YES 
ascii_upload_enable=YES 
ascii_download_enable=YES

重启服务

sudo service vsftpd restart

完成以上的配置就可以访问树莓派下的FTP服务器了。

在Windows的命令行下连接ftp服务器
ftp xx.xx.xx.xx

输入用户名和密码
用户(xx.xx.xx.xx:(none)): xxx
331 Please specify the password.
密码:
230 Login successful.

切换目录,上传文件
ftp> lcd d:\
目前的本地目录 D:\。
ftp> put Xware1.0.30_armel_v5te_glibc.zip
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 Transfer complete.
ftp: 发送 2078853 字节,用时 6.65秒 312.70千字节/秒。

断开连接
ftp> bye

以上就是关于在树莓派下部署FTP服务器,和从Windows访问树莓派FTP服务器的方法了。

扫描二维码关注公众号,回复: 2015678 查看本文章

猜你喜欢

转载自www.linuxidc.com/Linux/2017-02/140126.htm
今日推荐