cd /usr/local/directadmin/custombuild
mkdir -p custom
cp -Rp configure/pureftpd custom
nano custom/pureftpd/configure.pureftpd
#!/bin/sh
./configure
--prefix=/usr
--sysconfdir=/etc
--with-certfile=/etc/pure-ftpd.pem
--with-tls
--with-puredb
--with-quotas
--with-altlog
--with-ftpwho
--with-ratios
--with-welcomemsg
--with-rfc2640
cd /usr/local/directadmin/custombuild
./build pureftpd
/etc/pure-ftpd.conf
所以可以在那里添加更改,而不是在启动脚本中。编辑/etc/init.d/pure-ftpd引导脚本,添加2个新选项:
--fscharset=utf-8 --clientcharset=utf-8
你基本上可以将它们插入已经存在的OPTIONS行,或者添加你自己的,例如:
OPTIONS="-B -A -C 15 -E -H -k 99 -L 10000:8 -O stats:${LOG} -l puredb:${DB} -p 35000:35999 -u 100 -U 133:022 -w -Z"
OPTIONS="${OPTIONS} -Y 1 -J HIGH:MEDIUM:+TLSv1:!SSLv2:+SSLv3"
OPTIONS="${OPTIONS} --fscharset=utf-8 --clientcharset=utf-8"
4)重新启动pure-ftpd:
service pure-ftpd restart