摘要: facebook登录出现如下错误:Protocol https not supported or disabled in libcurl查看php还支持curl,执行whereis curl/usr/bin/curl -V 支持https问题出哪里了,郁闷了好几天,最后查看php的./config 原来--with-curl=/usr/local/curl执行/usr/local/curl/bin/curl -V 发现不支持https。这才想起来用售前,最后用 yum install curl 编译了一遍,结果查不出来问题重新编译curl./configure --prefix=/usr/lo 阅读全文
posted @ 2012-10-24 21:22 李秋 阅读(357) 评论(0) 推荐(0)
摘要: ps -aux | sort -k4,4nps auxw --sort=rssps auxw --sort=%cpulinux 下的ps命令%CPU 进程的cpu占用率%MEM 进程的内存占用率VSZ 进程所使用的虚存的大小RSS 进程使用的驻留集大小或者是实际内存的大小TTY 与进程关联的终端(tty)STAT 检查的状态:进程状态使用字符表示的,如R(running正在运行或准备运行)、S(sleeping睡眠)、I(idle空闲)、Z (僵死)、D(不可中断的睡眠,通常是I/O)、P(等待交换页)、W(换出,表示当前页面不在内存)、N(低优先级任务)T(terminate终止)、W ha 阅读全文
posted @ 2012-10-24 17:55 李秋 阅读(1137) 评论(0) 推荐(0)
摘要: 上一篇博客已经成功搭建了gearman环境:centos安装gearmand及php扩展下面我们来实现分布式,也就是万一一个进程死掉或者一台服务器当掉的情况假设两台服务器:192.168.10.102 和 192.168.10.103102的work代码如下:<?php $worker= new GearmanWorker(); $worker->addServer(); $worker->addServer('192.168.10.103',4730); $worker->addFunction("title", "tit 阅读全文
posted @ 2012-10-24 14:09 李秋 阅读(330) 评论(0) 推荐(0)
摘要: #install check yum -y install yum-fastestmirror yum -y install patch make gcc gcc-c++ gcc-g77 yum -y install libevent libevent-devel yum -y install php-develwget http://www.monkey.org/~provos/libevent-1.4.12-stable.tar.gztar -zxvf libevent-1.4.12-stable.tar.gz cd libevent-1.4.12-stable./configur... 阅读全文
posted @ 2012-10-24 11:01 李秋 阅读(437) 评论(0) 推荐(0)