Proftpd+mysql
一、下载proftpd
二、安装mysql
[root@localhost media]# tar-zxvf mysql-5.0.75.tar.gz -C /usr/local/src/
[root@localhost media]# cd/usr/local/src/mysql-5.0.75/
[root@localhost mysql-5.0.75]# useradd -M -s /sbin/nologin mysql
[root@localhost mysql-5.0.75]# yum -y install libtermcap-devel
[root@localhostmysql-5.0.75]# ./configure--prefix=/usr/local/mysql --with-mysqld-user=mysql --with-extra-charsets=all
[root@localhost mysql-5.0.75]# make
[root@localhost mysql-5.0.75]# make install
[root@localhost mysql-5.0.75]# cp support-files/http://www.doczj.com/doc/2766d920a5e9856a56126065.htmlf /etc/http://www.doczj.com/doc/2766d920a5e9856a56126065.htmlf
[root@localhost mysql-5.0.75]#/usr/local/mysql/bin/mysql_install_db --user=mysql
[root@localhost mysql-5.0.75]# chown -R root:mysql /usr/local/mysql/
[root@localhost mysql-5.0.75]# chown -R mysql /usr/local/mysql/var/
[root@localhost mysql-5.0.75]# echo "/usr/local/mysql/lib/mysql" >> /etc/ld.so.conf
[root@localhost mysql-5.0.75]# ldconfig
[root@localhost mysql-5.0.75]#/usr/local/mysql/bin/mysqld_safe --user=mysql&
[root@localhost mysql-5.0.75]# ps -e| grep mysql 验证是否成功开启
mysql1664 pts/2 00:00:00 mysqld_safe1690 pts/2 00:00:00 mysqld
[root@localhost mysql-5.0.75]# netstat -ntulp| grep mysql
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1690/mysqld
[root@localhost mysql-5.0.75]# cp support-files/mysql.server /etc/init.d/mysqld
[root@localhost mysql-5.0.75]# chmod +x /etc/init.d/mysqld
[root@localhost mysql-5.0.75]# chkconfig --add mysqld
[root@localhost mysql-5.0.75]# chkconfig mysqld on
[root@localhost mysql-5.0.75]# export PATH=$PATH:/usr/local/mysql/bin/
[root@localhost mysql-5.0.75]# echo"PATH=$PATH:/usr/local/mysql/bin/" >> /etc/profile
[root@localhost mysql-5.0.75]# mysqladmin -u root password123456 //修改mysql密码
三、安装proftpd
[root@localhost proftpd-1.3.4b]# tar xvzf proftpd-1.3.4b.tar.gz
[root@localhost proftpd-1.3.4b]# cd proftpd-1.3.4b
[root@localhostproftpd-1.3.4b]#./configure --prefix=/usr/local/proftpd --with-modules=mod_sql:mod_sql_mysql --with-includes=/usr/local/mysql/include/mysql --with-libraries=/usr/local/mysql/lib/mysql
[root@localhost proftpd-1.3.4b]# make && make install
#显示安装后模块的信息
[root@localhost etc]# /usr/local/proftpd/sbin/proftpd -l
四、修改proftpd配置文件
ServerName "FTP Server"