[按]
还是多看看这个
http://erlangdisplay.iteye.com/category/53509,实战性强,俺是标题党。
理解Erlang中的各类配置文件和资源文件,对分布式系统的部署和运维有重要意义。参见Erlang/OTP System Principles.
source file
.erl
.hrl
configure file
node application configure file
# erl -sname cp1 -config <ConfigFile>
%% no tty
[
{kernel, [
{start_boot_server, true},
%% {boot_server_slaves, ['127.0.0.1']},
{error_logger, {file, "/home/gj/error_logs/debug.log"}}
]},
{sasl, [
%% minimise shell error logging
%% {sasl_error_logger, false},
%% only report errors
%% {errlog_type, all},
%% define the parameters of the rotating log
%% the log file directory
%% {error_logger_mf_dir,"/home/gj/error_logs"},
%% # bytes per logfile
%% {error_logger_mf_maxbytes,10485760}, % 10 MB
%% maximum number of
%% {error_logger_mf_maxfiles, 10}
]}
].
resource file
.app
{application, efs, [
{description, "EFS Distributed File System"},
{vsn, "0.0.1"},
{modules, [
efs_app,
efs_sup,
libefs,
efs,
efs_mds,
efs_mds_model,
efs_mds_chkpool,
efs_mds_diskpool,
efs_cds,
efs_cds_model,
efs_test
]},
{registered, [efs_sup, efs, efs_mds]},
{applications, [kernel, stdlib]},
{mod, {efs_app, [mds,{cds,4},client]}},
{start_phases, []}
]}.
.rel
script file
.script
.boot
upgrade file
.appup
.relup