⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 erl_script.sam.in

📁 OTP是开放电信平台的简称
💻 IN
字号:
## erl_script.sam# Sample VxWorks script to start Erlang## Note! This is not a complete or ready to use VxWorks startup script,# rather an example of what You should add to Your existing startupscript# to execute the erlang emulator at boot.## When writing Your own script to start erlang, the paths to# the binaries have to be changed to reflect your system.# # The ROOTDIR variable should not point to a ftp or rcp filesystem unless # the erlang machine is run in embedded mode. Loading of modules # is far to slow if the erlang binaries are not placed on a real filesystem # like NFS or any type of local filesystem.# ## Load modules### First load and initiate the reclaim facility#ld </home/tornado/erlvxworks/erts-%VSN%/bin/reclaim.oreclaim_init()## Now load the runtime system#ld </home/tornado/erlvxworks/erts-%VSN%/bin/jamld </home/tornado/erlvxworks/erts-%VSN%/bin/erl.execld </home/tornado/erlvxworks/erts-%VSN%/bin/erl_iold </home/tornado/erlvxworks/erts-%VSN%/bin/vxcallld </home/tornado/erlvxworks/erts-%VSN%/bin/heartld </home/tornado/erlvxworks/erts-%VSN%/bin/epmd## Stack sizes#putenv "ERLSTACKSIZE=100000"putenv "ERLPORTSTACKSIZE=100000"## Activate Round robin scheduling#kernelTimeSlice 1## Distribution# The VxWorks machines host namesethostname "sb001", 5# Erlangs internal resolverputenv "ERLRESCONF=/home/tornado/erlvxworks/erts-%VSN%/bin/resolv.conf"## Start epmd (for distribution)#start_epmd "-daemon"## Misc environment variables#putenv "ROOTDIR=/home/tornado/erlvxworks"putenv "BINDIR=/home/tornado/erlvxworks/erts-%VSN%/bin"putenv "PROGNAME=erl"putenv "HOME=/home/tornado/erlvxworks"## Set heart no reboot mode (to make heart reboot - #  don't define HEART_DONT_REBOOT at all)# putenv "HEART_DONT_REBOOT=1"# To get fullsweep garbage collection on systems with# very limited memory, set ERL_FULLSWEEP_AFTER to "0":# putenv "ERL_FULLSWEEP_AFTER=0"## Start Erlang/OTP#start_erl "-oldshell -heart -sname vxnode -setcookie switch -boot start_sasl"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -