centos7 配置ftp服务器搭建(匿名访问,以及本地登录)

本文介绍了如何在 CentOS 7 系统上搭建FTP服务器,允许匿名访问及本地用户登录。首先,确认系统版本和网络连接,然后通过 `yum install vsftpd` 安装服务,编辑 `vsftpd.conf` 配置文件以启用匿名和本地用户访问,调整权限,并重启服务。最后,通过编辑 `ftpusers` 文件限制不允许登录FTP的本地用户。
摘要由CSDN通过智能技术生成

大家好,今天来给大家分享一个基于centos 7的ftp服务器搭建

实现功能:匿名访问,本地登录

查看系统版本:

[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)

查看本地ip地址

[root@localhost ~]# ifconfig ens33
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 240e:3a2:743:df40:bb08:8c86:f745:edd4 prefixlen 64 scopeid 0x0
inet6 fe80::617f:ef93:80d4:e14e prefixlen 64 scopeid 0x20
ether 00:0c:29:87:af:a6 txqueuelen 1000 (Ethernet)
RX packets 50282 bytes 3247879 (3.0 MiB)
RX errors 0 dropped 922 overruns 0 frame 0
TX packets 6542 bytes 8519343 (8.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

我们连一下xshell (远程控制终端)

[C:~]$ ssh 192.168.1.5

Connecting to 192.168.1.5:22…
Connection established.
To escape to local shell, press ‘Ctrl+Alt+]’.

Last login: Sat Oct 23 11:15:44 2021 from 192.168.1.2
[root@localhost ~]#

测试网络:

[root@localhost ~]# ping www.baidu.com
PING www.a.shifen.com (180.101.49.11) 56(84) bytes of data.
64 bytes from 180.101.49.11 (180.101.49.11): icmp_seq=1 ttl=54 time=10.0 ms
64 bytes from 180.101.49.11 (180.101.49.11): icmp_seq=2 ttl=54 time=9.79 ms
64 bytes from 180.101.49.11 (180.101.49.11): icmp_seq=3 ttl=54 time=7.5

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

思诚代码块

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值