FTP服务的使用

1.安装FTP服务

yum install vsftpd -y

2.设置ftp匿名路径为opt

vi /etc/vsftpd/vsftpd.conf
cat /etc/vsftpd/vsftpd.conf
....
anon_root=/opt #添加
....

3.启动vsftp

systemctl start vsftpd
[root@localhost ~]# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1015/sshd           
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1190/master         
tcp6       0      0 :::21                   :::*                    LISTEN      1401/vsftpd         
tcp6       0      0 :::22                   :::*                    LISTEN      1015/sshd           
tcp6       0      0 ::1:25                  :::*                    LISTEN      1190/master 

4.ftp:ip

 

posted @ 2021-12-29 10:40  鸽子咕咕咕  阅读(67)  评论(0)    收藏  举报