WebTool minor Problems

Source: Internet
Author: User

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:

$ erl
ErlangR15B03(erts-5.9.3.1) 1 [64-bit] [smp:16:16] [async-threads:0] [hipe] [kernel-poll:false]
EshellV5.9.3.1  (abort with ^G)
1> webtool:start().
WebToolis available at http://localhost:8888/
Orhttp://127.0.0.1:8888/
{ok,<0.35.0>}
2>

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.