会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
你的小可爱吖
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
20
下一页
2021年1月21日
Elasticsearch 创建mapping
摘要: 一、创建 mapping 我们可以通过 curl 命令来创建也可以使用 postman 工具等 # 自定义mapping test.org PUT test { "mapping": { "properties": { "id": { "type": "keyword" }, "name": { "
阅读全文
posted @ 2021-01-21 15:27 你的小可爱吖
阅读(655)
评论(0)
推荐(0)
2021年1月20日
Python-多线程详解
摘要: 一、介绍线程 1)什么是线程? 线程(英语:thread)是操作系统能够进行运算调度的最小单位。它被包含在进程之中,是进程中的实际运作单位。一条线程指的是进程中一个单一顺序的控制流,一个进程中可以并发多个线程,每条线程并行执行不同的任务。在Unix System V及SunOS中也被称为轻量进程(l
阅读全文
posted @ 2021-01-20 18:05 你的小可爱吖
阅读(487)
评论(0)
推荐(0)
Nginx 设置白名单
摘要: 有四种方式可以实现 第一种方式就是 利用防火墙的方式来实现 [root@china ~]# vim /etc/sysconfig/iptables ...... -A INPUT -s 112.112.15.16 -p tcp -m state --state NEW -m tcp --dport
阅读全文
posted @ 2021-01-20 16:47 你的小可爱吖
阅读(1537)
评论(0)
推荐(0)
Elasticsearch 查看模板与mapping
摘要: 查看 Elasticsearch 的所有模板 curl -XGET 127.0.0.1:9200/_cat/templates?pretty 查看 Elasticsearch 某个模板 curl -XGET 127.0.0.1:9200/_template/situation-sw_test-tem
阅读全文
posted @ 2021-01-20 12:04 你的小可爱吖
阅读(1909)
评论(0)
推荐(0)
2021年1月19日
Elasticsearch 增加、删除索引
摘要: 创建索引 创建索引index时映射mapping put 请求发送 http://localhost:9200/blog1 参数: { "mappings": { "article": { "properties": { "id": { "type": "long", "store": true,
阅读全文
posted @ 2021-01-19 11:31 你的小可爱吖
阅读(83)
评论(0)
推荐(0)
2021年1月17日
Python kafka生产者消费者
摘要: 生产者(1) # coding=utf-8 # 生产者脚本 import json from kafka import KafkaProducer producer = KafkaProducer(bootstrap_servers="10.44.99.103:9092") msg_dict = {
阅读全文
posted @ 2021-01-17 09:36 你的小可爱吖
阅读(113)
评论(0)
推荐(0)
2021年1月13日
tcpdump 命令
摘要: 一、tcpdump 命令选项 -A 以ASCII编码打印每个报文(不包括链路层的头),这对分析网页来说很方便 -c 最大抓取报文数 -C 用于判断用 -w 选项将报文写入的文件的大小是否超过这个值,如果超过了就新建文件(文件名后缀是1、2、3依次增加) -D 列出当前主机的所有网卡编号和名称,可以用
阅读全文
posted @ 2021-01-13 14:25 你的小可爱吖
阅读(310)
评论(0)
推荐(0)
2021年1月11日
检查网络问题 是否链接
摘要: ip a tcpdump -i ens6f0 ip host 10.44.55.66 tcpdump -i ens6f0 port 513 and host 10.44.55.66 netstat -anp | grep 513
阅读全文
posted @ 2021-01-11 17:06 你的小可爱吖
阅读(85)
评论(0)
推荐(0)
2021年1月8日
linux 防火墙
摘要: 存在以下两种方式: 一、service方式 查看防火墙状态: [root@centos6 ~]# service iptables status iptables:未运行防火墙。 开启防火墙: [root@centos6 ~]# service iptables start 关闭防火墙: [root
阅读全文
posted @ 2021-01-08 14:52 你的小可爱吖
阅读(155)
评论(0)
推荐(0)
Error: Cannot open an HTTP server: socket.error reported errno.EADDRNOTAVAIL (99)
摘要: supervisord 启动失败错误信息如下: Error: Cannot open an HTTP server: socket.error reported errno.EADDRNOTAVAIL (99) 1.检查是否已开启python ps -ef|grep python 如对应有进程将其杀
阅读全文
posted @ 2021-01-08 10:37 你的小可爱吖
阅读(1855)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
20
下一页
公告