首页 | 资讯动态 | linux基础 | 系统管理 | 网络管理 | 编程开发 | linux数据库 | 服务器技术 | linux相关 | linux认证 | 嵌入式 | 下载中心 | 专题 | linux招聘 | 镜像站
OKLinux中文技术站
·设为首页
·加入收藏
·联系我们
系统管理: 中文环境 系统管理 桌面应用 内核技术 | Linux基础: 基础入门 安装配置 常用命令 经验技巧 软件应用 | Linux数据库: Mysql Postgre Oracle DB2 Sybase other
网络管理: 网络安全 网络应用 Linux服务器 环境配置 黑客安全 | 编程开发: PHP CC++ Python Perl Shell 嵌入式开发 java jsp | PHP技术: PHP基础 PHP技巧 PHP应用 PHP文摘
Linux资讯 Linux招聘 Linux专题 Apache | Linux相关: 硬件相关 Linux解决方案 Linux认证 企业应用 其它Unix | 相关下载: 资料下载 参考手册 开发工具 服务器类 软路由 其它
 技术搜索:
会员中心 注册会员 高级搜索  
  → 当前位置:首页>linux相关>企业应用>正文

VSFTPd自架Linux系统网络服务器方法

http://www.oklinux.cn  2008-01-20  来源: 赛迪网 kid  会员收藏  游客收藏  【 】 

约定:
  1。本帖操作环境是Redhat 9.0,vsFTPd的版本是Redhat 9.0所带的vsftpd-1.1.3-8.i386.rpm,在安装盘的第三张中
  
  2。vsFTPd实现的最基本的目的:用系统中存在的真实用户能登入FTP,能用匿名访问。
  
  3。本帖中vsFTPd运行模式是在standalone模式下运行的,也就是说,本帖中vsFTPd所有的功能都是在standalone模式下运行的。至于有些功能是否能在xinetd模式下运行,您就得测试了,不能照搬照抄。因为有些功能是必须运行在特定的模式下的。
  
  3。服务器的IP和和DNS设定
  
  第一块网卡
  IP:192.168.0.1
  子掩码:255.255.255.0
  网关不设置:
  第二块网卡:
  IP:192.168.0.2
  子掩码:255.255.255.0
  网关不设置
  
  因为我的操作环境是一个小型的局域网,所以其它的机器的IP都是在192.168.0这个网段上。ADSL是接在服务器的第一个网卡上。服务器的第二个网卡是接集线器,其它的客户机都是接在集线器上。为了能让ADSL访问internet,因为自己手动设置了IP,所以DNS也要自己来设置,DNS如下:
  
  202.96.134.133
  202.96.168.68
  
  设置工具是:
  [root@linuxsir001 root]# redhat-config-network
  
  相应参考资料:vsFTPd官方文档:
  
  http://www.linuxsir.com/bbs/showthr...;threadid=43451
  
  一。用vsFTPd来架设FTP服务器,vsFTPd服务器是目前最好的FTP服务器软件,优点是体积小,可定制强,效率高
  
  1。查看是否安装了vsFTPd软件
  [root@linuxsir001 root]# rpm -qa | grep vsftpd
  假如没有任何显示,说明没有把vsFTPd安装上,假如出现的是下面的这样的提示,就证实已经安装上了。
  
  [root@linuxsir001 root]# rpm -qa | grep vsftpd
  vsftpd-1.1.3-8
  
  我以Redhat 9.0,以其自带的vsFTPd包vsftpd-1.1.3-8版本来为本帖约定。
  
  [root@linuxsir001 root]# rpm -ivh vsftpd*.rpm
  
  2。打开vsFTPd服务器。
  
  [root@linuxsir001 root]# ntsysv
  
  把vsftpd服务器打开,也就是在运行 ntsysv命令后,把vsftpd服务选中。
  
  [*] vsftpd
  
  3。运行/etc/init.d/vsftpd start
  
  [root@linuxsir001 root]# /etc/init.d/vsftpd start
  为 vsftpd 启动 vsftpd: [ 确定 ]
  [root@linuxsir001 root]#
  
  4。配制vsFTPd,vsFTPd的运行有两种模式,一种是standalone "initd"模式,另外一种是xinetd模式,上面我们所说的就是standalone "initd"运行模式。两种模式运行机制不是相同的,stardard initd模式,适合专业FTP,且FTP总是一直有人访问,占用资源也是比较大,假如您的FTP总是有人访问和登入。就要用这种模式。假如您的FTP访问人数比较小,建议您用xinetd模式。xinetd模式,是当用户请求时,vsFTPd才会启动。
  
  不同的环境,当然得用不同的启动模式。
  
  假如想了解更多的,请在本帖后面跟帖,我会慢慢补充xinetd模式,以及虚拟用户如何设置方面的问题。
  
  1]我们主要把vsFTPd的配制文件改一下就行了。配制文件在/etc/vsftpd/vsftpd.conf,用您喜欢的编辑器打开。请参考下面的配制文件。
  
  # Example config file /etc/vsftpd.conf
  #
  # The default compiled in settings are very paranoid. This sample file
  # loosens things up a bit, to make the ftp daemon more usable.
  #
  # Allow anonymous FTP?
  anonymous_enable=YES
  #
  # Uncomment this to allow local users to log in.
  local_enable=YES
  #
  # Uncomment this to enable any form of FTP write command.
  write_enable=YES
  #
  # Default umask for local users is 077. You may wish to change this to 022,
  # if your users expect that (022 is used by most other ftpd's)
  local_umask=022
  #
  # Uncomment this to allow the anonymous FTP user to upload files. This only
  # has an effect if the above global write enable is activated. Also, you will
  # obviously need to create a directory writable by the FTP user.
  #anon_upload_enable=YES
  #
  # Uncomment this if you want the anonymous FTP user to be able to create
  # new directories.
  #anon_mkdir_write_enable=YES
  #
  # Activate directory messages - messages given to remote users when they
  # go into a certain directory.
  dirmessage_enable=YES
  #
  # Activate logging of uploads/downloads.
  xferlog_enable=YES
  #
  # Make sure PORT transfer connections originate from port 20 (ftp-data).
  connect_from_port_20=YES
  #
  # If you want, you can arrange for uploaded anonymous files to be owned by
  # a different user. Note! Using "root" for uploaded files is not
  # recommended!
  #chown_uploads=YES
  #chown_username=whoever
  #
  # You may override where the log file goes if you like. The default is shown
  # below.
  #xferlog_file=/var/log/vsftpd.log
  #
  # If you want, you can have your log file in standard ftpd xferlog format
  xferlog_std_format=YES
  #
  # You may change the default value for timing out an idle session.
  #idle_session_timeout=600
  #
  # You may change the default value for timing out a data connection.
  #data_connection_timeout=120
  #
  # It is recommended that you define on your system a unique user which the

共2页: 上一页 1 [2] 下一页

上一篇:Redhat 红帽宣布第二届JBoss年度创新奖   下一篇:Ubuntu Linux下 PDF乱码的终极解决办法


收藏于收藏夹】 【评论】 【推荐】 【打印】 【关闭
相关文档
·分享Ubuntu Linux上边的CVS服务器的配置
·Squid应用 高效配置Linux系统代理服务器
·Linux系统下VPN服务器的配置方法介绍
·在AS4上架设QMAIL 反病毒垃圾模块的方法
·LAMP(Linux Apache Mysql PHP)优化技巧
·中小型企业办公业务网络组建中Linux的作用
·拨号用户使用局域网上的Linux Samba服务器
·Linux系统挂载AIX NFS服务器的配置方法
·配置记录FTP传输情况的Linux FTP服务器
·搭建性能比Squid高很多的Varnish服务器
·Fedora Core Linux系统服务器的调试手记
·Linux上Apache PHP4.0 Sybase的安装文档
·CentOS4.4用VSFTPD架设FTP服务器的方法
·SuSE Linux系统下Apache的设定方法
·Linux系统集群 安装配置排错的基本方法
·鸟哥的Linux学习笔记 DNS服务器相关知识
发表评论
密码: 匿名评论
评论内容:

(不超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规)
 
  最新文档
·Linux服务器ADSL下利用NAT实现上网共享
·RHEL5系统下配置YUM源的方法
·OpenSUSE系统下使用SAMBA建立文件服务
·Linux服务器维护 统计连接数查看外部IP
·Linux系统邮件服务器的搭建过程解析
·详细解析:在CentOS下安装配置VNC的过
·系统管理:基于Linux的负载均衡技术介
·SUSE Linux系统下用SAMBA建立文件服务
·Linux系统服务器的存储空间巧妙管理
·RedHat Linux 5系统下使用远程桌面环境
·Linux系统下搭建SNORT入侵检测系统
·将Linux设置成Cisco路由器的日志服务器
  阅读排行
·在Linux世界驰骋系列之三——结构和算
·Linux世界驰骋四——文件系统和设备管
·邮件系统的选型与架构专题(上篇)
·在Linux世界驰骋系列之二——Shell编程
·
·
Linux世界驰骋五——Linux常用实用工具
·深入OpenOffice.org之二应用XML文件格
·手把手教您配置Liunx目录服务器
·向左走向右走 当邮政业“遇上”Linux
·Linux系统可卸载内核模块完全指南(下
·邮件系统的选型与架构专题(下篇)
·图解红旗Linux 4.0桌面系统的安装(图
·Linux系统可卸载内核模块完全指南(中
·深度分析:Linux正在走出发展低潮
·深入探讨Linux与微软在桌面上的较量
网摘收藏: