proftpd mysql_proftpd+mysql 安装配置详细文档

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"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值