当erlang在分离模型中时,错误日志在哪里?

当erlang在分离模型中时,错误日志在哪里?,erlang,Erlang,添加分离时,找不到错误信息,例如“无法设置长节点名” Crash dump was written to: erl_crash.dump Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodi

添加分离时,找不到错误信息,例如“无法设置长节点名”

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{k
root@test:~#
root@test:~#
root@test:~#
root@test:~#
root@test:~#
root@test:~#
root@test:~# erl -name test -detached
root@test:~#
root@test:~#
root@test:~# ag Please erl_crash.dump
-分离的
启动从系统控制台分离的Erlang运行时系统。用于运行守护进程和后台进程。暗示 -没有输入


而startnig erl将所有日志发送到标准输出。只有在应用程序启动后,才能使用重定向到文件或任何其他自定义日志处理程序。 即使在内核应用程序启动之前发生的错误(例如,在您的情况下),您也无法通过任何选项将其记录到文件中。 为此,您可以使用(linux)或(windows)

您可以使用以下方法连接到上面启动的erl

to_erl /tmp/
log_dir将包含run_erl.log和erlang.log.1日志。如果未在erlang.log.N中正确启动,则可以看到错误消息

有关详细信息,请查看以上链接

run_erl [-daemon] pipe_dir/ log_dir "exec command [command_arguments]"

run_erl -daemon /tmp/ /home/abc "exec erl -name test"
to_erl /tmp/