spring_reference/V. Spring Boot Actuator/43. Monitoring and manageme...

532 B
Raw Blame History

43. 使用远程shell来进行监控和管理

Spring Boot支持集成一个称为'CRaSH'的Java shell。你可以在CRaSH中使用ssh或telnet命令连接到运行的应用。为了启用远程shell支持你只需添加spring-boot-starter-remote-shell的依赖:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-remote-shell</artifactId>
 </dependency>

如果想使用telnet访问你还需添加对org.crsh:crsh.shell.telnet的依赖。