上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: Centos上面默认的Python版本是2.6,本文介绍如何安装3.4版本。 0.下载前准备 需要安装以下库,不然会有问题。 1. 下载Python3.4源码 2. 解压缩并安装 3. 安装的目录 默认情况下,python会安装在 4. 安装you-get 阅读全文
posted @ 2017-02-23 17:19 lifeinearth 阅读(2429) 评论(0) 推荐(0) 编辑
摘要: Parse error: syntax error, unexpected '[' in D:\phpStudy\WWW\tp5\thinkphp\library\think\Loader.php on line 18 安装php .54以上就可以解决 阅读全文
posted @ 2017-02-04 15:03 lifeinearth 阅读(1385) 评论(0) 推荐(0) 编辑
摘要: 检测集群是否健康 curl 'localhost:9200/_cat/health?v' 绿色表示一切正常, 黄色表示所有的数据可用但是部分副本还没有分配,红色表示部分数据因为某些原因不可用. 通过如下语句,我们可以获取集群的节点列表 curl 'localhost:9200/_cat/nodes? 阅读全文
posted @ 2017-02-03 17:02 lifeinearth 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Connections,试图连接到(不管是否成功)MySQL服务器的连接数。Max_used_connections,服务器启动后已经同时使用的连接的最大数量。Threads_connected,当前的连接数。max_connections,最大连接数。processlist,显示当前正在执行的My 阅读全文
posted @ 2017-01-25 14:25 lifeinearth 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 一 cron crond位于/etc/rc.d/init.d/crond 或 /etc/init.d 或 /etc/rc.d /rc5.d/S90crond,最总引用/var/lock/subsys/crond。 cron是一个linux下的定时执行工具(相当于windows下的scheduled 阅读全文
posted @ 2016-12-21 13:27 lifeinearth 阅读(150) 评论(0) 推荐(0) 编辑
摘要: vendor('phpanalysis.phpanalysis','','.class.php'); 其中点号(.) 为目录分隔符 /// 以下为thinkphp3.1的源码 阅读全文
posted @ 2016-09-22 16:37 lifeinearth 阅读(1130) 评论(0) 推荐(0) 编辑
摘要: 安装 Mcrypt 包, 顺便安装 php 开发环境 $ sudo apt-get install php5-mcrypt php5-dev将配置文件链接给 PHP $ sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available开启 阅读全文
posted @ 2016-07-01 19:12 lifeinearth 阅读(567) 评论(0) 推荐(0) 编辑
摘要: php 函数使用技巧:array_multisort($players_sort,SORT_ASC,SORT_NUMERIC,$json_to_arr); //多维数组排序array_column php5.5+参考:$arr = array( 0 => array( 'id' => 89 ), 1 阅读全文
posted @ 2016-06-27 09:46 lifeinearth 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 使用array_flip: key,value 位置交换 isset判断是否有值 使用以上2个函数 比in_array效率高很多。 例子: $GLOBALS['file_arr'] = array_flip($file_list); upfiles($folder_nm,$folder_nm); f 阅读全文
posted @ 2016-06-22 16:08 lifeinearth 阅读(1686) 评论(0) 推荐(0) 编辑
摘要: 找到文件,ThinkPHP/Lib/Think/Core/View.class.php。 搜索到一下代码屏蔽即可。 header('X-Powered-By:ThinkPHP');PHP清除X-Powered-By: PHP/5.2.4 设置php.ini ,expose_php = Off。 阅读全文
posted @ 2016-06-22 15:29 lifeinearth 阅读(545) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页