随笔:91 文章:0 评论:0 阅读: 19166

03 2022 档案

 
1.Dockerfile中如何自动回答标准输入的问题
摘要:问题: 在使用docker build制作镜像时,run命令安装一些软件,需要使用yes/y.no/n来进行确定 解决: 例子1(安装es_ik,输入一次y):run sh -c '/bin/echo -e "yes\n"' ./bin/elasticsearch-plugin install fi 阅读全文
posted @ 2022-03-07 11:19 zhangdapangzi 阅读(681) 评论(0) 推荐(0) 编辑
3.elasticsearch_ik中文分词
摘要:1.临时在线安装 docker exec -it elasticsearch /bin/bash ./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/downlo 阅读全文
posted @ 2022-03-04 14:57 zhangdapangzi 阅读(68) 评论(0) 推荐(0) 编辑
1.Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
摘要:一.问题: centos8 yum 报错 yum Failed to download metadata for repo ‘AppStream’ 二.原因: cd /etc/yum.repos.dvim CentOS-Base.repo base源地址baseurl失效 解决方案: 参考 http 阅读全文
posted @ 2022-03-01 14:15 zhangdapangzi 阅读(912) 评论(0) 推荐(0) 编辑
1.Nginx 配置 Basic 认证
摘要:环境:aliyun centos8 在 Nginx 下配置 Basic 认证需要依靠 Nginx 的 http_auth_basic_module 模块(官方文档:http://nginx.org/en/docs/http/ngx_http_auth_basic_module.html) 配置过程: 阅读全文
posted @ 2022-03-01 13:35 zhangdapangzi 阅读(630) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示