erlang 自定义dns文件和Hosts文件
2016-02-18 15:12
197 查看
参考文档
http://erlang.org/doc/apps/erts/inet_cfg.html使用方法
在命令行加入参数erl -sname my_node -kernel inetrc '"./cfg_files/erl_inetrc"'
inetrc文件配置
%% -- ERLANG INET CONFIGURATION FILE -- %% read the hosts file {file, hosts, "/etc/hosts"}. %% add a particular host {host, {134,138,177,105}, ["finwe"]}. %% do not monitor the hosts file {hosts_file, ""}. %% read and monitor nameserver config from here {resolv_conf, "/usr/local/etc/resolv.conf"}. %% enable EDNS {edns,0}. %% disable caching {cache_size, 0}. %% specify lookup method {lookup, [file, dns]}.
相关文章推荐
- PCA、LDA的参考学习、理解、混乱、清晰的过程
- PPT嵌入字体的方法
- 怎么限制Google自己主动调整字体大小
- 算法基础:整数排序问题(连续整数仅仅保留首尾两个数字)
- RSA算法原理
- 解决pod search出来的库不是最新
- php代码缓存问题
- MySQL数据库的优化
- Cef重要概念
- C语言二分查找法
- android—binder进程间通讯流程分析
- RxJava 操作符分类
- Android Day02 --java基础
- Android中Video的三种播放方式的实现
- matlab画甘特图
- 系统负载测试工具-LoadRunner
- #2015年总结
- android studio下“HAX is not working...”问题的解决
- putty远程连接工具使用
- Cef应用资源布局