1.当我尝试使用以下方式运行我的应用程序时:
# ./rebar clean compile generate
# rel/master/bin/master console
我收到以下错误:
application: app_name
exited:{shutdown,{app_name}, start, [normal, []]}}
type:permanent
{"kernel pid terminated", application_controler, "{application_start_failure,app_name
..........
所以我无法启动我的应用程序。
2. 此外,在构建发布之后
# rel.... start
# rel.... stop
将导致错误:“节点 master@127.0.0.1 未响应 pings”
尽管
# rel.... stop <- the same error as above
# rel.... start
# rel.... stop <- is fine (outputs "ok")
应用结构:
deps ebin rebar rebar.config src rel
rebar.config
{erl_first_files, []}.
{cover_enabled, true}.
{erl_opts, [debug_info]}.
{sub_dirs, ["rel"]}.
{deps_dir, ["deps]}.
{deps, [some_stable_modules_from_github]}.
reltool.config(来自rel
文件夹)
{sys, [
{lib_dirs, ["../..", "../deps"]},
{rel, "master", "1",
[app_name,
kernel,
stdlib,
stdlib,
sasl,
some_stable_modules]},
{rel, "start_clean", "", [kernel, stdlib]},
{boot_rel, "master"},
{profile, embedded},
{excl_sys_filters, ["^bin/.*", "^erts.*/bin/{dialyzer|typer)"])},
{app, sasl, ["incl_cond", include]},
{app, hipe, ["incl_cond", exclude]},
{app, some_stable_module, ["incl_cond", include]},
{app, master, ["incl_cond", include]}
]}.
{target_dir, "master"}.
{overlay, [
{mkdir, "log/sasl"},
{copy, "files/erl", "\{\{erts_vsn\}\}/bin/erl"},
{copy, "files/nodetool", "\{\{erts_vsn\}\}/bin/nodetool"},
{copy, "files/master", "bin/master"},
{copy, "files/app.config", "etc/app.config"},
{copy, "files/vm.args", "etc/vm.args"}
]}.
两个问题:
为什么我可以使用 启动我的应用程序
rel/master/bin/master console
?为什么我收到“节点未响应 ping”错误?
谢谢!
PS。一般来说,它是使用钢筋创建的基本应用程序。我刚刚添加了几个模块来使用 mongodb。