Erlang集群管理系统中遇到的一些小问题

erlang节点之间的文件传输

#file:read_file/write_file

XML解析

#xmerl

Erlang中字符串的处理

#string

#io_lib

#re

#lists

whenIstarterlintheterminalasroot,thereisawarning:

'nodisplaynameandno$DISPLAYenvironmentvariable'.

#exportDISPLAY=:0.0

1>tv:start().

<0.34.0>

2>Noprotocolspecified

Applicationinitializationfailed:couldn'tconnecttodisplay":0"

Noprotocolspecified

Errorinstartupscript:couldn'tconnecttodisplay":0"

whileexecuting

"load/usr/lib/libtk8.4.so.0Tk"

("packageifneeded"script)

invokedfromwithin

"packagerequireTk8.3"

(file"/usr/local/lib/erlang/lib/gs-1.5.11/priv/gstk.tcl"line7)

TrymergingXauthorityfilefirst:

>sudoxauth-f/root/.Xauthoritymerge.Xauthority

Nowyoucanrunguiasroot

>sudogui

相关推荐