上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: <!doctype html>Vim快捷键整理 Vim快捷键整理 一、移动光标 xxxxxxxxxx 1、左移h、右移l、下移j、上移k 2、向下翻页ctrl + f,向上翻页ctrl + b 3、向下翻半页ctrl + d,向上翻半页ctrl + u 4、移动到行尾$,移动到行首0(数字),移动到 阅读全文
posted @ 2020-12-29 09:31 酷酷的城池 阅读(158) 评论(0) 推荐(0) 编辑
摘要: version: "3" services: redis: image: redis container_name: redis ports: - 6379:6379 command: redis-server --requirepass 123456 php: restart: always im 阅读全文
posted @ 2020-12-07 11:16 酷酷的城池 阅读(842) 评论(0) 推荐(0) 编辑
摘要: 使用docker安装的PHPFPM容器没有Redis扩展,需要安装一下扩展。 首先进入docker的PHPFPM容器 $ docker exec -it myphpfpm /bin/bash $ curl -L -o /tmp/redis.tar.gz https://github.com/phpr 阅读全文
posted @ 2020-12-07 10:18 酷酷的城池 阅读(716) 评论(0) 推荐(0) 编辑
摘要: version: "3" services: php: restart: always image: php container_name: php ports: - 0.0.0.0:9000:9000 volumes: - ./nginx/www:/var/www/html - ./php_con 阅读全文
posted @ 2020-12-04 18:11 酷酷的城池 阅读(59) 评论(0) 推荐(0) 编辑
摘要: /* * 模拟post请求 */ function post_curl($url, $params=[], $headers=[]){ $httpInfo = array(); $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 1); curl_ 阅读全文
posted @ 2020-12-02 16:25 酷酷的城池 阅读(582) 评论(0) 推荐(0) 编辑
摘要: docker-compose里两种设置方式都是可以持久化的 绝对路径的 ghost: image: ghost volumes: - ./ghost/config.js:/var/lib/ghost/config.js 卷标的 services: mysql: image: mysql contai 阅读全文
posted @ 2020-12-01 21:33 酷酷的城池 阅读(1733) 评论(0) 推荐(1) 编辑
摘要: https://mirrors.aliyun.com/centos/8/isos/x86_64/CentOS-8.2.2004-x86_64-minimal.iso https://mirrors.aliyun.com/centos/8/isos/x86_64/ 阅读全文
posted @ 2020-12-01 09:52 酷酷的城池 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 关闭 Hyper-V 并重启并没有解决问题。 还需要确认一下: 首先,管理员身份打开提示符(即windows powershell)。 输入 bcdedit 并回车,找到hypervisorlaunchtype选项, 发现为auto. 则可以输入命令bcdedit /set hypervisorla 阅读全文
posted @ 2020-12-01 09:51 酷酷的城池 阅读(1123) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh status="`ps -ef |grep "内容" | grep -v grep | wc -l`" if [ $status -eq 0 ] then cd /home/wwwroot/ nohup 命令 -d > /dev/null 2>&1 & echo '启动成功' e 阅读全文
posted @ 2020-11-27 13:59 酷酷的城池 阅读(73) 评论(0) 推荐(0) 编辑
摘要: <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> <script src="http://cdn.bootcss.com/crypto-js/3.1.9/crypto-js.js"></script> <script 阅读全文
posted @ 2020-11-12 10:15 酷酷的城池 阅读(325) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/2217cfed29d7 先来看一份 docker-compose.yml 文件,不用管这是干嘛的,只是有个格式方便后文解说 version: '2' services: web: image: dockercloud/hello-world po 阅读全文
posted @ 2020-11-06 14:58 酷酷的城池 阅读(1038) 评论(0) 推荐(0) 编辑
摘要: 一、Docker介绍 1.下载Dcoker依的赖环境 想安装Docker,需要先将依赖的环境全部下载下来,就像Maven依赖JDK一样 yum -y install yum-utils device-mapper-persistent-data lvm2 2.指定Docker镜像源 默认下载Dock 阅读全文
posted @ 2020-10-29 08:54 酷酷的城池 阅读(598) 评论(0) 推荐(0) 编辑
摘要: // https://packagist.org/packages/endroid/qr-code#2.x-dev $qrCode = new QrCode('http://www.baidu.com'); $qrCode->setSize(100); $qrCode->setEncoding('U 阅读全文
posted @ 2020-10-23 15:06 酷酷的城池 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 小数点 filter_var($var, FILTER_VALIDATE_FLOAT)日期 date_parse_from_format(format,date); case 'require': // 必须 $result = !empty($value) || '0' == $value; br 阅读全文
posted @ 2020-10-16 17:22 酷酷的城池 阅读(150) 评论(0) 推荐(0) 编辑
摘要: {assign name="empty" value='<tr><td colspan="7">没有数据</td></tr>'} {volist name="list" empty="$empty"} 阅读全文
posted @ 2020-10-13 15:05 酷酷的城池 阅读(276) 评论(0) 推荐(0) 编辑
摘要: https://www.php.cn/php-weizijiaocheng-406172.html PHPqrCode是一个PHP二维码生成类库,利用它可以轻松生成二维码,官网提供了下载和多个演示demo,下载官网提供的类库后,只需要使用phpqrcode.php就可以生成二维码了,当然您的PHP环 阅读全文
posted @ 2020-10-10 10:43 酷酷的城池 阅读(694) 评论(0) 推荐(0) 编辑
摘要: function get_real_ip() { $ip=FALSE; //客户端IP 或 NONE if(!empty($_SERVER["HTTP_CLIENT_IP"])){ $ip = $_SERVER["HTTP_CLIENT_IP"]; } //多重代理服务器下的客户端真实IP地址(可能 阅读全文
posted @ 2020-10-10 10:41 酷酷的城池 阅读(151) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang=""> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="widt 阅读全文
posted @ 2020-09-25 17:37 酷酷的城池 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 优点 减少了出现行移动或者数据页分裂时二级索引的维护工作(当数据需要更新的时候,二级索引不需要修改,只需要修改聚簇索引,一个表只能有一个聚簇索引,其他的都是二级索引,这样只需要修改聚簇索引就可以了,不需要重新构建二级索引) 缺点 二级索引体积可能会变大,因为二级索引中存储了主键的信息 二级索引的访问 阅读全文
posted @ 2020-09-19 17:20 酷酷的城池 阅读(586) 评论(0) 推荐(0) 编辑
摘要: style="cursor:pointer;" οnclick="" 阅读全文
posted @ 2020-09-15 12:28 酷酷的城池 阅读(148) 评论(0) 推荐(0) 编辑
摘要: function emoji2str($str){ $strEncode = ''; $length = mb_strlen($str,'utf-8'); for ($i=0; $i < $length; $i++) { $_tmpStr = mb_substr($str,$i,1,'utf-8') 阅读全文
posted @ 2020-09-09 09:59 酷酷的城池 阅读(1089) 评论(0) 推荐(0) 编辑
摘要: <?php $html = file_get_contents('http://www.runoob.com'); $dom = new DOMDocument(); @$dom->loadHTML($html); // grab all the on the page $xpath = new D 阅读全文
posted @ 2020-09-07 11:32 酷酷的城池 阅读(420) 评论(0) 推荐(0) 编辑
摘要: const request = require('request') const readline = require('readline'); var path = require('path'); const fs = require('fs') const r1 = readline.crea 阅读全文
posted @ 2020-09-05 16:26 酷酷的城池 阅读(651) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000013666402 1. 基本流程 串行流程、并行流程、混合执行series, waterfall; parallel, parallelLimit; auto; 1.1. 串行流程 1.1.1. series(多个函数依次执行,之 阅读全文
posted @ 2020-09-05 11:41 酷酷的城池 阅读(611) 评论(0) 推荐(0) 编辑
摘要: function getData(callback){ setTimeout(function(){ var name = 'xxxx'; callback(name); }, 1000); } // 外部获取异步方法里面的数据 采用回调函数的方式 getData(function(data){ c 阅读全文
posted @ 2020-09-05 10:09 酷酷的城池 阅读(330) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页