FTP安装

挂载iso 
[root@OL54: /root]$ mount /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only

[root@OL54: /mnt]$ find ./ -name "*ftp*"
./Server/ftp-0.17-35.el5.i386.rpm
./Server/gftp-2.0.18-3.2.2.i386.rpm
./Server/lftp-3.7.11-4.el5.i386.rpm
./Server/tftp-0.49-2.i386.rpm
./Server/tftp-server-0.49-2.i386.rpm
./Server/vsftpd-2.0.5-16.el5_4.1.i386.rpm

RPM安装
[root@OL54: /mnt]$ cd Server
[root@OL54: /mnt/Server]$ rpm -ivh vsftpd-2.0.5-16.el5_4.1.i386.rpm
warning: vsftpd-2.0.5-16.el5_4.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:vsftpd                 ########################################### [100%]
[root@OL54: /mnt/Server]$ rpm -qa|grep vsftpd
vsftpd-2.0.5-16.el5_4.1
[root@OL54: /mnt/Server]$ service vsftpd status
vsftpd is stopped
[root@OL54: /mnt/Server]$ service vsftpd start
Starting vsftpd for vsftpd:                                [  OK  ]
[root@OL54: /mnt/Server]$ service iptables status
Firewall is stopped.

开机自启
[root@OL54: /mnt/Server]$ chkconfig vsftpd on

允许以root用户访问,注释掉root用户
[root@OL54: /mnt/Server]$ cd /etc/vsftpd
[root@OL54: /etc/vsftpd]$ ls -l
total 20
-rw------- 1 root root  125 Dec  4  2009 ftpusers
-rw------- 1 root root  361 Dec  4  2009 user_list
-rw------- 1 root root 4579 Dec  4  2009 vsftpd.conf
-rwxr--r-- 1 root root  338 Dec  4  2009 vsftpd_conf_migrate.sh
[root@OL54: /etc/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
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"user_list" 20L, 362C written
[root@OL54: /etc/vsftpd]$ ls -l
total 20
-rw------- 1 root root  125 Dec  4  2009 ftpusers
-rw------- 1 root root  362 Nov 23 21:08 user_list
-rw------- 1 root root 4579 Dec  4  2009 vsftpd.conf
-rwxr--r-- 1 root root  338 Dec  4  2009 vsftpd_conf_migrate.sh
[root@OL54: /etc/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
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"ftpusers" 15L, 126C written
[root@OL54: /etc/vsftpd]$ service vsftpd restart
Shutting down vsftpd:                                      [  OK  ]
Starting vsftpd for vsftpd:                                [  OK  ]
[root@OL54: /etc/vsftpd]$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 08:00:27:AB:CE:02  
          inet addr:192.168.56.103  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:feab:ce02/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2724 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2160 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:227025 (221.7 KiB)  TX bytes:310976 (303.6 KiB)
          Base address:0xd010 Memory:f0000000-f0020000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4431 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4431 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4734589 (4.5 MiB)  TX bytes:4734589 (4.5 MiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[root@OL54: /etc/vsftpd]$ 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值