epmd的启动参数3

和epmd相关的环境变量
  • ERL_EPMD_RELAXED_COMMAND_CHECK
  • ERL_EPMD_PORT
  • ERL_EPMD_ADRESS

相关的使用如下:
[liufan@liufan ~]$ export ERL_EPMD_RELAXED_COMMAND_CHECK=TRUE
[liufan@liufan ~]$ export ERL_EPMD_PORT=4445
[liufan@liufan ~]$ export ERL_EPMD_ADDRESS=192.168.1.110,192.168.0.108
[liufan@liufan ~]$ erl -sname a
Erlang R16B01 (erts-5.10.2) [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V5.10.2  (abort with ^G)
(a@liufan)1> 


[liufan@liufan ~]$ ps -ef | grep epmd
liufan    6307  5905  0 05:28 pts/1    00:00:00 /usr/local/lib/erlang/erts-5.10.2/bin/beam.smp -- -root /usr/local/lib/erlang -progname erl -- -home /home/liufan -epmd_port 4445 -- -sname a
liufan    6313     1  0 05:28 ?        00:00:00 /usr/local/lib/erlang/erts-5.10.2/bin/epmd -daemon
liufan    6343  5959  0 05:29 pts/2    00:00:00 grep epmd
[liufan@liufan ~]$ netstat -an | grep 4445
tcp        0      0 127.0.0.1:4445              0.0.0.0:*                   LISTEN      
tcp        0      0 192.168.0.108:4445          0.0.0.0:*                   LISTEN      
tcp        0      0 192.168.1.110:4445          0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:4445              127.0.0.1:34417             ESTABLISHED 
tcp        0      0 127.0.0.1:34417             127.0.0.1:4445              ESTABLISHED 
[liufan@liufan ~]$ epmd -port 4445 -names
epmd: up and running on port 4445 with data:
name a at port 60968
[liufan@liufan ~]$ epmd -port 4445 -stop a
STOPPED
[liufan@liufan ~]$ epmd -port 4445 -names
epmd: up and running on port 4445 with data:
[liufan@liufan ~]$ ps -ef | grep epmd
liufan    6307  5905  0 05:28 pts/1    00:00:00 /usr/local/lib/erlang/erts-5.10.2/bin/beam.smp -- -root /usr/local/lib/erlang -progname erl -- -home /home/liufan -epmd_port 4445 -- -sname a
liufan    6313     1  0 05:28 ?        00:00:00 /usr/local/lib/erlang/erts-5.10.2/bin/epmd -daemon
liufan    6361  5959  0 05:30 pts/2    00:00:00 grep epmd
[liufan@liufan ~]$ epmd -port 4445 -kill
Killed
[liufan@liufan ~]$ ps -ef | grep epmd
liufan    6307  5905  0 05:28 pts/1    00:00:00 /usr/local/lib/erlang/erts-5.10.2/bin/beam.smp -- -root /usr/local/lib/erlang -progname erl -- -home /home/liufan -epmd_port 4445 -- -sname a
liufan    6364  5959  0 05:30 pts/2    00:00:00 grep epmd
[liufan@liufan ~]$ 

你可能感兴趣的:(erlang,epmd)