系统相关
首页 > 系统相关> > linux 部署 skywalking

linux 部署 skywalking

作者:互联网

1 在 linux 主机上安装好 docker-compose 

参考链接 https://www.cnblogs.com/tomorrow0/p/16350998.html

2 在 linux 主机上创建文件夹 /my/servers/skywalking

3 将 skywalking的启动文件 skywalking.yml 文件上传到 /my/servers/skywalking 目录下

version: '3.3'
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.5.0
    container_name: elasticsearch
    restart: always
    ports:
      - 9200:9200
    environment:
      - discovery.type=single-node
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
  oap:
    image: apache/skywalking-ui:latest
    container_name: oap
    depends_on:
      - elasticsearch
    links:
      - elasticsearch
    restart: always
    ports:
      - 11800:11800
      - 12800:12800
    environment:
      SW_STORAGE: elasticsearch
      SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200
  ui:
    image: apache/skywalking-ui
    container_name: ui
    depends_on:
      - oap
    links:
      - oap
    restart: always
    ports:
      - 8080:8080
    environment:
      SW_OAP_ADDRESS: http://oap:12800

4 使用 skywalking.yml 文件启动 skywalking 

进入 /my/servers/skywalking 目录下,启动命令

docker-compose 使用 skywalking.yml 文件启动,-d 后台运行

docker-compose -f skywalking.yml up -d

5 测试

浏览器访问主机的 8080 端口

http://175.178.218.96:8080

 

标签:8080,部署,linux,ui,oap,elasticsearch,skywalking,yml
来源: https://www.cnblogs.com/tomorrow0/p/16351368.html