Install
yum -y install proftpd
chkconfig proftpd on
setting startup
Install proftpd
1 2 3 |
./configure --prefix=/usr/local/proftpd <span class="hljs-built_in">make</span> <span class="hljs-built_in">make</span> install |
Profile directory /usr/local/proftpd/etc/proftpd.conf
Add Group and user names
grouped ftpgroup
group useradd ftpuser -g ftpgroup -d /home/ftp -s /sbin/nologin
add users (/home/FTP is the upload directory) passed liu
modifying user passwords
Modify the configuration file:
Changed to nobody Group nogroup
Start the service
/usr/local/proftpd/sbin/proftpd
If you want to add a virtual MySQL database user authentication (this piece also do not really understand, write know these) Note to install proftpd uses the following commands:
1 2 3 |
<span class="hljs-built_in">.</span>/configure <span class="hljs-subst">--</span>prefix<span class="hljs-subst">=</span>/usr/<span class="hljs-built_in">local</span>/proftpd <span class="hljs-subst">--</span><span class="hljs-keyword">with</span><span class="hljs-attribute">-modules</span><span class="hljs-subst">=</span>mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql <span class="hljs-subst">--</span><span class="hljs-keyword">with</span><span class="hljs-attribute">-includes</span><span class="hljs-subst">=</span>/apps/svr/mysql5/include <span class="hljs-subst">--</span><span class="hljs-keyword">with</span><span class="hljs-attribute">-libraries</span><span class="hljs-subst">=</span>/apps/svr/mysql5/bin make make install |
With-includes – points to the MySQL header files, – the library file with-libraries to MySQL
Setup encountered the error:
1 2 3 |
/usr/bin/<span class="hljs-keyword">ld</span>: cannot find -lmysqlclient <span class="hljs-label">collect2:</span> <span class="hljs-keyword">ld</span> returned <span class="hljs-number">1</span> exit status <span class="hljs-label">make:</span> *** [proftpd] <span class="hljs-number">1</span> |
Location of libmysqlclient.so this file in /apps/svr/mysql5/lib
below, all can build a flexible connectionln -s /apps/svr/mysql5/lib/libmysqlclient.so /usr/lib/
in the implementation of the above commands, I seem to not yet, I just copy this file to /apps/svr/mysql5/bin
this can be
Note: after configuring the proftpd.conf to kill off proftpd, restart the directory service configuration will not take effect until proftpd user group /etc/group
user /etc/passwd
deleting users user del username