Ensure epmd started
问题 I have an eunit test that generates a unique node name and starts distribution: {A,B,C} = now(), Nodename = list_to_atom(lists:flatten(io_lib:format( "test-~b-~b-~b@localhost", [A, B, C]))), {ok, _} = net_kernel:start([Nodename, shortnames]), This works fine as long as a distributed Erlang node has been running on the machine at some previous time, and thus epmd is still running, but on the build server I can't assume that's the case. I solved the problem by adding this to my test: _ = os:cmd