RHEL5中配置vsftpd搭建FTP服务器

管理linux服务器时,经常会用到上传、下载文件的功能,下面是关于如何配置vsftpd实现上传、下载功能。
1、查找rpm安装包,RPM安装包名:vsftpd-2.0.5-16.el5.i386.rpm
[root@linux5 RHEL_5.4 i386 DVD]# find -name vsftp*

2、安装rpm包
[root@linux5 /]# rpm -ivh vsftpd-2.0.5-16.el5.i386.rpm

3、修改ftpusers配置文件
[root@linux5 /]# cd /etc/vsftpd/

[root@linux5 vsftpd]# vi ftpusers

# Users that are not allowed to login via ftp
#root                                "加上#"
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

4、修改user_list配置文件
[root@linux5 vsftpd]# vi user_list

# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
#root                                      "加上#"
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
~

5、修改vsftpd.conf配置文件
[root@linux5 vsftpd]# vi vsftpd.conf

添加listen_port=21

6、启动vsftpd服务
[root@linux5 /]# service vsftpd start

猜你喜欢

转载自lenhome.iteye.com/blog/788193
今日推荐