Linux上ftp的安装
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
本章内容基于CentOS6.5(32位)
检查Linux上是否安装了ftp
rpm -qa |grep vsftpd
如果已经安装了ftp服务,则出现ftp的版本信息
使用yum安装ftp服务
yum install vsftpd
查看ftp服务状态
service vsftpd status
刚刚安装好的ftp服务默认是关闭的
启动ftp服务
service vsftpd start
查看当前端口开放情况
netstat -nlpt
可以看到ftp服务对应的默认端口是21端口且进程名为vsftpd
默认安装目录
ftp服务的默认安装目录是etc/vsftpd,其中有四个文件
ftpusers:
user_list:
vsftpd.conf:
vsftpd_conf_migrate.sh:
ftpusers文件
从该文件开头可以知道该文件中所列出的用户都是不允许通过ftp来登陆的
user_list文件
该文件顶部也有提示,vsftpd.conf文件中的userlist_deby默认为YES,如果vsftpd.conf文件中的userlist_deby等于NO,则仅允许在user_list中的用户使用ftp登陆,如果userlist_deby等于YES,则永远不允许在user_list中的用户,甚至都不能输入密码。注意,默认情况下vsftpd还检查ftpusers文件里有哪些用户被拒绝。
vsftpd.conf
默认ftp配置文件,其中有很详细的注释来帮助我们理解配置的作用。




A beautiful web dashboard for Linux
最近提交(Master分支:16 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)