Setting up FTP on Amazon Cloud Server

I am trying to set up FTP on Amazon Cloud Server, but without luck. I search over net and there is no concrete steps how to do it.

I found those commands to run:

$ yum install vsftpd
$ ec2-authorize default -p 20-21
$ ec2-authorize default -p 1024-1048
$ vi /etc/vsftpd/vsftpd.conf
#—Add following lines at the end of file—
pasv_enable=YES
pasv_min_port=1024
pasv_max_port=1048
pasv_address=
$ /etc/init.d/vsftpd restart
But I don’t know where to write them.