1.下載pure_ftpd,上傳服務器,目錄路徑:/usr/local/src/ios
下載地址:https://pan.baidu.com/s/1kWe8FAn
2.安裝pure_ftpd數據庫
cd /usr/local/src tar -xjf pure-ftpd-1.0.36.tar.bz2 cd pure-ftpd-1.0.36 ./configure --prefix=/usr/local/pure-ftpd CFLAGS=-O2 --with-puredb --with-quotas --with-cookie --with-virtualhosts --with-diraliases --with-sysquotas --with-ratios --with-altlog --with-paranoidmsg --with-shadow --with-welcomemsg --with-throttling --with-uploadscript --with-language=english --with-rfc2640 make && make install mkdir /usr/local/pure-ftpd/etc cp configuration-file/pure-ftpd.conf /usr/local/pure-ftpd/etc/ cp configuration-file/pure-config.pl /usr/local/pure-ftpd/sbin/ chmod 755 /usr/local/pure-ftpd/sbin/pure-config.pl cd /usr/local/bin/ ln -s /usr/local/pure-ftpd/bin/* . ln -s /usr/local/pure-ftpd/sbin/* /usr/local/sbin/ ln -s /usr/local/pure-ftpd/man/man8/* /usr/local/share/man/man8/ pure-config.pl /usr/local/pure-ftpd/etc/pure-ftpd.conf groupadd ftpgroup useradd -g ftpgroup -d /dev/null -s /etc ftpuser pure-pw useradd testuser -u ftpuser -d /data/wwwroot/testuser/ # 若是添加完成之後想要刪除可使用pure-pw userdel admintestnew這條指令 # 想要修改密碼可使用pure-pw passwd admintestnew這條指令 # 查看用戶信息 pure-pw show testuser # 生成數據庫文件 pure-pw mkdb # 打開配置文件 vi /usr/local/pure-ftpd/etc/pure-ftpd.conf # 從新生成數據庫文件 pure-pw mkdb # 先把以前的pureftp服務kill掉 killall pure-ftpd # 而後從新啓動 /usr/local/pure-ftpd/sbin/pure-config.pl /usr/local/pure-ftpd/etc/pure-ftpd.conf