WebTool minor Problems
Erlang's observation tools such as Crashdump,appmon,cover have two different interfaces: GS (WX) and the Web. These tool follow a certain interface, the user can expand these functions, so that can be integrated into the toolbar or webtool system. It is convenient to use the WebTool online, because it is a web interface, easy to cross the firewall or something.
WebTool uses the following interface:
However, the default WebTool at startup, the default is to listen only on the 127.0.0.1:8888 network, unable to view the status on other machines, which is inconvenient to use.
Demo under:
Erlang R15B03 (erts-5.9.3.1) 1 [64-bit] [ smp:16 :16] [async- threads:0 ] [hipe] [kernel- poll:false ] |
Eshell V5 .9.3.1 (abort with ^G) |
WebTool is available at http:// localhost:8888 / |
Coarse research under the webtool of the startup code, you can bypass this problem in the following way, note that the following three parameters are required, the specific value of the user's own:
Webtool:start (Standard_path, [{bind_address, {0,0,0,0}},{port, 8888},{server_name, "test"}]).
By default this is all interface snooping:
$ hostname-i
192.168.2.10
Look at the specific network card address can be accessed to the service, in this case: http://192.168.2.10:8888
Enjoy the fun!
WebTool minor Problems