02 2019 档案

摘要:基础篇 业务篇 连续范围问题 连续范围问题 实验目标:求数字的连续范围。 根据上面的数据,应该得到的范围。 签到问题 签到问题 阅读全文
posted @ 2019-02-28 12:26 酷酷的城池 阅读(227) 评论(0) 推荐(0) 编辑
摘要:1. 发送 SMS 在开发 Web 或者移动应用的时候,经常会遇到需要发送 SMS 给用户,或者因为登录原因,或者是为了发送信息。下面的 PHP 代码就实现了发送 SMS 的功能。 为了使用任何的语言发送 SMS,需要一个 SMS gateway。大部分的 SMS 会提供一个 API,这里是使用 M 阅读全文
posted @ 2019-02-25 12:35 酷酷的城池 阅读(1141) 评论(0) 推荐(0) 编辑
摘要:BitMap是什么 就是通过一个bit位来表示某个元素对应的值或者状态,其中的key就是对应元素本身。我们知道8个bit可以组成一个Byte,所以bitmap本身会极大的节省储存空间。 Redis中的BitMap Redis从2.2.0版本开始新增了setbit,getbit,bitcount等几个 阅读全文
posted @ 2019-02-19 19:13 酷酷的城池 阅读(3180) 评论(0) 推荐(0) 编辑
摘要:https://github.com/liexusong/php-beast 修改php.ini配置 extension_dir = "/usr/lib/php/20151012/" extension = beast.so 重启php 阅读全文
posted @ 2019-02-19 16:30 酷酷的城池 阅读(1430) 评论(0) 推荐(0) 编辑
摘要:location ~ \.php(.*)$ { include snippets/fastcgi-php.conf; # # # With php-fpm (or other unix sockets): fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; 阅读全文
posted @ 2019-02-19 14:44 酷酷的城池 阅读(916) 评论(0) 推荐(0) 编辑
摘要:输入 ps -e |grep ssh ,如果没有任何反应则是没有安装 命令 sudo apt-get install openssh-server 然后出现是否同意-Y,同意进行自动下载 如果提示 密码拒绝 表示不让root用户登录 阅读全文
posted @ 2019-02-18 10:10 酷酷的城池 阅读(279) 评论(0) 推荐(0) 编辑
摘要:一 字符串 set key value 当 SET 命令对一个带有生存时间(TTL)的键进行设置之后, 该键原有的 TTL 将被清除。 设置过期时间 $redis = new \Redis(); $redis->connect('127.0.0.1', 6379); $aa=$redis->set( 阅读全文
posted @ 2019-02-16 11:55 酷酷的城池 阅读(217) 评论(0) 推荐(0) 编辑
摘要:1.#安装Apache2,目前163的源是2.2.22版本02.sudo apt-get install apache203. 04.#安装MySQL,目前163的源是5.5.24版本05.apt-get install mysql-server mysql-client06.#注意MySQL不是无 阅读全文
posted @ 2019-02-15 18:09 酷酷的城池 阅读(223) 评论(0) 推荐(0) 编辑
摘要:在从服务的redis.conf 添加 slaveof 主服务器 端口 查看reids进程和端口,都是存在的。只是ip地址是127.0.0.1而不是0.0.0.0,只是本机能使用; 查找redis的配置文件redis.conf ; 编辑配置文件vim /usr/local/redis/etc/redi 阅读全文
posted @ 2019-02-15 17:03 酷酷的城池 阅读(156) 评论(0) 推荐(0) 编辑
摘要:sudo apt-get purge vim-common sudo apt-get updatesudo apt-get upgradesudo apt-get install vim 阅读全文
posted @ 2019-02-15 10:41 酷酷的城池 阅读(977) 评论(0) 推荐(0) 编辑
摘要:第一种: sudo vim /etc/resolv.conf 添加nameserver 8.8.8.8 第二种: /etc/apt/sources.list 的内容换成 deb http://old-releases.ubuntu.com/ubuntu/ raring main universe r 阅读全文
posted @ 2019-02-15 09:52 酷酷的城池 阅读(13459) 评论(0) 推荐(0) 编辑
摘要:public function prevnext($table,$id,$where=[]){ $ids=db($table)->field('id,title')->order('sort asc')->where($where)->column('id'); $key=array_search( 阅读全文
posted @ 2019-02-14 15:49 酷酷的城池 阅读(688) 评论(0) 推荐(0) 编辑
摘要:redis是什么: Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain s 阅读全文
posted @ 2019-02-14 11:10 酷酷的城池 阅读(221) 评论(0) 推荐(0) 编辑
摘要:https://www.xiabingbao.com/php/2017/08/27/window-php-redis.html 下载文件 下载上面文件解压并拷贝至php的ext目录下 如果 PHP版本不对 接下来根据你所拟定的版本去如下这两个网址下载文件 1、https://windows.php. 阅读全文
posted @ 2019-02-13 17:23 酷酷的城池 阅读(85) 评论(0) 推荐(0) 编辑
摘要:array_unique($arr, SORT_REGULAR); 阅读全文
posted @ 2019-02-13 16:20 酷酷的城池 阅读(165) 评论(0) 推荐(0) 编辑
摘要:/** + * 删除目录及目录下所有文件 + * @param str $path 待删除目录路径 + * @param int $deldir 是否删除目录,1或true删除目录,0或false则只删除文件保留目录(包含子目录) + * @return bool 返回删除状态 + */ funct 阅读全文
posted @ 2019-02-13 16:10 酷酷的城池 阅读(359) 评论(0) 推荐(0) 编辑
摘要://方法一:$a ="abc";$b="def";$a = $a^$b;$b = $b^$a;$a = $a^$b;//方法二:list($a, $b)= array($b, $a);//方法三:$a = $a . $b;$b = strlen( $b );$b = substr( $a,0,(st 阅读全文
posted @ 2019-02-13 11:54 酷酷的城池 阅读(305) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示