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

Erlang入门:构建application练习2

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:17:43
Original
1251 people have browsed it

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). 
Copy after login

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

appmon:start().
Copy after login

Erlang入门:构建application练习2

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

4、停止application

application:stop(bank).
Copy after login

5、卸载application

application:unload(bank).
Copy after login

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template