yum install vsftpd
2.Start ftp service
chkconfig --level 35 vsftpd on
service vsftpd start
3.Verify if ftp port 21 is on listening
netstat -ant | grep 21
4.Configure allow root user login
Remove root from /etc/vsftpd/user_list ,/etc/vsftpd/ftpusers and restart vsftpd service .
5.Edit the configuration file /etc/vsftp/vsftpd.conf and add the below 2 lines to change the listening port and data originate port to something else if wants to listen on different port other than 21:
# /etc/vsftp/vsftpd.conf listen_port=A ftp_data_port=B
A – listening port.
B – data originate port.
/etc/services list all the services with assigned port and netstat -plan list all used port to avoid port conflict .