会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
蛋蛋烦蛋蛋
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
12
下一页
2021年1月4日
docker-compose 命令
摘要: 先来看一份 docker-compose.yml 文件,不用管这是干嘛的,只是有个格式方便后文解说 version: '2' services: web: image: dockercloud/hello-world ports: - 8080 networks: - front-tier - ba
阅读全文
posted @ 2021-01-04 22:16 酷酷的城池
阅读(309)
评论(0)
推荐(0)
2020年12月30日
es elasticsearch pdf 文档
摘要: 壹 贰 叁 肆 链接: https://pan.baidu.com/s/1wOcVc6to1cb1Qp3DseJ1uA 提取码: qkth 复制这段内容后打开百度网盘手机App,操作更方便哦
阅读全文
posted @ 2020-12-30 10:58 酷酷的城池
阅读(277)
评论(0)
推荐(0)
2020年12月29日
vim 常用工具
摘要: <!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 酷酷的城池
阅读(165)
评论(0)
推荐(0)
2020年12月7日
docker redis 设置密码
摘要: 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 酷酷的城池
阅读(850)
评论(0)
推荐(0)
【docker】为docker下的php容器安装php-redis扩展【编译安装】
摘要: 使用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 酷酷的城池
阅读(759)
评论(0)
推荐(0)
2020年12月4日
测试
摘要: 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 酷酷的城池
阅读(67)
评论(0)
推荐(0)
2020年12月2日
php CURL模拟登陆+获取cookie
摘要: /* * 模拟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 酷酷的城池
阅读(605)
评论(0)
推荐(0)
2020年12月1日
docker-compose volume 数据卷
摘要: 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 酷酷的城池
阅读(1872)
评论(0)
推荐(1)
下载centos
摘要: 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 酷酷的城池
阅读(62)
评论(0)
推荐(0)
virtualBox不能为虚拟机打开一个新任务解决方法
摘要: 关闭 Hyper-V 并重启并没有解决问题。 还需要确认一下: 首先,管理员身份打开提示符(即windows powershell)。 输入 bcdedit 并回车,找到hypervisorlaunchtype选项, 发现为auto. 则可以输入命令bcdedit /set hypervisorla
阅读全文
posted @ 2020-12-01 09:51 酷酷的城池
阅读(1269)
评论(0)
推荐(0)
2020年11月27日
linux 检测进程
摘要: #!/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 酷酷的城池
阅读(75)
评论(0)
推荐(0)
2020年11月12日
js 和 php 对称加密
摘要: <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 酷酷的城池
阅读(354)
评论(0)
推荐(0)
2020年11月6日
Docker Compose 配置文件详解
摘要: https://www.jianshu.com/p/2217cfed29d7 先来看一份 docker-compose.yml 文件,不用管这是干嘛的,只是有个格式方便后文解说 version: '2' services: web: image: dockercloud/hello-world po
阅读全文
posted @ 2020-11-06 14:58 酷酷的城池
阅读(1060)
评论(0)
推荐(0)
2020年10月29日
docker 脚本操作
摘要: 一、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 酷酷的城池
阅读(624)
评论(0)
推荐(0)
2020年10月23日
php中file_get_contents的图片乱码
摘要: // 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 酷酷的城池
阅读(393)
评论(0)
推荐(0)
2020年10月16日
thinkphp 验证用的方法
摘要: 小数点 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 酷酷的城池
阅读(166)
评论(0)
推荐(0)
2020年10月13日
thinkphp volist empty空数据时
摘要: {assign name="empty" value='<tr><td colspan="7">没有数据</td></tr>'} {volist name="list" empty="$empty"}
阅读全文
posted @ 2020-10-13 15:05 酷酷的城池
阅读(294)
评论(0)
推荐(0)
2020年10月10日
使用PHP类库PHPqrCode生成二维码
摘要: https://www.php.cn/php-weizijiaocheng-406172.html PHPqrCode是一个PHP二维码生成类库,利用它可以轻松生成二维码,官网提供了下载和多个演示demo,下载官网提供的类库后,只需要使用phpqrcode.php就可以生成二维码了,当然您的PHP环
阅读全文
posted @ 2020-10-10 10:43 酷酷的城池
阅读(715)
评论(0)
推荐(0)
获取客户端真实IP
摘要: 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 酷酷的城池
阅读(163)
评论(0)
推荐(0)
2020年9月25日
js 解决图片不能自由拖动
摘要: <!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 酷酷的城池
阅读(532)
评论(0)
推荐(0)
2020年9月19日
MYSQL InnoDB二级索引存储主键值而不是存储行指针的优点与缺点
摘要: 优点 减少了出现行移动或者数据页分裂时二级索引的维护工作(当数据需要更新的时候,二级索引不需要修改,只需要修改聚簇索引,一个表只能有一个聚簇索引,其他的都是二级索引,这样只需要修改聚簇索引就可以了,不需要重新构建二级索引) 缺点 二级索引体积可能会变大,因为二级索引中存储了主键的信息 二级索引的访问
阅读全文
posted @ 2020-09-19 17:20 酷酷的城池
阅读(612)
评论(0)
推荐(0)
2020年9月15日
公众号 苹果端点击事件委托不起作用而安卓可以
摘要: style="cursor:pointer;" οnclick=""
阅读全文
posted @ 2020-09-15 12:28 酷酷的城池
阅读(155)
评论(0)
推荐(0)
2020年9月9日
php emoji表情转换
摘要: 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 酷酷的城池
阅读(1113)
评论(0)
推荐(0)
2020年9月7日
PHP 获取网页所有链接
摘要: <?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 酷酷的城池
阅读(433)
评论(0)
推荐(0)
2020年9月5日
node 一行一行的读取文件
摘要: 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 酷酷的城池
阅读(661)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
12
下一页