• SkyWalking——SkyWalking安装和配置


    SkyWalking安装和配置

    一、环境准备

    • SkyWalking 官网 :http://skywalking.apache.org
    • ES 官网 :http://elastic.co
    1. skywalking 安装包:https://archive.apache.org/dist/skywalking/8.4.0/apache-skywalking-apm-es7-8.4.0.tar.gz
    2. ES 安装包:wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.11.2-linux-x86_64.tar.gz

    二、安装部署

      docker-compose.yml

    [root@iZ2zebhzpca2wuarlnv5hjZ elasticsearch]# cat docker-compose.yml 
    version: '3.3'
    services:
      es7:
        image: docker.elastic.co/elasticsearch/elasticsearch:7.11.2
        container_name: es7
        ports:
          - 9200:9200
          - 9300:9300
        environment:
          - discovery.type=single-node
          - bootstrap.memory_lock=true
          - "ES_JAVA_OPTS=-Xms1048m -Xmx1048m"
          - TZ=Asia/Shanghai
        ulimits:
          memlock:
            soft: -1
            hard: -1
        volumes:
          - /data/elasticsearch/data:/usr/share/elasticsearch/data
    
      skywalking-oap:
        image: apache/skywalking-oap-server:8.3.0-es7
        container_name: skywalking-oap
        restart: always
        depends_on:
          - es7
        links:
          - es7
        ports:
          - 11800:11800
          - 12800:12800
        environment:
          TZ: Asia/Shanghai
          SW_STORAGE: elasticsearch7
          SW_STORAGE_ES_CLUSTER_NODES: es7:9200
    
      skywalking-ui:
        image: apache/skywalking-ui:8.4.0
        container_name: skywalking-ui
        restart: always
        depends_on:
          - skywalking-oap
        links:
          - skywalking-oap
        ports:
          - 8080:8080
        environment:
          TZ: Asia/Shanghai
          SW_OAP_ADDRESS: skywalking-oap:12800
    

      执行启动命令:

    [root@iZ2zebhzpca2wuarlnv5hjZ ~]# cd /data/elasticsearch/
    [root@iZ2zebhzpca2wuarlnv5hjZ elasticsearch]# ll
    total 4
    drwxrwxrwx 3 root root   19 Mar 16 18:40 data
    -rw-r--r-- 1 root root 1100 Mar 16 18:39 docker-compose.yml
    [root@iZ2zebhzpca2wuarlnv5hjZ elasticsearch]# docker-compose up

    [root@iZ2zebhzpca2wuarlnv5hjZ elasticsearch]# docker images
    REPOSITORY                                      TAG         IMAGE ID       CREATED        SIZE
    docker.elastic.co/elasticsearch/elasticsearch   7.11.2      a6cbb6bace0e   10 days ago    824MB
    apache/skywalking-ui                            8.4.0       5f4d7292cd19   5 weeks ago    403MB
    apache/skywalking-ui                            latest      5f4d7292cd19   5 weeks ago    403MB
    apache/skywalking-oap-server                    8.3.0-es7   fdf011363ff8   3 months ago   490MB
    [root@iZ2zebhzpca2wuarlnv5hjZ elasticsearch]# docker ps
    CONTAINER ID   IMAGE                                                  COMMAND                  CREATED        STATUS              PORTS                                                          NAMES
    69841a888004   apache/skywalking-ui:8.4.0                             "bash docker-entrypo…"   17 hours ago   Up About a minute   0.0.0.0:8080->8080/tcp                                         skywalking-ui
    73cfdeeabebc   apache/skywalking-oap-server:8.3.0-es7                 "bash docker-entrypo…"   17 hours ago   Up 33 seconds       0.0.0.0:11800->11800/tcp, 1234/tcp, 0.0.0.0:12800->12800/tcp   skywalking-oap
    ec4a12657e84   docker.elastic.co/elasticsearch/elasticsearch:7.11.2   "/bin/tini -- /usr/l…"   17 hours ago   Up About a minute   0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp                 es7
    [root@iZ2zebhzpca2wuarlnv5hjZ elasticsearch]# 

      至此,SkyWalking 单机版本已安装完成。

  • 相关阅读:
    JAVA文件操作类和文件夹的操作代码示例
    java去除表达符号的正则表达式
    正则表达式以过滤特殊字符
    eclipse与myeclipse恢复已删除的文件和代码
    Windows 2003 Server R2 x64 IIS6.0 eWebEditor无法显示的问题
    获得每日,每周,每月的0点和24点的时间戳
    Access查询时间段 .
    java连接Access数据库的两种方法
    移动App专项测试
    linux性能评估-内存基础理解篇
  • 原文地址:https://www.cnblogs.com/zuoyang/p/14511010.html
Copyright © 2020-2023  润新知