Preparation Tool vsftpd-3.0.2.tar.gz
TAR-ZXVF vsftpd-3.0.2.tar.gz-c/usr/local/src/(unpacking to src directory)
CD/USR/LOCAL/SRC/VSFTPD-3.0.2/(into the vsftpd-3.0.2 directory)
Ls
Less INSTALL (view installation instructions – You can get a very clear understanding of the installation steps by installing instructions)
Vim builddefs.h (Edit builddefs.h)
Change undef vsf_build_tcpwrappers to define vsf_build_tcpwrappers (used when building a simple firewall)
Ls-l VSFTPD (you can see the VSFTPD program through this command after make)
[Root@localhost root]# Useradd Nobody (to be satisfied with VSFTPD when installing VSFTPD--Anonymous account one nobody identity login)
mkdir-pv/usr/share/empty/(Create an empty directory)
mkdir-pv/var/ftp/
Useradd-d/var/ftp FTP (create FTP account)
chmod og-w/var/ftp (Modify permissions)
CP vsftpd.conf/etc (copy configuration file)
Vim/etc/vsftpd.config (Edit)
Local_enable=yes, remove the comment (#号) of this line (otherwise, you will be limited when you set up your account login)
Write_enable=yes the comment (#号) of this line
After restarting the service, it will take effect, without control script, use Pkill vsftpd
Then restart the VSFTPD service
./VSFTPD & (running in the background)
CD redhat/
CP Vsftpd.pam/etc/pam.d/ftp (Specifies the calling module interface)
cd/usr/local/sbin/(VSFTPD is placed in this directory
)
CD Sbin
./VSFTPD & (Let Vsftpd run in the background)
Create a directory under the FTP directory (don't see anything when testing is prevented)
Mkdir/var/ftp/pub