当前位置:网站首页>FTP service and experiment
FTP service and experiment
2022-07-24 06:31:00 【Walking Di five flowers】
FTP Service concept
FTP(file Transfer Protocol, File transfer protocol ), Is a typical C/S Application layer protocol of architecture , The file transfer function is realized by the client software and the server software ,FTP The connection between the client and the server is reliable , Connection oriented , It provides reliable guarantee for data transmission .
FTP The use of port
FTP It's a file transfer protocol , It supports two modes
①20 The port is used to transmit data
②21 Ports are used to establish connections
FTP The role of
Internet The protocol used to transfer files remotely on .
FTP experiment
One 、 Environmental requirements
a centos The system serves as ftp The server
One win10 System client
Two 、 Software installation
linux In the system , yes vsftpd Provide ftp Service for yum -y install vsftpd

3、 ... and 、 The configuration file
1、/etc/vsftpd/vsftpd.conf ftp The main profile of the server
2、/etc/ pam.d/vsftpd No login user list , Default root Unable to land
3、/etc/vsftpd/user_list You can set that only users in this list can log in , If the same user appears at the same time ftpusers and user_list Then the user is also forbidden to log in , Take the strictest Authority
4、/var /ftp ftp Root directory , Default login location
5、/var /ftp.pub ftp Root directory , One of the default login locations
1、 Setup profile
[[email protected] etc]# vim /etc/vsftpd/vsftpd.conf
anonymous_enable=YES verify
12 anonymous_enable=YES verify
19 write_enable=YES verify
29 anon_upload_enable=YES uncomment , Turn on use
33 anon_mkdir_write_enable=YES uncomment , Turn on use
129 anno_umask=022 add to
130 anno_other_write_enable=YES add to
explain :
anonymous_enable=YES Enable anonymous user access , The default is on (FTP)
write_enable=YES Open server write permissions ( To upload , Must be turned on ). The default is on
anon_umask=022 Set the permission mask for anonymous users to upload data ( Unmask ).
anon_upload_enable=YES Allow anonymous users to upload files . Default annotated , Need to uncomment
anon_mkdir_write_enable=YES Allow anonymous users to create ( Upload ) Catalog . Default annotated , Need to uncomment
anon_other_write_enable=YES Allow others to delete 、 rename 、 Covering and other operations . Need to add
2、 Give authority i

3、 Turn on FTP service

4、 verification
from win10 On the login FTP The server

stay FTP Create file on , from WIN10 Check out

since win10 End view

download FTP Server files

Upload files :

Four 、 Fault analysis
Many people have configured all the settings , Found only from ftp Upload and download files instead of uploading , It's time to check your selinux Is it closed ,selinux It will affect the experimental results . And form habits , Check whether the firewall is turned off before the experiment .
Method :

If selinux No disable Then enter the configuration file for permanent modification vim /etc/sysconfig/selinux

Shutdown and restart can take effect . This function enables uploading files to ftp Great influence .
边栏推荐
猜你喜欢

Remember to get the password of college student account once, from scratch

go语言的快速上手
![[no need for public IP] configure a fixed public TCP port address for remote desktop raspberry pie](/img/85/dec6a66dd10c35e2519bd240c05de1.png)
[no need for public IP] configure a fixed public TCP port address for remote desktop raspberry pie

【214】什么是自动化框架

IP job (1)

Leetcode sword finger offer jz25 merges two sorted linked lists

How to build a website full of ritual sense and publish it on the public website 2-2

Wasm vs EVM, Boca's choice predicts the future of the public chain

UE4 reload system 1. basic principle of reload system

Customize MVC 3.0
随机推荐
Leetcode sword finger offer jz25 merges two sorted linked lists
Install Apache manually
[222] memory overflow and location
IP course (OSPF) comprehensive experiment
API流程和代码结构
Interview questions for Test Manager / test team leader / Test Supervisor
XML parsing
Tensorflow GPU installation -- 056
Remote connection to Qunhui NAS at home [no public IP, free intranet penetration]
IP笔记(8)
Quickly and simply set up FTP server, and achieve public network access through intranet [no need for public IP]
TensorFlow-GPU 安装 -- 056
Leetcode剑指offer JZ9 双栈实现队列
Map the intranet to the public network [no public IP required]
IP notes (12)
【226】wireshark的参数使用说明
RAID5和LVM组合使用
IP class notes (5)
leetcode剑指offer JZ3 数组中重复的数字
go语言常用命令和包管理