Install proftpd on CentOS

Source: Internet
Author: User
Install yum-yinstallproftpdchkconfigproftpdon

yum -y install proftpd 
chkconfig proftpd onSet 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 ftpgroupAdd Groupuseradd ftpuser -g ftpgroup -d /home/ftp -s /sbin/nologinAdd a user (/home/ftp is the upload directory)passed liuChange 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/libBelow, 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/binThis is enough.

Note: After proftpd. conf is configured, you must kill proftpd and restart the service configuration to make proftpd take effect./etc/groupUser Directory/etc/passwdDelete a useruser del username

Installation reference: http://jingyan.baidu.com/article/77b8dc7fcd236f6174eab6fd.html http://jingyan.baidu.com/article/acf728fd3c6b8af8e410a347.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.