From 5524072ea400438493d6124cdd6bb5ee3040f22a Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Tue, 3 Mar 2015 22:32:30 +0800 Subject: [PATCH] Update and rename 43.1. Connecting to the remote shell to 43.1. Connecting to the remote shell.md --- .../43.1. Connecting to the remote shell | 0 .../43.1. Connecting to the remote shell.md | 20 +++++++++++++++++++ 2 files changed, 20 insertions(+) delete mode 100644 V. Spring Boot Actuator: Production-ready features/43.1. Connecting to the remote shell create mode 100644 V. Spring Boot Actuator: Production-ready features/43.1. Connecting to the remote shell.md diff --git a/V. Spring Boot Actuator: Production-ready features/43.1. Connecting to the remote shell b/V. Spring Boot Actuator: Production-ready features/43.1. Connecting to the remote shell deleted file mode 100644 index e69de29..0000000 diff --git a/V. Spring Boot Actuator: Production-ready features/43.1. Connecting to the remote shell.md b/V. Spring Boot Actuator: Production-ready features/43.1. Connecting to the remote shell.md new file mode 100644 index 0000000..5103c62 --- /dev/null +++ b/V. Spring Boot Actuator: Production-ready features/43.1. Connecting to the remote shell.md @@ -0,0 +1,20 @@ +### 43.1. 连接远程shell + +默认情况下,远程shell监听端口2000以等待连接。默认用户名为`user`,密码为随机生成的,并且在输出日志中会显示。如果应用使用Spring Security,该shell默认使用[相同的配置](http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-security)。如果不是,将使用一个简单的认证策略,你可能会看到类似这样的信息: +```java +Using default password for shell access: ec03e16c-4cf4-49ee-b745-7c8255c1dd7e +``` +Linux和OSX用户可以使用`ssh`连接远程shell,Windows用户可以下载并安装[PuTTY](http://www.putty.org/)。 +```shell +$ ssh -p 2000 user@localhost + +user@localhost's password: + . ____ _ __ _ _ + /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ +( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ + \\/ ___)| |_)| | | | | || (_| | ) ) ) ) + ' |____| .__|_| |_|_| |_\__, | / / / / + =========|_|==============|___/=/_/_/_/ + :: Spring Boot :: (v1.3.0.BUILD-SNAPSHOT) on myhost +``` +输入help可以获取一系列命令的帮助。Spring boot提供`metrics`,`beans`,`autoconfig`和`endpoint`命令。