diff --git a/CORE-DUMP.md b/CORE-DUMP.md index b945350..ce75f2c 100644 --- a/CORE-DUMP.md +++ b/CORE-DUMP.md @@ -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文件。