DOCKER安装搭建ghost博客

记录一下简单过程 1.安装 docker curl -fsSL https://get.<a href="http://yw8.tech/tag/docker/" title="查看与 docker 相关的文章" target="_blank">docker</a>.com/ | sh 链接在github或者使用 apt install docker.io 进行安装 2.安 [阅读全文]

Dockerfile实现修改docker容器hosts文件内容的方法

http://blog.realjf.com/archives/62 root@ycyl01:~/xkmicroservice/tm-registry# cat Dockerfile #pull down OS image FROM harbor.xikang.com/microservice/openjre8-base:v3 #copy src into image ADD ./tm-registry/ /opt/tm-registry ADD ./myhosts /opt/tm-registry/ WORKDIR /opt/tm-registry/ ENTRYPOINT ["./start.sh"] root@ycyl01:~/xkmicroservice/tm-registry# cat tm-registry/start.sh #!/bin/bash hostname=`hostname` cat myhosts >> /etc/hosts nohup java -jar xk-cloud-tm-registry-1.0-SNAPSHOT.jar --spring.profiles.active=prod > /opt/logs/$hostname.log 2>&1 & tail -f /opt/logs/$hostname.log root@ycyl01:~/xkmicroservice/tm-registry# cat tm-registry.yaml --- kind: Deployment apiVersion: extensions/v1beta1 metadata: name: tm-registry spec: replicas: 2 template: metadata: labels: name: tm-registry spec: containers: - name: tm-registry image: [阅读全文]

ELK搜索条件

ELK搜索条件 1、要搜索一个确切的字符串,即精确搜索,需要使用双引号引起来:path:”/app/logs/nginx/access.log [阅读全文]

Kubernetes 使用 Weave Scope 监控集群

安装: kubectl apply -f "https://cloud.weave.works/<a href="http://yw8.tech/tag/k8s/" title="查看与 k8s 相关的文章" target="_blank">k8s</a>/scope.yaml?k8s-version=$(kubectl version | base64 | tr -d '\n')&k8s-service-type=NodePort" 查看暴露的web端口 kubectl --kubeconfig=/root/kubeconf-dl-xk get pod -n weave kubectl --kubeconfig=/root/kubeconf-dl-xk get svc -n weave kubectl --kubeconfig=/root/kubeconf-dl-xk get deploy -n weave 主 [阅读全文]

Linux常用性能调测命令简介

https://mp.weixin.qq.com/s?__biz=MjM5NTcxMTE2Nw==&mid=2653116870&idx=1&sn=db0f254e0c549eabc62a7510e4f46505&chksm=bd23a8168a5421007a5cd6a5884dce9fd4809656ab7922417d0181ad342fc74136dbeb9e4663&scene=0#rd 一、 Linux常用命令 1 top 简介:top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows [阅读全文]