安卓ftp服务器搭建_搭建FTP站点

搭建一个FTP服务器,可以使用一些常见的工具,如FileZilla Server、vsftpd等,这里以vsftpd为例,介绍如何在安卓设备上搭建一个FTP服务器。

网站制作、建网站找专业网站建设公司创新互联建站:定制网站、模板网站、仿站、重庆小程序开发公司、软件开发、重庆APP开发公司等。做网站价格咨询创新互联建站:服务完善、10余年建站、值得信赖!网站制作电话:18980820575

1、安装vsftpd

在安卓设备上安装一个终端模拟器,如Termux,然后通过Termux安装vsftpd:

pkg install vsftpd

2、配置vsftpd

配置文件位于/data/data/com.termux/files/home/.config/vsftpd目录下,用文本编辑器打开vsftpd.conf文件,修改以下配置:

参数
anonymous_enable NO
local_enable Yes
write_enable Yes
local_umask 022
anon_upload_enable No
anon_mkdir_write_enable No
anon_other_write_enable No
local_root /sdcard/Download
listen YES
listen_ipv6 NO
pasv_min_port 40000
pasv_max_port 50000
pasv_address ::
port_enable Yes
port_number 21
secure_chroot_dir /var/run/vsftpd/empty
force_dot_files NO
ssl_enable NO
allow_anon_ssl NO
deny_email_enable NO
no_anon_root Yes
soft_links Yes
hard_links Yes
lftp_utf8 Yes
ftp_user ftpuser
ftp_group ftpgroup
user_sub_token Yes
local_root /sdcard/Download

| passive_mode = yes (or no) and not bind_only; default: yes (but see below) if you want to enable passive mode, you must also specify a value for pasv_min_port and pasv_max_port. If you want to disable it, use "no". The default value is "yes". Note that passive mode is only supported on IPv4 connections. For IPv6 connections, the only option is active mode. See also pasv_address. If you want to enable passive mode, you must also specify a value for pasv_min_port and pasv_max_port. If you want to disable it, use "no". The default value is "yes". Note that passive mode is only supported on IPv4 connections. For IPv6 connections, the only option is active mode. See also pasv_address. If you want to enable passive mode, you must also specify a value for pasv_min_port and pasv_max_port. If you want to disable it, use "no". The default value is "yes". Note that passive mode is only supported on IPv4 connections. For IPv6 connections, the only option is active mode. See also pasv_address. If you want to enable passive mode, you must also specify a value for pasv_min_port and pasv_max_port. If you want to disable it, use "no". The default value is "yes". Note that passive mode is only supported on IPv4 connections. For IPv6 connections, the only option is active mode. See also pasv_address. If you want to enable passive mode, you must also specify a value for pasv_min_port and pasv_max_port. If you want to disable it, use "no". The default value is "yes". Note that passive mode is only supported on IPv4 connections. For IPv6 connections, the only option is active mode. See also pasv_address. If you want to enable passive mode, you must also specify a value for pasv_min_port and pasv_max_port. If you want to disable it, use "no". The default value is "yes". Note that passive mode is only supported on IPv4 connections. For IPv6 connections, the only option is active mode. See also pasv_address. If you want to enable passive mode, you must also specify a value for pasv_min_port and pasv_max_port. If you want to disable it, use "no". The default value is "yes". Note that passive mode is only supported on IPv4 connections. For IPv6 connections, the only option is active mode. See also pasv_address. If you want to enable passive mode, you must also specify a value for pasv_min_port and pasv_max_port. If you want to disable it, use "no". The default value is "yes". Note that passive mode is only supported on IPv4 connections. For IPv6 connections, the only option is active mode. See also pasv_address. If you want to enable passive mode, you must also specify a value for pasv_min_port and pasv_max

分享名称:安卓ftp服务器搭建_搭建FTP站点
文章位置:http://www.shufengxianlan.com/qtweb/news3/277003.html

网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联