Environment: CentOS 6.4 x86_64
Required applications: vsftpd-3.0.2.tar.gz
I have introduced httpd source code installation in details in another article. (Address:) Here I will introduce vsftpd source code installation and compare it with what is different from httpd source code installation. The steps for installing source code are not detailed here.
Of course, the compiling environment is indispensable in the source code installation software system. I will not introduce the establishment of the compiling environment here. I have provided a detailed introduction in the previous blog on httpd installation, if you do not understand, you can read the blog. The following describes how to install and test vsftpd.
First decompress vsftpd-3.0.2.tar.gz, use the command tar-zxvf vsftpd-3.0.2.tar.gz-C/usr/local/src to switch to the/usr/local/src directory, you can see the directory just extracted
Switch to the directory and compare the differences with httpd.
What should I do if I find that there is no configure file? It doesn't matter. The INSTALL file details how to do it. Then let's follow the steps above.
First, edit the builddefs. h file.
Here I need to use tcpwrappers, And we will modify the line of tcpwrapper to: define VSF_BUILD_TCPWRAPPERS to save and exit
Next, execute make. However, when we make, we find an error,
Tcpwrap errors are found. by querying a library installed with tcpwrap in our system, other software related to tcpwrap is found during the query of the CD.
So let's install tcp_wrappers and tcp_wrapper-devel.
Run make after installation. Run make clean all to clear the previous make before execution, and then make
But there is another error.
Then install libcap again. After installation, execute the above steps. At this time, you can make it and check whether a vsftpd file is created in the current directory.
Recommended reading:
Four Advanced configurations of vsftpd Server:
VsFTPd configuration Tutorial:
Simple and practical Ubuntu FTP setup
Set up FTP server and Apache server on Ubuntu
Install the LAMP \ vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04
Simple case of anonymous uploading of SeLinux and vsftpd on the RHEL6 Platform
Install vsftpd source code in Linux
Case study of vsftpd Security Configuration