安裝openssl支持 wget -c https://www.openssl.org/source/openssl.org/source/openssl-1.1.0c.tar.gz tar -zxvf openssl-1.1.0c.tar.gz cd openssl-1.1.0c ./connfi ...
安裝openssl支持
wget -c https://www.openssl.org/source/openssl.org/source/openssl-1.1.0c.tar.gz
tar -zxvf openssl-1.1.0c.tar.gz
cd openssl-1.1.0c
./connfig --prefix=/usr/local/openssl && make && make install
安裝pureFTP
#下載pureftp,解壓,既然進入該目錄
wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.22.tar.gz
tar -zxvf pureftpd-1.0.22.tar.gz
./configure
--prefix=/usr/local/pureftpd
--without-inetd \ #不支持超級伺服器
--with-altlog \ #支持選擇日誌格式(類似Apache)
--with-puredb \ #支持虛擬用戶 (FTP登錄用戶而非系統用戶)
--with-throttling \ #支持帶寬控制
--with-tls=/usr/local/openssl #啟用SSL/TLS 支持
#
./configure ---prefix=/usr/local/pureftpd --without-inet --with-altlog --with-puredb --with-throttling --with-tls=/usr/local/openssl
make && make install #編譯並且安裝
複製配置文件
cd configuration-file #進入目錄
mkdir -p /usr/local/pureftpd/etc/ #創建配置文件目錄
cp pure-ftpd.conf /usr/local/pureftpd/etc/pure-ftpd.conf #把配置文件複製到軟體安裝目錄的配置文件目錄下
cp pure-config.pl /usr/local/pueftpd/sbin/pure-config.pl #複製啟動程式
chmod 755 /usr/local/pureftpd/sbin/pure-config.pl #修改啟動程式的許可權
config.pl #修改啟動程式的許可權
修改 /usr/local/pureftpd/etc/pure-ftpd.conf 配置項
ChrootEveryone yes
BrokenClientsCompatibility no
MaxClientsNumber 50
Daemonize yes
MaxClientsPerIp 8
VerboseLog no
DisplayDotFiles yes
AnonymousOnly no
NoAnonymous no
SyslogFacility ftp
DontResolve yes
MaxIdleTime 15
PureDB /usr/local/pureftpd/etc/pureftpd.pdb
LimitRecursion 3136 8
AnoymousCanCreateDirs no
MaxLoad 4
AnyiWarez yes
Umask 133:022
MinUID 100
AllowUserFXP no
ProhibitDotFilesWrite no
ProhibitDotFilesRead no
AutoRename no
AnonymousCantUpload no
PIDFile /usr/local/pureftpd/var/run/pure-ftpd.pid
MaxDiskUsage 99
CustomerProof yes
啟動
/usr/local/pureftpd/sbin/purefig.pl
/usr/local/pureftpd/etc/pure-ftpd.conf
添加賬號
useradd test
chown -R test:test /var/www/html/ #改變擁有著
/usr/local/pureftpd/bin/pure-pw useradd ftpd_user1 -utest -d /var/www/html/
常用操作
/usr/local/pureftpd/bin/pure-pw mkdb
/usr/local/pureftpd/bin/pure-pw list
/usr/local/pureftpd/bin/pure-pw userdel [用戶]