2019和2020
前言
2019年总体来说还是有所收获的,除了技术上成长了许多,还开发了自己的博客;另外还参与了 Pycon China2019 成都 的志愿者活动,有机会和各位大佬近距离接触
,阿里老哥、日本小姐姐以及 Flask 项目大神维护者的讲解让小生受益匪浅。
2019年总体来说还是有所收获的,除了技术上成长了许多,还开发了自己的博客;另外还参与了 Pycon China2019 成都 的志愿者活动,有机会和各位大佬近距离接触
,阿里老哥、日本小姐姐以及 Flask 项目大神维护者的讲解让小生受益匪浅。
POST lagou/testjob/_bulk
{"index":{"_id":1}}
{"salary":10, "title": "Python"}
{"index":{"_id":2}}
{"salary":20, "title": "Scrapy"}
{"index":{"_id":3}}
{"salary":30, "title": "Django"}
{"index":{"_id":4}}
{"salary":40, "title": "Elasticsearch"}
# 添加映射
PUT lagou
{
"mappings": {
"job":{
"properties": {
"title":{
"store": true,
"type": "text",
"analyzer": "ik_max_word"
},
"company_name":{
"store": true,
"type": "keyword"
},
"desc":{
"type": "text"
},
"comments":{
"type": "integer"
},
"add_time":{
"type": "date",
"format": "yyyy-MM-dd"
}
}
}
}
}
POST lagou/job/
{
"title":"python django 开发工程师",
"company_name":"美团科技有限公司",
"desc":"对django的概念熟悉,熟悉python基础知识",
"comments":20,
"add_time":"2019-5-30"
}
POST lagou/job/
{
"title":"python scrapy redis分布式爬虫基本",
"company_name":"百度科技有限公司",
"desc":"scrapy的概念熟悉,熟悉redis基础知识",
"comments":5,
"add_time":"2019-5-1"
}
POST lagou/job/
{
"title":"elasticsearch打造搜索引擎",
"company_name":"阿里巴巴科技有限公司",
"desc":"熟悉数据结构算法,熟悉python基础开发",
"comments":60,
"add_time":"2019-4-15"
}
POST lagou/job/
{
"title":"python打造推荐引擎系统",
"company_name":"阿里巴巴科技有限公司",
"desc":"熟悉推荐引擎的原理以及算法,掌握C语言",
"comments":60,
"add_time":"2019-1-22"
}
1 |
|
bulk操作不能分行,json必需一行写完
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, PUT, DELETE
http.cors.allow-headers: "X-Requested_With, Content-Type, Content_Length, X-User"
RUN apt-get install -y vim
CMD echo "hello docker"
ENTRYPOINT echo "hello docker"
docker images 显示所有镜像
docker build -t image_name . (点就是从当前路径查找Dockerfile)
docker container ls 列举当前运行的容器
docker run -it image_name 交互式运行image
docker rm/docker container rm container_id 删除container
docker rmi/docker image rm image_id 删除image
docker container -aq 列出所有container_id (-q代表只列出id)
docker rm $(docker container -aq) ($,删除所有列表中的元素)
docker rm $(docker container ls -f “status=exited” -q) 删除退出的容器
docker commit container_name new_container_name
docker commit frozty_jeew caesar123/centos-vim
Dockerfile 用来build一个一模一样的image