安装Pureftpd加强版#下传/下载带宽(单位KB/s)。MySQLGetBandwidthUL上传带宽,MySQLGetBandwidthDL下载带宽。如上传 500KB/s,下载50KB/s MySQLForceTildeExpansion 1 MySQLTransactions On 启动 #/usr/local/sbin/pure-config.pl /usr/local/etc/pure-ftpd.conf 然后测试<a href="http://ip/pureftpd_php_manager/index.php" target="_blank">http://ip/pureftpd_php_manager/index.php</a> 添加一个用户,然后用FTP客户端登陆试试,ok! --------------------自动启动(1)---------------- pureftp支持多种启动方式,俺采用了最容易的一种: vi /etc/rc.d/rc.local 添加 cd /usr/local/pureftpd/sbin ./pure-ftpd -A -B -C 1 -c 50 -E -G -I 2 -l unix -l puredb:/usr/local/pureftpd/pureftpd.pdb -p 40000:50000 -R -w ------------------启动脚本(2)这种好用--------------- 在/usr/local/etc/rc.d中建一个pureftpd.sh chmod u+x pureftpd.sh 就可以:/usr/local/etc/rc.d/pureftpd.sh start /usr/local/etc/rc.d/pureftpd.sh stop #!/bin/sh case "$1" in start) [ -x /usr/local/etc/pure-ftpd.conf ] && /usr/local/sbin/pure-config.pl /usr/local/etc/pure-ftpd.conf > /dev/null && echo -n ' pure-ftp' ;; stop) killall pure-ftpd > /dev/null && echo -n ' pure-ftp' ;; *) echo "Usage: `basename $0` {start | stop}" >&2 ;; esac exit 0 上一篇:Oracle安装(linux)小结 下一篇:如何让mrtg生成RRD格式的数据及图片 更多相关文章
|
推荐文章
精彩文章
|