挂载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...
1:vsftpd
[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
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
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]$