The environment is archlinux running in virtual machine.
Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]
Interactive Elixir (1.0.2) - press Ctrl+C to exit (type h() ENTER for help)
If I run erl
or iex
, this will take like 8~9 seconds to start.
But if I run erl -name xxx
or iex --name xxx
, there is no delay at all.
While erl -sname xxx
or iex --sname xxx
not working, takes 8 seconds or more.
So the question is: Is there any way to skip the delay?
I just realized that my erl
prompt shows ([email protected])1>
Turns out I skipped the step that add hostname to /etc/hosts
when installing Archlinux.
So I add that line, prompt shows 1>
now, and starts instant. Problem solved.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With