本文介绍了启动Inets httpd时如何获取有关错误的更多信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以以下代码开始了Inets http:

I started Inets http with:

> inets:start(httpd, [{port, 8060}, {server_name, "myserver"},
> {server_root, "/Users/jonas/code"},
> {document_root, "/Users/jonas/code/mydocs"},
> {bind_address, {192, 168, 2, 5}}]).
{error,inets_not_started}

所以我唯一的错误信息是 {error,inets_not_started} 。我有什么办法可以获取有关发生问题的详细信息?

so the only error information I have is {error,inets_not_started}. Is there any way I can get more information on what went wrong?

推荐答案

首先,要解决您的问题,只需开始应用程序(错误原因表明它未启动),作者:

First, to solve your problem just start inets application (error reason indicates it is not started) by:

inets:start().

第二,通常从提高了Erlang / OTP错误/崩溃的可读性-但这不是这种情况。

Second, in general starting SASL application improves a bit readability of Erlang/OTP errors/crashes - but it is not the case here.

这篇关于启动Inets httpd时如何获取有关错误的更多信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-07 10:07