zoukankan      html  css  js  c++  java
  • [原创]Getting Started with Skywalking


    Getting Started with Skywalking

    Pre

    • JDK 1.8+
    • Skywalking(v3.2.6) (All packages can be download from GitHub):
      • skywalking-web.tar.gz
      • skywalking-collector.tar.gz
      • skywalking-agent.tar.gz
    • ElasticSearch (ver 5.3.0)

    Install

    Directly decompress above tar packages.

    Settings

    There is a folder, read config, under each model which contain several setting files of skywalking. The default settings can cover plenty of use cases, so you can ignore these settings file and just start up the application. If you install skywalking on a server which already running a web-server on it, the default http ports(80, 443, 8080, 8443) might been bind to another application. In this case, you should consider adjust the port of embedded jetty. The main steps are as follow:

    • Switch to skywalking-web installation folder.
    • Jump into config folder.
    • Edit server.port property to re-target web server's port in application.properties.

    Start Service

    All components of skywalking run on stand-alone JVM processes, in other words, each service can be started separately without order. Though skywalking give the maximum degree of freedom to the user, I still strongly recommend you consider the following procedure:

    • Start ElasticSearch;
    • Start skywalking-collector;
    • Start skywalking-web
    • Start your application with skywalking-agent.
      • For SpringBoot application, one should laungh jar file as follow:
        java -jar -javaagent:/<Path>/skywalking-agent/skywalking-agent.jar 
        ./APPLICATION.jar
         
      • In case, application been deployed via stander webserver, Tomcat for instance, one should consider attach -javaagent:/<Path>/skywalking-agent/skywalking-agent.jar commend to the start script.
  • 相关阅读:
    【java】对象赋值给另一个对象
    spring boot系列(五)spring boot 配置spring data jpa (查询方法)
    Spring Data JPA 查询
    Spring Data JPA 介绍
    OpenID简介
    OAUTH协议介绍
    URL encoding(URL编码)
    RESTful 介绍
    spring boot系列(四)spring boot 配置spring data jpa (保存修改删除方法)
    spring boot 启动报 java.lang.NoClassDefFoundError: ch/qos/logback/core/spi/LifeCycle 错误
  • 原文地址:https://www.cnblogs.com/hexin0614/p/8424648.html
Copyright © 2011-2022 走看看