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
阅读全文
3.elasticsearch_ik中文分词
摘要:1.临时在线安装 docker exec -it elasticsearch /bin/bash ./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/downlo
阅读全文
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
阅读全文
1.Nginx 配置 Basic 认证
摘要:环境:aliyun centos8 在 Nginx 下配置 Basic 认证需要依靠 Nginx 的 http_auth_basic_module 模块(官方文档:http://nginx.org/en/docs/http/ngx_http_auth_basic_module.html) 配置过程:
阅读全文