系统ubuntu sudo apt-get install vim g++ openssh-server libgl1-mesa-dev检查下安装的版本gcc -v g++ -v make -v gdb -v
server:class Server{ private $_serv = null; private $_e = null; public function __construct() { $this->_serv = new swo
server:class Server{ private $_serv = null; private $_workers = []; private $_worker_num = 2; public function __construct() { &n
$workers = [];$worker_num = 2;for($i = 0; $i < $worker_num; $i++){ $process = new swoole_process('callback_function',false,false); $process->useQueue(); $p
function write_callback($file, $writen){ echo "write $file [$writen]\n"; return true;}for ($i = 0; $i < 1; $i++){ swoole_async_write("data.txt", str_repeat('A
server:$serv = new swoole_server('127.0.0.1', 9502);$serv->on('receive', function ($serv, $fd, $from_id, $data) { $serv->tick(3000, function() use($serv, $fd) {
server:$ws = new swoole_websocket_server('0.0.0.0', 9502);$ws->on('open', function ($ws, $request) { var_dump($request->fd, $request->get, $request->server); $ws-
https://github.com/chenchaojie/Swoole/tree/master/AsyncClientE:\code\SwooleExample\AsyncClient\Client.phpE:\code\SwooleExample\AsyncClient\Server.php
配置phpstorm 当你写swoole 类或者函数时会自动补全 https://github.com/swoole/ide-helper.git 克隆下这个工具包点加+,然后指定你下载好的工具包路径,点ok
command shift a 或 Ctrl+Shift+a keymap typo breakcrumbsCode Foldingmethod separatorsAlt+1 或 command+1 show right margin
vmwareTools 安装不了,不能解决系统 solaris
https://github.com/nrk/redis-lua/ http://www.cnblogs.com/huangxincheng/p/6230129.html https://redis.io/commands/eval https://segmentfault.com/a/1190000003509917 使用XHProf
根目录下新建一个public 目录E:\code\yaf_demo\public\index.php index.php移动到public 目录下define('APPLICATION_PATH', dirname(__DIR__));E:\code\yaf_demo\testing测试的入口(做单元测试时用例放这里)E:\code\yaf_demo\application\libr
E:\code\yaf_demo\application\modules\User\controllers\User.php showAction$userModel = new UserModel();echo $userModel->getUserInfo($userId);E:\code\yaf_demo\application\models\User.phppublic f
$get = $this->getRequest()->getQuery();$post = $this->getRequest()->getPost();$file = $this->getRequest()->getFiles();echo $this->getRequest()->get('title');$this->getReques
http://yaf_demo.com/index/index/showapplication/views/index/show.phtmlhttp://yaf_demo.com/user/user/index application/modules/User/views/user/index.phtmlreturn false 不渲染视图,默认渲染在bootstrap.php 全局禁用_init
有些php框架通过path info 进行路由nginx 需指定path info 的配置yaf 通过$_SERVER['REQUEST_URI']路由http://yaf_demo.com/user/user/show/userId/100 $params = $this->getRequest()->getParams();默认的路由这上面这样yaf支持5种路由形式E:\code\
http://yaf_demo.com/index/index/index 模块/控制器/动作/modules/controller/actionE:\code\demo\application\controllers\User.phphttp://yaf_demo.com/index/user/index application.modules = "Index,User"
------https://github.com/chenchaojie---- ---https://github.com/JanHuang----- -----https://github.com/LinkedDestiny----- -----https://github.com/kcloze---
http://yaf.laruence.com/manual/yaf.config.optional.htmlyaf有全局类库和本地类库之分yaf.library = "/data/webroot/libs" (全局类库在php.ini配置) application.library (本地类库是在application.ini 配置)
前提是安装好yaf扩展cd /home/skinglzw/Downloads/yaf/tools/cg//usr/local/php/bin/php yaf_cg democd output/ 这个目录下会生成一个demomv demo /data/www/yaf 集成ide 设置 php include pathshttps://github.com/elad
1 下载mysqlhttps://cdn.mysql.com//Downloads/MySQL-5.6/mysql-5.6.37-linux-glibc2.12-x86_64.tar.gz我下载的是mysql 5.6 2.解压它移动到对应目录下tar -zxvf mysql-5.6.37-linux-glibc2.12-x86_64.tar.gzcp ./mysql-5.6.37-lin
去mysql官网下载最新版的5.7 mysql-5.7.19-linux-glibc2.12-x86_64.tar.gztar -zxvf 解压mv mysql-5.7.19-linux-glibc2.12-x86_64 /usr/local/mysql/ 移动到这个目录下cd /usr/local/mysql/mysql-5.7.19-linux-gli
请先在linux安装phpwget http://cn2.php.net/distributions/php-7.1.6.tar.gz解压进入php源码(php源码里扩展挺全的)cd /home/linzw/Downloads/php-7.1.6/ext/pdo (pdo就是你要安装的扩展)/usr/local/php/bin/phpize (要找到你安装好的p
系统:centos6.7yum list sysstatyum install sysstat.x86_64cd /etcls cron*cat /etc/cron.d/sysstat*/10 * * * * root /usr/lib64/sa/sa1 1 153 23 * * * root /usr/lib64/sa/sa2 -Alogcd /var/log/sa监控cupsar -q -f
ubuntu 16.04apt-get install python-pippip install redis 安装redis 扩展库
Tensorflow支持多种前端语言,但对Python的支持是最好的,因此我们的教程也基于Python来进行系统用ubuntu16.04的ubuntu已经安装了python必不可少的python-pip和python-dev在这个窗口中输入命令:sudo apt-get install python-pip python-dev例子http://www.leiphone.com/news/2016
1 c语言中,char* 代表 字符指针类型,当其指向一个字符串的第一个元素时,它就可以代表这个字符串了2 示例#include<stdio.h>int main(){ char* str = "learn c"; printf("%s\n", str); getchar(); re
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号