|
|||||||||
|
据说哈佛有一个著名的理论:人的差别在于业余时间 ,而一个人的命运决定于晚上8点到10点之间。每晚抽出2个小时的时间用来阅读、进修、思考或参加有意的演讲、讨论,你会发现,你的人生正在发生改变,坚持数年之后,成功会向你招手。——现在晚上8点了,你在干嘛? 一) infobright安装文档: 1)下载infobright并解压到home下 wget http://www.infobright.org/downloads/ice/infobright-3.3.1-x86_64-ice.tar.gz tar zxvf infobright-3.3.1-x86_64-ice.tar.gz mv infobright-3.3.1-x86_64 /home/infobright 2)安装infobright,使用3307端口 cd /home/infobright ./install-infobright.sh –datadir=/home/infobright/data –cachedir=/home/infobright/cache –config=/home/infobright/my.cnf –port=3307 –socket=/tmp/mysql3307.sock –user=mysql –group=mysql 3)启动infobright /home/infobright/bin/mysqld –defaults-file=/home/infobright/my.cnf –basedir=/home/infobright –datadir=/home/infobright/data –user=mysql –log-error=/home/infobright/data/bh.err –pid-file=/home/infobright/data/localhost.pid –socket=/tmp/mysql3307.sock –port=3307 二)crontab按天执行,从mysql中往infobright中导入数据脚本: #!/bin/sh enddate=`date +%m_%d` /home/mysql/bin/mysql -u admin -p111 –default-character-set=utf8 -S /tmp/mysql.sock -D analytic -e “select * from visitlog where time > date_add(curdate(), interval . . . → Read More: infobright安装简要说明,mysql往infobright中按天导数据脚本 Nginx+php-fpm+ apc 的发烧友们,终于迎来了好消息,在php5.3.3版本,正式增加了对php-fpm 的支持,从此大家再也不用去 http://php-fpm.org/ 上面找补丁了,大大降低了安装成本,增加了稳定性和效率 . 如果你的代码支持php5.3系列版本,并且你是个代码性能或者优化构架的狂热发烧友,那么强烈建议大家测试一下这个组合. php dev team的这个决定,再次巩固了PHP 做为脚本语言的领袖地位,从另外一个侧面展示了他们对于性能的不懈追求. 下面是本消息的英文原文: PHP 5.3.3 is released and now bundles PHP-FPM, with all of the new improvements – adaptive process spawning, the new INI file format and include support, basic metrics for reporting, and more. If your code is PHP 5.3 compliant, it is . . . → Read More: PHP官方正式支持 php-fpm |
|||||||||
|
Copyright © 2012 张鹏 的技术 - All Rights Reserved |
|||||||||
朋友评论