下载

wget http://mirrors.tuna.tsinghua.edu.cn/apache/skywalking/6.4.0/apache-skywalking-apm-6.4.0.tar.gz

安装

# 解压
tar -zxvf apache-skywalking-apm-6.4.0.tar.gz

配置

修改 skywalking 目录下的 webapp/webapp.yml 信息,如下所示,将127.0.0.1修改成本地真实 ip ,例如本示例IP为192.168.3.207

server:
  port: 8080

collector:
  path: /graphql
  ribbon:
    ReadTimeout: 10000
    # 127.0.0.1 -->  192.168.3.207
    listOfServers: 192.168.3.207:12800

修改 skywalking 目录下的 config/application.yml 信息,如下所示,将 h2 的配置注释掉,取消elasticsearch相关配置的注释,并修改配置,将 localhost 改成本地IP地址

  elasticsearch:
#    nameSpace: ${SW_NAMESPACE:""}
    clusterNodes: ${SW_STORAGE_ES_CLUSTER_NODES:192.168.3.207:9200}
#    protocol: ${SW_STORAGE_ES_HTTP_PROTOCOL:"http"}
#    trustStorePath: ${SW_SW_STORAGE_ES_SSL_JKS_PATH:"../es_keystore.jks"}
#    trustStorePass: ${SW_SW_STORAGE_ES_SSL_JKS_PASS:""}
#    user: ${SW_ES_USER:""}
#    password: ${SW_ES_PASSWORD:""}
    indexShardsNumber: ${SW_STORAGE_ES_INDEX_SHARDS_NUMBER:2}
    indexReplicasNumber: ${SW_STORAGE_ES_INDEX_REPLICAS_NUMBER:0}

#  h2:
#    driver: ${SW_STORAGE_H2_DRIVER:org.h2.jdbcx.JdbcDataSource}
#    url: ${SW_STORAGE_H2_URL:jdbc:h2:mem:skywalking-oap-db}
#    user: ${SW_STORAGE_H2_USER:sa}
#    metadataQueryMaxSize: ${SW_STORAGE_H2_QUERY_MAX_SIZE:5000}

启动

切换到 SkyWalkingbin 目录,执行如下命令

#  & 表示程序将在后台运行
$ ./startup.sh &

然后我们打开ui界面 IP:端口
本示例为:http://192.168.3.207:8080

skywalking UI界面

文档更新时间: 2019-11-11 11:15   作者:Eddy