上一页 1 2 3 4 5 6 7 8 9 10 ··· 30 下一页

2014年5月12日

摘要: 从mysql5.5起,mysql源码安装开始使用cmake了。下面是介绍configure选项如何映射到CMake的等值参数。1. 命令语法:重新编译时,需要清除旧的对象文件和缓存信息 # make clean # rm -f CMakeCache.txt2.安装选项CMAKE_INSTALL_... 阅读全文
posted @ 2014-05-12 10:05 kudosharry 阅读(328) 评论(0) 推荐(0) 编辑

2014年5月5日

摘要: 安装基础包yum install perl openssh gityum install perl-Time-HiRes创建git用户 useradd -d /home/git gitpasswd git 在git用户家目录下安装gitolite 切换到git用户 # su – git 创... 阅读全文
posted @ 2014-05-05 15:36 kudosharry 阅读(739) 评论(0) 推荐(0) 编辑
摘要: 1.先给大家说下编译安装方法,安装前准备yum -y install zlib-devel openssl-devel perl cpio expat-devel gettext-devel openssl zlib curl autoconf tkwget http://git-core.goog... 阅读全文
posted @ 2014-05-05 09:57 kudosharry 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 安装vm-->注册vm-->新建一个虚拟机(选择等会安装系统)-->加载iso-->配置桥接-->启动这里可能碰到一个cpu的虚拟化配置,需要在bios里的配置设置为enable我安装的是centos的minimal,无桌面的最小化版本,需要自己启动网络功能配置网卡-->重启网络vi /etc/sy... 阅读全文
posted @ 2014-05-05 00:12 kudosharry 阅读(321) 评论(0) 推荐(0) 编辑

2014年4月3日

摘要: class Thread_request extends Thread { public static $thread_tasks; protected $processor; public $url; public $params; public $model; public $view; public $response; public $last_url; public $last_params; public $last_model; public $last_view; public $last_error = ''; public $last_errno = 0; 阅读全文
posted @ 2014-04-03 17:26 kudosharry 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 目前只做了微博和qq的,前面的去connect.qq.com,open.weibo.com注册的步骤省略qq和weibo站点都有可以现在的php版本的api,qq的api相对高大上一些。" />腾讯QQ登录" />新浪微博登录整个实现登录的流程在一个独立的包里结构如下/dlt---根目录/dlt/index.php---入口地址/dlt/callback.php--回调地址/dlt/lib---自定类,配置义目录/dlt/lib/dlt_client.php---流程入口/dlt/lib/db_client.php/dlt/lib/model.php/dlt/s 阅读全文
posted @ 2014-04-03 16:56 kudosharry 阅读(652) 评论(0) 推荐(0) 编辑

2014年4月2日

摘要: 根据张彦博客里的ptheads的测试例子,使用curl_multi的速度与多线程差不多,这里手册说是调用线程处理。class test_thread_run extends Thread { public $url; public $data; public function __construct($url) { $this->url = $url; } public function run() { if(($url = $this->url)) { $this->data = model_http_curl_get($url); } } } func... 阅读全文
posted @ 2014-04-02 16:55 kudosharry 阅读(270) 评论(0) 推荐(0) 编辑
摘要: CurlPHP支持的由Daniel Stenberg创建的libcurl库允许你与各种的服务器使用各种类型的协议进行连接和通讯。libcurl目前支持http、https、ftp、gopher、telnet、dict、file和ldap协议。libcurl同时也支持HTTPS认证、HTTP POST、HTTP PUT、 FTP 上传(这个也能通过PHP的FTP扩展完成)、HTTP 基于表单的上传、代理、cookies和用户名+密码的认证。有curl扩展支持,独立于其他的方法。socket扩展实现了一个低级别的接口,基于流行的BSD套接字Socket通信功能,作为一个套接字服务器以及客户端提供的 阅读全文
posted @ 2014-04-02 14:51 kudosharry 阅读(212) 评论(0) 推荐(0) 编辑

2014年4月1日

摘要: 一、判断PHP是ts还是nts版通过phpinfo(); 查看其中的 Thread Safety 项,这个项目就是查看是否是线程安全,如果是:enabled,一般来说应该是ts版,否则是nts版。二、根据PHP ts\nts版选择对应pthreads的版本windows版本的下载地址http://windows.php.net/downloads/pecl/releases/pthreads/0.1.0/本人php版本是5.4.17的所以下载php_pthreads-0.1.0-5.4-ts-vc9-x86.zip文件包,其中0.1.0表示为当前pthreads版本号,5.4为php版本号,t 阅读全文
posted @ 2014-04-01 15:40 kudosharry 阅读(1489) 评论(0) 推荐(0) 编辑
摘要: //测试扩展pthreads是否安装成功class AsyncOperation extends Thread { public function __construct($arg){ $this->arg = $arg; } public function run(){ if($this->arg){ printf("Hello %s\n", $this->arg); } } } $thread = new AsyncOperation("World"); if($thread->start()) $thre... 阅读全文
posted @ 2014-04-01 15:18 kudosharry 阅读(383) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 30 下一页

导航