Home >Database >Mysql Tutorial >Erlang入门:构建application练习2

Erlang入门:构建application练习2

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 15:17:431251browse

1、定义application回调模块 2、定义application资源描述文件 资源描述文件名要和application名称一致,并且后缀为.app, 如:bank.app 然后把资源描述文件放在erlang能搜索到的路径下 3、启动application application:start(bank). 和练习1相比,这里的appl

1、定义application回调模块


2、定义application资源描述文件

资源描述文件名要和application名称一致,并且后缀为.app,
如:bank.app
然后把资源描述文件放在erlang能搜索到的路径下


3、启动application

application:start(bank). 

和练习1相比,这里的application启动之前,
不需要自己调用application:load/1加载application
启动application监控器查看application是否启动:

appmon:start().

Erlang入门:构建application练习2

已经看到bank了,kernel是默认会启动的。

4、停止application

application:stop(bank).

5、卸载application

application:unload(bank).

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn