摘要: mysql explain简单用法当输出有type 不是all的时候 就加索引优化 变成type=ref是最好状态 阅读全文
posted @ 2019-11-12 14:43 newmiracle宇宙 阅读(58) 评论(0) 推荐(0) 编辑
摘要: PHP多继承的简单写法 采用的是interface 然而继承没用extend<pre><?php interface father{ function shuchu(); } interface mother{ function dayin($my); } interface fam extends 阅读全文
posted @ 2019-11-12 14:43 newmiracle宇宙 阅读(104) 评论(0) 推荐(0) 编辑
摘要: linux vi常用命令 /这个向下搜索?向上搜索ctrl+r 撤销的反义词u 撤销a 插入:wq保存退出!q 不保存强制退出 阅读全文
posted @ 2019-11-12 14:42 newmiracle宇宙 阅读(50) 评论(0) 推荐(0) 编辑
摘要: linux tar -zxvf xx.tar.gz参数详解 x : 从 tar 包中把文件提取出来z : 表示 tar 包是被 gzip 压缩过的,所以解压时需要用 gunzip 解压v : 显示详细信息f xxx.tar.gz : 指定被处理的文件是 xxx.tar.gz ps:打包可以采取tar 阅读全文
posted @ 2019-11-12 14:40 newmiracle宇宙 阅读(557) 评论(0) 推荐(0) 编辑
摘要: linux redis安装教程(nginx和apache都通用) 1、下载源码,解压缩后编译源码。 $ wget http://download.redis.io/releases/redis-2.8.12.tar.gz$ tar xzf redis-2.8.3.tar.gz$ cd redis-2 阅读全文
posted @ 2019-11-12 14:37 newmiracle宇宙 阅读(68) 评论(0) 推荐(0) 编辑
摘要: netstat -ntlp 展示当前使用的端口Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 2088/redis-ser 阅读全文
posted @ 2019-11-12 14:36 newmiracle宇宙 阅读(5525) 评论(2) 推荐(0) 编辑
摘要: which redis-cli 找到相应路径 删除redis相关文件 然后再把进程删了就好了 阅读全文
posted @ 2019-11-12 14:35 newmiracle宇宙 阅读(399) 评论(0) 推荐(0) 编辑
摘要: chown root:wordpress redis.php 效果-rwxrwxr-x 1 root wordpress 436 Oct 18 08:53 redis.php这样wordpress ftp账号 就拥有组权限了 阅读全文
posted @ 2019-11-12 14:34 newmiracle宇宙 阅读(99) 评论(0) 推荐(0) 编辑
摘要: linux rm -r -f删除多个文件方法rm -r -f xx1.php xx2.php 阅读全文
posted @ 2019-11-12 14:34 newmiracle宇宙 阅读(2594) 评论(0) 推荐(0) 编辑
摘要: phpredis函数文档详解 <strong>连接到 redis 服务</strong> <pre><?php //连接本地的 Redis 服务 $redis = new Redis(); $redis->connect('127.0.0.1', 6379); echo "Connection to 阅读全文
posted @ 2019-11-12 14:33 newmiracle宇宙 阅读(291) 评论(0) 推荐(0) 编辑