这是我的MakeFile
run:
ERL_LIBS=apps:deps
erl +K true +A 2 +a 16 +e 10 +d -name my_server@127.0.0.1 -pa ebin -pa apps/*/ebin -pa deps/*/ebin -boot start_sasl -s my_server -sasl errlog_type error
运行make run
ERL_LIBS=apps:deps
erl +K true +A 2 +a 16 +e 10 +d -name my_server@127.0.0.1 -pa ebin -pa apps/*/ebin -pa deps/*/ebin -boot start_sasl -s my_server -sasl errlog_type error
Erlang R15B (erts-5.9) [source] [smp:4:4] [async-threads:2] [hipe] [kernel-poll:true]
Eshell V5.9 (abort with ^G)
(my_server@127.0.0.1)1> Erlang has closed
/usr/local/lib/erlang/lib/os_mon-2.2.8/priv/bin/memsup: Erlang has closed.
make: *** [run] Error 1
如何找到无法启动应用程序的原因?
答案 0 :(得分:1)
当mem_sup关闭时会显示“Erlang已关闭”错误,系统停止时这是完全正常的行为。
my_server最有可能出现问题。