1
我的程序是用mac os 10.6.8(erlang 15B01)
寫的,並用鋼筋釋放。鋼筋釋放erlexec錯誤
在我的開發電腦中,當調用rel/app_a/bin/app_a
控制檯時,它運行正常。
Exec: /Users/***/Documents/Project/***/rel/app_a/erts-5.9.1/bin/erlexec
-boot /Users/***/Documents/Project/***/rel/app_a/releases/1/capulet
-mode embedded -config /Users/***/Documents/Project/app_a/rel/app_a/releases/1/sys.config
-args_file /Users/***/Documents/Project/app_a/rel/app_a/releases/1/vm.args -- console
Root: /Users/***/Documents/Project/app_a/rel/capulet
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0]
[hipe] [kernel-poll:false]
我有焦油"rel/app_a"
目錄,然後將焦油成運行在Debian(二郎版本R1501)目標主機。
當調用rel/app_a/bin/app_a console
,它顯示錯誤消息如下:
Exec: /home/***/app_a/erts-5.9.1/bin/erlexec -boot /home/***/app_a/releases/1/app_a
-mode embedded -config /home/***/app_a/releases/1/sys.config
-args_file /home/***/app_a/releases/1/vm.args -- console
Root: /home/***/app_a
/home/***/app_a/erts-5.9.1/bin/erlexec: 4: Syntax error: ")" unexpected
什麼意思erlexec:4
這裏?如何解決問題?
當前sys.config
[
%% SASL config
{sasl, [
{sasl_error_logger, {file, "log/sasl-error.log"}},
{errlog_type, error},
{error_logger_mf_dir, "log/sasl"}, % Log directory
{error_logger_mf_maxbytes, 10485760}, % 10 MB max file size
{error_logger_mf_maxfiles, 5} % 5 files max
]}
].
vm.args
## Name of the node
-name [email protected]
## Cookie for distributed erlang
-setcookie RIOEAGZQBQKWHSMMXOPW
## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
## (Disabled by default..use with caution!)
##-heart
## Enable kernel poll and a few async threads
##+K true
##+A 5
## Increase number of concurrent ports/sockets
##-env ERL_MAX_PORTS 4096
## Tweak GC to run more often
##-env ERL_FULLSWEEP_AFTER 10
我嘗試在實驗sys.config文件創建語法錯誤。所以我認爲這不是由sys.config語法錯誤引起的。
Crash dump was written to: erl_crash.dump
could not start kernel pid (application_controller)
(error in config file "/Users/***/Documents/Project/app_a/rel/app_a/releases/1/sys.config"
(10): syntax error before: ']')
我檢查了這兩個文件並沒有發現語法錯誤。這兩個文件在上面發佈。 –
我已經試驗過你的想法並在上面發佈了結果。 –