Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->Linux技术 ->系统管理 ->正文

安装Pureftpd加强版

来源:Linux-cn.com 作者:Webmaster 时间:2007-05-05 点击: [收藏] [投稿]

#下传/下载带宽(单位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格式的数据及图片

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号