1 编译:
./configure –prefix=/usr/local/pureftpd –with-mysql=/usr/local/mysql4.0.12 –with-everything --with-diraliases --with-ftpwho --with-throttling --without-inetd --without-shadow --with-quotas --with-sysquotas --with-welcomemsg --with-uploadscript --with-largefile --with-language=simplified-chinese
make install-strip
2 安装
mkdir –p /usr/local/pureftpd/etc
cp configuration-file/pure-config.pl /usr/local/pureftpd/bin/
cp configuration-file/pure-ftpd.conf /usr/local/pureftpd/etc
cp pureftpdmanager/pureftpd-mysql.conf.sample /usr/local/pureftpd/etc/mysql.conf
3 配置
3.1 建立mysql数据库
create database pureftpd;
CREATE TABLE ftpd (
User varchar(16) NOT NULL default '',
status enum('0','1') NOT NULL default '0',
Password varchar(64) NOT NULL default '',
Uid varchar(11) NOT NULL default '-1',
Gid varchar(11) NOT NULL default '-1',
Dir varchar(128) NOT NULL default '',
ULBandwidth smallint(5) NOT NULL default '0',
DLBandwidth smallint(5) NOT NULL default '0',
comment tinytext NOT NULL,
ipaccess varchar(15) NOT NULL default '*',
QuotaSize smallint(5) NOT NULL default '0',
PRIMARY KEY (User),
UNIQUE KEY User (User)
) TYPE=MyISAM;