FTP服务器的搭建与使用|网络资讯论坛|GET Kali|Community

FTP服务器的搭建与使用

FTP为文件传输协议,顾名思义,我们可以利用FTP服务器来进行文件传输,其端口号为21.

搭建过程如下

setenforce 0            //设置selinux状态为disabled

getenforce              //查看selinux状态

systemctl stop firewalld             //关闭防火墙

yum -y install vsftpd                  //安装相关组件

cd /etc/vsftpd

cd /var/ftp                            //进入相关目录

 

如下图,在服务器里面创建文件和目录

ad1a1b7183110903

如下图,进入相关目录,并修改配置文件

ad1a1b7183111149

在名为vsftpd.conf加上如下内容:

当然,也可以根据自己的喜好进行设置。

保存退出vim文本编辑器。

systemctl start vsftpd       //开启ftp服务器

在客户端访问ftp://[服务器的IPv4地址],如图,就可以使用自己搭建的FTP服务器了。

ad1a1b7183112359

 

 

 

请登录后发表评论

    请登录后查看回复内容

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO