skywalking 9.10 安装(docker-compose)

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: '3.4'
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.4.1
    container_name: elasticsearch
    ports:
      - "9200:9200"
    healthcheck:
      test: [ "CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1" ]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 10s
    volumes:
      - /data/xcc/data:/usr/share/elasticsearch/data
    environment:
      - discovery.type=single-node
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1

    networks:
      - xswitch_xcc

  oap:
    image: apache/skywalking-oap-server:9.1.0
    container_name: oap
    links:
      - elasticsearch
    restart: on-failure:5
    ports:
      - "11800:11800"
      - "12800:12800"
    healthcheck:
      test: [ "CMD-SHELL", "/skywalking/bin/swctl ch" ]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 10s
    environment:
      SW_STORAGE: elasticsearch
      SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200
      SW_HEALTH_CHECKER: default
      SW_TELEMETRY: prometheus
      JAVA_OPTS: "-Xms2048m -Xmx2048m"
    networks:
      - xswitch_xcc

  ui:
    image: apache/skywalking-ui:9.1.0
    container_name: ui
    links:
      - oap
    ports:
      - "8080:8080"
    environment:
      SW_OAP_ADDRESS: http://oap:12800
    networks:
      - xswitch_xcc

networks:
  xswitch_xcc:
    external: true
标签: skywalking

DuangShuang 发布于 2022-8-6 16:54

kamailio核心配置说明 sip

Core Cookbook
核心参数
Version: Kamailio SIP Server v5.5.x (stable)

标签: kamailio

DuangShuang 发布于 2022-7-31 23:11

思源笔记—DOCKER搭建教程

一、docker安装并启动镜像

#下载镜像
docker pull b3log/siyuan
#运行镜像
docker run -v /data/siyuan_biji:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/

命令中的/data/siyuan_biji最好挂在数据盘,后期数据多了迁移也麻烦
本地一定要有一个uid1000的用户 /data/siyuan_biji 文件夹属于这个用户

二、nginx反代6806端口

用nginx隐藏6808端口,后期可以做好安全设置,比如启用访问白名单等等

   upstream ws_svr {
        server 127.0.0.1:6806;
    }

    server {
        listen       5555;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

       location / {

           proxy_pass http://ws_svr;

           proxy_set_header Host $host;

           proxy_http_version 1.1;

           proxy_set_header X-Client-IP $remote_addr;

           proxy_set_header Upgrade $http_upgrade;

           proxy_set_header Connection "upgrade";

           proxy_set_header X-Real-IP $remote_addr;

           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

           proxy_connect_timeout 60;

           proxy_read_timeout 600;

}

三、做好应用设置

1、 设置->外观 ->中文
2、 设置->关于 ->访问授权码

标签: docker 思源

DuangShuang 发布于 2022-6-22 18:40

检测有规则文件的集合大小

计算有规则文件的集合大小用M表示。

标签: python

DuangShuang 发布于 2022-5-18 15:08

口罩的购买标准

应对奥密克戎,正确选购口罩很重要,要“一查二看三闻”。
“一查”是查注册证号和执行标准:

医用防护口罩【GB19083-2010】
医用外科口罩【YY0469-2011】
一次性使用医用口罩【YY/T0969-2013】
日常防护型口罩【GB/T32610-2016】
儿童口罩【GB/T38880-2020】

“二看”是口罩中间有一层熔喷:
这是决定口罩防护能力的重要功能层。如果没有,则不合格。

“三闻”是如果闻到口罩有明显的异味:
如发酸、发霉,则可能在生产或储存过程当中出现了质量问题,这样的口罩不要使用。生活中,普通公众佩戴一次性医用口罩即可满足日常防护需求。


DuangShuang 发布于 2022-4-18 14:53

华为家用网络设备pppoe功能更新失效

买了2个华为的家用网络设备,一个6GWIFI路由器、一个4G插卡路由器。

…6G的设备拨号失败,更新固件就好了。
4G的设备,用着挺好,更新固件,PPPOE就失败了,只能还原设备固件

我服了。/(ㄒoㄒ)/~~

标签: 网络

DuangShuang 发布于 2022-3-6 18:20

apt安装kamailio5.5 sip

1、设置apt源

/etc/apt/sources.list

deb http://mirrors.tuna.tsinghua.edu.cn/debian buster main
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian buster main
deb http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main
deb http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates main
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates main
deb http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports main
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports main
deb http://mirrors.ustc.edu.cn/debian sid main

2、设置kamailio源

/etc/apt/sources.list.d/kamailio.list

deb     http://deb.kamailio.org/kamailio55 focal main
deb-src http://deb.kamailio.org/kamailio55 focal main

3、安装kamailio

apt update
apt-get install kamailio

后面的使用方法后续更新

标签: kamailio sip

DuangShuang 发布于 2022-2-22 10:51