10. Inet Configuration
10 Inet Configuration
10.1 Introduction
This section describes how the Erlang runtime system is configured for IP communication. It also explains how you can configure it for your needs by a configuration file. The information is primarily intended for users with special configuration needs or problems. There is normally no need for specific settings for Erlang to function properly on a correctly IP-configured platform.
When Erlang starts up it reads the Kernel variable inetrc
, which, if defined, is to specify the location and name of a user configuration file. Example:
% erl -kernel inetrc '"./cfg_files/erl_inetrc"'
Notice that the use of an .inetrc
file, which was supported in earlier Erlang/OTP versions, is now obsolete.
A second way to specify the configuration file is to set environment variable ERL_INETRC登录查看完整内容