Install yum-yinstallproftpdchkconfigproftpdon
yum -y install proftpd
chkconfig proftpd on
Set startup
Install proftpd
./configure --prefix=/usr/local/proftpd make make install
Configuration file directory/usr/local/proftpd/etc/proftpd.conf
Add Group and user name
grouped ftpgroup
Add Groupuseradd ftpuser -g ftpgroup -d /home/ftp -s /sbin/nologin
Add a user (/home/ftp is the upload directory)passed liu
Change user password
Modify the configuration file:
Change the Group's nogroup to nobody.
Start the service
/Usr/local/proftpd/sbin/proftpd
If you want to add virtual user authentication to the MySQL database (this one is not very well understood, write it first), pay attention to the following command when installing proftpd:
./configure --prefix=/usr/local/proftpd --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql --with-includes=/apps/svr/mysql5/include --with-libraries=/apps/svr/mysql5/binmakemake install
-With-mongodes points to the MySQL header file and-with-libraries points to the MySQL library file
This error occurs during installation:
/Usr/bin/ld: cannot find-lmysqlclientcollect2: ld returned 1 exit statusmake: *** [proftpd] Error 1
The location of the libmysqlclient. so file is/apps/svr/mysql5/lib
Below, all soft connections can be createdln -s /apps/svr/mysql5/lib/libmysqlclient.so /usr/lib/
After executing the above command, I seem not to be able to do it yet. I copied this file directly./apps/svr/mysql5/bin
This is enough.
Note: After proftpd. conf is configured, you must kill proftpd and restart the service configuration to make proftpd take effect./etc/group
User Directory/etc/passwd
Delete a useruser del username
Installation reference: http://jingyan.baidu.com/article/77b8dc7fcd236f6174eab6fd.html http://jingyan.baidu.com/article/acf728fd3c6b8af8e410a347.html