在Ubuntu上搭建ftp服务器

实验环境:Ubuntu 20.04 LTS 64位版 (角色:作为局域网内的ftp服务器)

客户机:Windows 10 (客户机不需要任何设置,只要和服务器在一个网络内即可)

In order to study English,this blog is edited by English.

step 1:Check if the server was installed vsftpd already. If not, install vsftpd by using command "sudo apt-get install vsftpd". Then,use command "vsftpd -v" to check the software if it is installed successfully.

step 2:Create a ftp folder in your server,for example,"/home/UserName/Desktop/ftp".The name of the folder is dependent on you.In here,I named it as 'ftp'.

step 3:Modify the file "vsftpd.conf" under '/etc/'.There are too many parameters in this file.You can read it. At the end of the document, add a line as "local_root=/home/UserName/Desktop/ftp".

step 4:Restart the ftp service by using command "sudo service vsftpd restart"

step 5:Type command "ifconfig" in shell to see what  the ip address is.

step 6:In client PC, input the URL "ftp://ip" and then input the user name and password to browse.

In this test, I only modify the 'vsftpd.conf' by add a line as ''local_root=/home/UserName/Desktop/ftp".I do not to modify the authority of ftp. So the client can only browse the files in ftp,they can not write it.

As a client user, if you  want to upload your file to ftp server ,please uncomment(取消注释) the line "#write_enable=YES".

Note:Each time when you modified the config file,please run "sudo service vsftpd restart" to make it take effect.

Thanks for reading (Although there are too many English syntax errors in this blog).

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值