DevOps 与监控观测
你当前正在浏览历史版本 Vert.x 4.0.3 的文档。 访问本页面的 最新版本。

Vert.x 交互式终端 (Vert.x Shell)

Vert.x Shell 提供了强大的交互式命令行控制台与诊断终端,支持通过 SSH、Telnet 或网页端连接运行中的 Vert.x 应用实例并执行实时监控与排错。

快速启动 SSH 终端

ShellService service = ShellService.create(vertx,
  new ShellServiceOptions().setSSHOptions(
    new SSHTermOptions()
      .setHost("localhost")
      .setPort(5000)
      .setKeyPairOptions(new JksOptions().setPath("keystore.jks").setPassword("wibble"))
      .setAuthOptions(new ShiroAuthOptions().setType(ShiroAuthRealmType.PROPERTIES))
  )
);
service.start();