0
点赞
收藏
分享

微信扫一扫

⭐ Unity 开发bug —— 打包后shader失效或者bug (我这里用Shader做两张图片的合并发现了问题)

dsysama 2023-12-02 阅读 36

一、docker部署ElasticSearch

1、创建网桥

2、下载镜像

3、先运行容器

 4、复制容器文件到指定目录

/docker/es目录自己提前创建并且打开权限

5、销毁容器

6、挂载数据卷,限制内存

7、进入elasticsearch.yml配置文件,关闭SSL

文件在挂在的/docker/es/config目录下

即修改此命令xpack.security.enabled: false

以下是完整文件,已修改,可以直接复制

cluster.name: "docker-cluster"
network.host: 0.0.0.0

#----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------
#
# The following settings, TLS certificates, and keys have been automatically      
# generated to configure Elasticsearch security features on 01-12-2023 06:13:23
#
# --------------------------------------------------------------------------------

# Enable security features
xpack.security.enabled: false

xpack.security.enrollment.enabled: true

# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
  enabled: true
  keystore.path: certs/http.p12

# Enable encryption and mutual authentication between cluster nodes
xpack.security.transport.ssl:
  enabled: true
  verification_mode: certificate
  keystore.path: certs/transport.p12
  truststore.path: certs/transport.p12
#----------------------- END SECURITY AUTO CONFIGURATION -------------------------

8、重启容器

9、访问成功

浏览器访问:

二、docker部署kibana

1、安装镜像

2、先创建容器

3、复制容器文件到指定目录

4、销毁容器

5、运行容器,挂载数据卷

docker run -it -d \
  -e ELASTICSEARCH_URL=http://127.0.0.1:9200 \
  --name kibana \
  --network=container:es \
  -v /docker/kibana/config:/usr/share/kibana/config \
  kibana:8.2.0

6、配置elasticsearch和Kibana相连接

配置文件在挂在的/docker/kibana/config目录下

进入/docker/kibana/config目录中修改kibana.yml配置文件,修改访问的IP地址,为本地127.0.0.1访问

以下修改后的完整文件,可以直接复制

#
# ** THIS IS AN AUTO-GENERATED FILE **
#

# Default Kibana configuration for docker target
server.host: "0.0.0.0"
server.shutdownTimeout: "5s"
elasticsearch.hosts: [ "http://127.0.0.1:9200" ]
monitoring.ui.container.elasticsearch.enabled: true
i18n.locale: "zh-CN"

7、重启容器

8、访问

访问5601端口即可成功进入

参考文档:

【docker】使用docker安装部署elasticsearch+Kibana-腾讯云开发者社区-腾讯云 (tencent.com)

Elasticsearch学习笔记_elasticsearch笔记-CSDN博客

举报

相关推荐

0 条评论