Blog.csdn.net/jackybay/ar…
Start the Erlang run-time system
\
Support for multiple ARGs….
\
erl <arguments>\
\
+ CMD generally resolves to emulator flag
-cmd is a common flag. Get_arguments. And of course there are special uses…
–cmd… Plain ARgs, called plain args, will not be parsed for erL use, but you can get it by init:get_plain_arguments…
Of course, CMD… You can also write -extra…
\
There is nothing to say about commands, just know what they do, and then do the source study notes of ERTS, which will also be mentioned.
-Application par val\
Set the values of the app parameters
-arg_file FileName
Read parameters from a file
-async_shell_start
Asynchronous startup shell
-boot file
Specify the boot file xxx.boot\
-boot_var Var Dir
Dynamic custom boot script directory \
-code_path_cache
Startup code cache
-compile Mod1 Mod2… \
Compiling modules…
-config config
Specify the app config file \
-connect_all false
Undistributed
-cookie cookie
Now use -setcookie instead of \
-detached
Start a shell-separate ERTS, known as daemons, using -noInput.
-emu_args
Print emu args, mainly for debugging \
-env Var Val
Set the OS environment \ for erTS
-eval expr
Dynamic parsing, dynamic execution of statement \
-extra
Already mentioned \
-heart
Start the heartbeat
-hidden
Start as a hidden node
-host Host
Specifies the IP addr of the node
-id Id
Specifying a Node ID
-init_debug \
Print Some boot information for the boot script
-loader Loader
The type of erl_prim_loader is efILE and INET. One local and one network can be used to analyze erTS drivers.
-instr (EMU flag)
Run a custom ERTS, and own +P… No difference
-make \
Make in erL supports the make policy of ERL
-man \
For Unix/Linux, see the help manual
-mode interactive | embedded
The loading order of code, the former supports dynamic loading, the latter must complete loading.
-name && sname
Node name \
-noshell
Unix support
-noinput && nostick\
Inputting is not supported and some modules are specified as sticky to prevent damage to the built-in kernel&&stdlib modules.
-oldshell
Support for using older versions of shell\
-pa && -pz dir….
Used to load code, specify the code directory, remember beam file or something. \
-remsh Node
Connect to remote nodes. This is useful for running nodes. \
-rsh Program
Start a remote Node
-run Mod Func ….
To execute modules, functions, etc., start\ is called by default if func is not specified
-s Mod…
As above, this is mainly used when you write a bat or sh script to dynamically launch your app, as many servers do.
-setcookie
In front of the reference
-smp [enable | auto | disable]
Specifies whether erTS supports SMP
-version +V
Print out the version of erTS \
\
As for other EMU flags, I will sort them out with the INIT process of ERL later.
\