Are you running as root? Linux will usually make you have root permissions to run on 80.<br><br><div class="gmail_quote">On Fri, May 6, 2011 at 9:51 PM, Barco You <span dir="ltr"><<a href="mailto:barcojie@gmail.com">barcojie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear All,<br><br>After installing Nitrogen webserver and when startup it with "$nitrogen console", I can visit the localhost successfully with "<a href="http://localhost:8000" target="_blank">http://localhost:8000</a>", but I hope to use the default http port 80. When I edit the file /etc/inets_httpd.erleven as following, I got a crash error as below. Could you please instruct me how to change the port correctly? thanks!<br>
<br><br>[<br> {port, 80},<br> {bind_address, {0,0,0,0}},<br> {server_name, "nitrogen"},<br> {server_root, "./"},<br> {document_root, "./site/static"},<br> {error_log, "./log/inets.log"}, <br>
{modules, [nitrogen_inets]},<br><br> {mime_types, [<br> {"css", "text/css"}, <br> {"js", "text/javascript"}, <br> {"html", "text/html"}<br>
]}<br>].<br><br>=ERROR REPORT==== 7-May-2011::10:49:19 ===<br>
Failed initiating web server: <br>
undefined<br>
{{listen,eacces},<br>
{child,undefined,<br>
{httpd_acceptor,{0,0,0,0},80},<br>
{httpd_acceptor,start_link,<br>
[<0.62.0>,ip_comm,<br>
{0,0,0,0},<br>
80,httpd_conf__0_0_0_0__80,15000]},<br>
permanent,1000,worker,<br>
[httpd_acceptor]}}<br><br>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br>