Acquisition and installation of VSFTPD software packages
First install ftp-0.17-51.1.el6.x86_64.rpm
Then install vsftpd-2.2.2-11.el6.x86_64.rpm
Need to have root privileges on the system when installing RPM
#rpm-IVH ftp-0.17-51.1.el6.x86_64.rpm
#rpm-IVH vsftpd-2.2.2-11.el6.x86_64.rpm
After the installation is complete, you need to copy the configuration files to the/etc directory.
#cp/etc/vsftpd/vsftpd.conf/etc/
You can start vsftpd by entering the following command at the command line.
#vsftpd &
[1] 7910
& indicates that VSFTPD is running in the background.
Test the VSFTPD after installation with the following command:
[Tom@localhost ~]$ ftp localhost
Trying:: 1 ...
Ftp:connect to Address:: 1 Reject Connection
Trying 127.0.0.1 ...
Connected to localhost (127.0.0.1).
2.2.2 (VSFTPD)
Name (localhost:liping): Anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
Ftp> ls
Entering passive Mode (127,0,0,1,59,129).
Here comes the directory listing.
Drwxr-xr-x 2 0 0 4096 June 07:55 Pub
Directory send OK.
Ftp> bye
221 Goodbye.
Start and close vsftpd
Start the VSFTPD service
#service vsftpd Start
Stop VSFTPD Service
#service vsftpd Stop
Restart the VSFTPD service
#service vsftpd Restart
Check VSFTPD service Status
#service vsftpd Status
/var/ftp Anonymous User home directory
/var/ftp/pub download directory for anonymous users