戈壁堂

Knowledge Is Action

Basic-Javaagent

link on JianShu

man java

 -javaagent:jarpath[=options]

Loads the specified Java programming language agent. For more information about instrumenting Java applications, see the java.lang.instrument package description in the Java API documentation at http://docs.oracle.com/javase/8/docs/api/java/lang/instrument/package-summary.html
文档说明部分介绍了基本概念

Provides services that allow Java programming language agents to instrument programs running on the JVM.

Basic-Kafka

link on JianShu

https://kafka.apache.org/quickstart

  • Java8 + Windows环境
  • Zookeeper环境

启动Server时,会提示java.lang.NumberFormatException: For input string: "initial.rebalance.delay.ms"错误,根据这里的提示,在window环境下执行:.\bin\windows\kafka-server-start.bat .\config\server.properties

可以正常启动——这里启动的还是kafka的server,用来连接zookeeper的server,需要先启动zk。否则会超时自动结束。

Basic-Kibana

link on JianShu

假装天天接触大数据的样子= =|

Basic的意思就是:了解这个东西是做什么的?如何配置安装?简单实用方法是怎样的?

有了这个概念,就可以上手操作。

Basic-SonarQube-SonarScanner

link on JianShu

SonarQube Continuous code quality made easy.

Start In Two Minute

  1. 下载 SonarQube downloads,使用Sonar qube 7.6版本,Java8支持;最新版本8.0,需要Java 11+
  2. 解压后将bin目录添加到环境变量
  3. 启动SonarQube服务 (默认会使用内置的数据库,可单独配置数据库)
# On Windows, execute:
C:\sonarqube\bin\windows-x86-xx\StartSonar.bat

# On other operating systems, as a non-root user execute:
/opt/sonarqube/bin/[OS]/sonar.sh console

# server log
...
jvm 1    | 2019.11.20 10:38:32 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is up
jvm 1    | 2019.11.20 10:38:32 INFO  app[][o.s.a.SchedulerImpl] SonarQube is up