FTP服务器搭建:

1.vsftpd.conf配置

# 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).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
idle_session_timeout=6000
#
# You may change the default value for timing out a data connection.
data_connection_timeout=1200
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_local_user=YES
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd with two configuration files.
# Make sure, that one of the listen options is commented !!
#listen_ipv6=YESpam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
  1. 新建ftp用户
    useradd ftp passwd ftp
  2. 新建chroot_list
    根据上面配置,把新建的FTP用户添加到chroot_list和user_list中

    否则会报错

4.检查/etc/vsftpd/路径下是否有重复的配置文件
/etc/vsftpd/vsftpd.conf
如果有那么删除一个,否则会报错

5.启动FTP
cetoos 7操作为/bin/systemctl restart vsftpd.service

centoos 6操作为 service vsftpd restart
6.登录FTP

FTP服务器命令:
退出:
ftp> bye
ftp> quit
切换目录:

上传文件:
put

如果不加远程上传目录,那么现在的目录就是上传文件存放位置(用cd命令切换目录)

一般默认进去,就是当前用户的根路径,例如FTP用户,默认上传路径为:/home/ftp

windows搭建参考:
https://www.cnblogs.com/popfisher/p/7992036.html

linux搭建参考:
简单搭建:https://www.cnblogs.com/LHWorldBlog/p/8516837.html
复杂搭建:https://blog.csdn.net/putao2062/article/details/79668880

FTP命令参考:https://www.cnblogs.com/juandx/p/3998418.html

FTP-服务器搭建及使用相关推荐

  1. -【Java FTP及FTP服务器搭建】

    -[Java FTP及FTP服务器搭建] 一:本文采用apache项目组的 Apache Commons Net™ library 项目地址:http://commons.apache.org/net ...

  2. iis7 文件服务器搭建,iis7 ftp服务器搭建

    iis7 ftp服务器搭建 内容精选 换一换 安装MySQL本文档以"CentOS 6.5 64bit(40GB)"操作系统为例,对应MySQL版本为5.1.73.CentOS 7 ...

  3. linux下java写ftp服务器端,在Linux下部署网站(java环境部署)第五章 FTP服务器搭建...

    第五章 FTP服务器搭建 1.看看是否已经安装FTP服务器 service vsftpd start ftp localhost 如果不认识ftp命令是因为没有安装ftp的client包,需要拿安装光 ...

  4. Linux下FTP服务器搭建

    Linux下FTP服务器搭建 一.FTP介绍 二.环境介绍 三.FTP服务端搭建步骤 1.安装相关软件包 2.启动FTP并检查状态 3.检查服务端口运行状态 4.修改FTP配置文件 5.关闭selin ...

  5. Linux(centos7.4)上FTP服务器搭建(使用yum)

    Linux(centos7.4)上FTP服务器搭建(使用yum) 安装步骤 1.安装 $ yum -y install vsftpd 2.备份配置 cp /etc/vsftpd/vsftpd.conf ...

  6. FTP服务器搭建及操作(一)

    FTP服务器搭建及操作(一) FTP搭建 PHP FTP操作 搭建方法参照(windows):http://www.cnblogs.com/lidan/archive/2012/06/04/25351 ...

  7. ftp服务器必须运行ftp服务器软件对吗,ftp是什么?FTP服务器搭建及选择

    FTP服务器: FTP的全称是File Transfer Protocol(文件传输协议),是专门用来传输文件的协议.FTP的主要作用,就是让用户连接上一个远程计算机(这些计算机上运行着FTP服务器程 ...

  8. 虚拟机xp架设服务器,xp虚拟机搭建ftp服务器搭建

    xp虚拟机搭建ftp服务器搭建 内容精选 换一换 在运行的Sharepoint产品配置向导中,单击"Next".Sharepoint产品配置向导单击"Yes", ...

  9. win7系统ftp服务器搭建,win7系统 ftp服务器搭建

    win7系统 ftp服务器搭建 内容精选 换一换 为了保证使用私有镜像创建的新云服务器可以通过"用户数据注入"功能注入初始化自定义信息(例如为云服务器设置登录密码),请在创建私有镜 ...

  10. suse ftp文件服务器搭建,SUSE下FTP服务器搭建

    FTP(File Transfer Protocol),是TCP/IP网络上两台计算机传送文件的协议,是在TCP/IP网络和Internet上最早使用的协议之一,属于网络协议组的应 用层.FTP客户机 ...

最新文章

  1. Linux下用C语言最基本的程序开发与调试
  2. SAP请求传输事务代码
  3. rpmbuile 制作drbd RPM包
  4. C语言再学习——分支结构
  5. Python对Protobuf进行序列化与反序列化
  6. 解析Pascal赋值语句(洛谷P1597题题解,Java语言描述)
  7. timespan怎么比较大小_万能小哥丨厨房墙砖哪种好?厨房墙砖怎么挑选?
  8. PHP中global与$GLOBALS的区别
  9. CentOS 删除OpenJDK并安装OracleJDK
  10. RocketMQ Client 编码快速入门 与 可视化控制台
  11. jmeter-如何进行参数化-循环读取参数
  12. 快速计算代码行小工具
  13. 希尔伯特空间(Hilbert空间)
  14. DelphiIE插件开发
  15. 用C语言编程验证 “ 哥德巴赫猜想 ”
  16. 让电脑说话vbs程序
  17. 【数据应用案例】异动分析——指标逻辑树
  18. HTML5 游戏开发快速提升
  19. staf框架_测试自动化以及与STAF / STAX的持续集成
  20. 关于大屏拼接方案 触摸屏 红外 和 电容屏

热门文章

  1. 3D图标的制作(Cinema 4D, Photoshop, Icon workshop)
  2. 华氏温度和摄氏温度的转换
  3. python自动化测试——自动化基本技术原理
  4. COMSOL Multiphysics弱形式入门(一)
  5. 使用jeecg-boot心得
  6. C语言——生命游戏(进阶
  7. 铁甲雄心机器人冠军_如何评价机器人格斗节目《铁甲雄心》?
  8. 双软认证办理流程,山东双软认证需要材料
  9. 恒隆核心业务受疫情影响下仍录得增长,主要受惠于内地物业组合
  10. 小i机器人袁辉在亚洲金融论坛谈创业创新与亚洲AI市场