erlang 命令行参数文档
分为: emulator flag, flag, plain arguments.
链接为: http://erlang.org/doc/man/erl.html
application中参数的获取和配置
获取api
application运行时可以通过调用application:get_env(ParamKey)得到当前application配置的参数值。get_env(Application, Par)得到其它application的配置参数值
配置方式
- 命令行中erl -applicationName paramName paramValue, 优先级最高
- 命令行erl -config sys.config 通过config文件进行配置,优先级次高
- application个资源文件,优先级最低