04 2018 档案
xhprof (扩展)优化数据库
摘要:xhprof 的安装 cd ~ git clone https://github.com/longxinH/xhprof 安装 cd xhprof/extension/ /usr/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --enable-xhprof make && make insta... 阅读全文
posted @ 2018-04-12 15:15 泪滴 阅读(164) 评论(0) 推荐(0)
reids的事务
摘要:$res = Redis::flushAll(); //监测键set1,如果在执行事务的时候有对set1键操作,而同时另外的线程也有对set1操作,那么事物物就会死掉 $res = Redis::watch('set1'); //开启事务 $res = Redis::multi(); $res = R... 阅读全文
posted @ 2018-04-08 14:42 泪滴 阅读(108) 评论(0) 推荐(0)
centos7 安装kvm虚拟机
摘要:1. 安装 rsync yum -y install rsync 2. 启动rsync /usr/bin/rsync --daemon 3. php以root用户运行 修改 /usr/local/php/etc/php-fpm.d user 改为 root group 改为 root 重启php-fpm /usr/local/php/sbin/php-fpm -R ( root... 阅读全文
posted @ 2018-04-02 14:58 泪滴 阅读(302) 评论(0) 推荐(0)