Updated CORE DUMP (markdown)

master
Apex Liu 2017-06-23 22:30:36 +08:00
parent 9e80f510d6
commit ce26e9ed15
1 changed files with 5 additions and 5 deletions

@ -4,9 +4,9 @@
```shell
$> su
$> service teleport stop core
$> /etc/init.d/teleport stop core
$> ulimit -c unlimited
$> /usr/local/eom/teleport/bin/tp_core -d start
$> /usr/local/teleport/bin/tp_core -d start
```
**注意,请勿关闭此远程连接,直到崩溃发生!**
@ -14,9 +14,9 @@ $> /usr/local/eom/teleport/bin/tp_core -d start
命令解释:
- `su` 以管理员身份登录因为运行服务需要root权限
- `service teleport stop core` 停止teleport核心服务
- `/etc/init.d/teleport stop core` 停止teleport核心服务
- `ulimit -c unlimited` 临时打开系统的core dump功能使得程序崩溃时记录核心转储数据
- `/usr/local/eom/teleport/bin/tp_core -d start` 运行core服务程序但不是以守护进程的方式运行因此程序不会在后台运行可以在控制台上看到大量的日志输出需要一直保留这个远程登录连接不要退出。
- `/usr/local/teleport/bin/tp_core -d start` 运行core服务程序但不是以守护进程的方式运行因此程序不会在后台运行可以在控制台上看到大量的日志输出需要一直保留这个远程登录连接不要退出。
然后像平常一样使用TELEPORT的各项功能直到发生崩溃。此时应该能够看到控制台上最后输出的是(core dumped),然后在
/usr/local/eom/teleport/bin 目录下应该能够看到core.xxxx文件这个文件就是用来进行崩溃分析的core dump文件。
/usr/local/teleport/bin 目录下应该能够看到core.xxxx文件这个文件就是用来进行崩溃分析的core dump文件。