上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 69 下一页
摘要: docker run 运行一个应用程序 docker run ubuntu:15.10 /bin/echo "Hello world" 镜像ubuntu,版本15.10,Docker 首先从本地主机上查找镜像是否存在,如果不存在,Docker 就会从镜像仓库 Docker Hub 下载公共镜像。 问 阅读全文
posted @ 2020-04-04 09:56 jihite 阅读(386) 评论(0) 推荐(0) 编辑
摘要: Image2String import base64 def image_str(): with open("test.png", "rb") as imageFile: str = base64.b64encode(imageFile.read()) return str String2Image 阅读全文
posted @ 2020-04-02 10:38 jihite 阅读(1463) 评论(0) 推荐(0) 编辑
摘要: 设置gunicorn 参数--limit-request-line 8188 (默认是4094) 参考 limit_request_line --limit-request-line INT 4094 The maximum size of HTTP request line in bytes. T 阅读全文
posted @ 2020-03-29 12:04 jihite 阅读(1222) 评论(0) 推荐(0) 编辑
摘要: def new_round(_float, _len): """ Parameters _float: float _len: int, 指定四舍五入需要保留的小数点后几位数为_len Returns type ==> float, 返回四舍五入后的值 """ if isinstance(_floa 阅读全文
posted @ 2020-03-24 16:33 jihite 阅读(1937) 评论(0) 推荐(1) 编辑
摘要: 主要概念与mysql对比 对于HTTP方法,具体作用 HTTP方法操作说明 GET 查 获取请求对象的当前状态 POST 改 改变对象的当前状态 PUT 增 创建一个对象 DELETE 删 销毁对象 HEAD 请求获取对象的基础信息 增删改查 以下在Kibana的Dev Tools里执行 增 PUT 阅读全文
posted @ 2020-03-15 20:58 jihite 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 安装ElasticSearch 依赖 Java 环境 安装 brew install elasticsearch 启动 brew services start elasticsearch 验证 访问:http://localhost:9200/ 参考 https://www.jianshu.com/ 阅读全文
posted @ 2020-03-15 20:04 jihite 阅读(1628) 评论(0) 推荐(0) 编辑
摘要: 查看编码 show variables like 'char%'; 结果 + + + | Variable_name | Value | + + + | character_set_client | gbk | | character_set_connection | gbk | | charact 阅读全文
posted @ 2020-02-24 09:25 jihite 阅读(991) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/a036405f989c 待整理。。。 阅读全文
posted @ 2020-02-23 16:17 jihite 阅读(1917) 评论(0) 推荐(0) 编辑
摘要: 1. 安装zookeeper brew install zookeeper 默认安装位置 启动文件: /usr/local/Cellar/zookeeper/3.4.10/bin/ 配置文件: /usr/local/etc/zookeeper/ 2. 启动zookeeper 服务 nohup zoo 阅读全文
posted @ 2020-02-23 16:16 jihite 阅读(11108) 评论(0) 推荐(2) 编辑
摘要: python小例-生产、消费 生产 #!/usr/bin/env python # -*- coding: utf-8 -*- from kafka import KafkaProducer import json producer = KafkaProducer(bootstrap_servers 阅读全文
posted @ 2020-02-17 08:53 jihite 阅读(1607) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 69 下一页