code:get_path() 加载路径的设定值
code:add_patha() 增加目录到开头
code:add_pathz()
q() 退出 = init:stop()
enlang:halt()
init:get_argument(home)
命令行执行erlang语句:
erl -eval ‘io:format(“memory:~p~n”,[erlang:memory(total)]’ -noshell -s init stop.
-noshell 启动erlang但关闭shell
-s hello start 运行hello:start()
编译模块时可以直接export所有的接口,方便调试
-compile(export_all)