Update and rename 43. Monitoring and management using a remote shell to 43. Monitoring and management using a remote shell.md

master
qibaoguang 2015-03-03 22:31:44 +08:00
parent b04be5ef97
commit b21a0974f7
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
### 43. 使用远程shell来进行监控和管理
Spring Boot支持集成一个称为'CRaSH'的Java shell。你可以在CRaSH中使用ssh或telnet命令连接到运行的应用。为了启用远程shell支持你只需添加`spring-boot-starter-remote-shell`的依赖:
```xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-remote-shell</artifactId>
</dependency>
```
**注**如果想使用telnet访问你还需添加对`org.crsh:crsh.shell.telnet`的依赖。