当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > FreeBsd6.2下ports安装配置vsftpd

Unix/Linux
FreeBSD 远程存取
freeBSD初学者入门指南
FREEBSD手工配置网络
查看 FreeBSD 登陆记录
登入和注销 FreeBSD 系统
删除 FreeBSD 账号
新增 FreeBSD 账号
菜鸟学装FreeBSD5.1图解
freebsd 单一网卡配置多个IP
FreeBSD 6.2-RELEASE下载
FreeBSD 上彻底禁用 sendmail
FreeBSD 7.0 高速下载
FreeBSD架設 FTP
FreeBSD6.2上搭建apache2.2+mysql5.11+php5+phpmyadmin
UNIX各类操作系统密码破解方法介绍
7.0 Release i386 DVD iso 下载
RedHat 6.2 中文字体TrueType的使用
FREEBSD6.2 详细安装图解
配置lagg, 实现cisco 2950 与Freebsd 7.0链路聚合笔记
FreeBSD查看即时网络流量

Unix/Linux 中的 FreeBsd6.2下ports安装配置vsftpd


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-15   浏览: 208 ::
收藏到网摘: n/a

安装vsftpd
#cd /usr/ports/ftp/vsftpd
#make WITH_RC_NG=yes install clean

出现对话框,全选安装选项!

查看安装信息:#pkg_info | grep vsftpd
vsftpd-2.0.5        A FTP daemon that aims to be "very secure"
这样就装好了
3。配制vsftpd
#vi /usr/local/etc/vsftpd.conflisten=YES
background=YES
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
ascii_upload_enable=YES
ascii_download_enable=YES
ftpd_banner=Welcome to test FTP 0.1 service.
chroot_local_user=YES

secure_chroot_dir=/usr/local/share/vsftpd/empty

4。运行测试
#/usr/local/etc/rc.d/vsftpd start
......


5。高级设置
限速:设置最大传输速率限制
local_max_rate=50000 //本地用户最大传输速率为50kbytes/s
anon_max_rate=30000 //匿名用户最大传输速率为30kbytes/s
若把上述的数值设为0则为不限速,这也是VSFTP的默认值。

限制连接:设置最大客户端连接数
max_clients=30 //服务器最大连接数设为30,默认为0,即不加以限制,安全的
FTP应该加以限制

开启进站或进入目录的欢迎或说明性文字
dirmessage_enable=YES //开启目录文字选项
message_file=.welcome //欢迎或说明性文字文件设为.welcome,在默认是.message

开启FTP服务器的日志功能
xferlog_enable=YES //启动日志记录功能,记录在xferlog_file指明的文件里
xferlog_file=/var/log/ftp.log //日志记录在文件/var/log/ftp.log里,默认值
为/var/log/xferlog
上面不是默认配置,默认配置是如下语句
xferlog_enable=YES
vsftpd_log_file=/var/log/vsftpd.log //日志记录在/var/log/vsftpd.log里,

绑定IP:
listen_address=192.168.0.2
listen_port=2122