aka*_*nuk 5 erlang webserver n2o
我已经尝试在wf_core.erl和中更改端口sys.config,但现在它甚至无法初始化webserver.
检查是否有东西使用80端口 - 它是免费的.
您应该安装authbind,以防您需要运行80端口.创建文件
/etc/authbind/byport/80
Run Code Online (Sandbox Code Playgroud)
并设置rwx访问权限,您需要在其下运行.然后执行
authbind --deep ./start.sh
Run Code Online (Sandbox Code Playgroud)
PS你只需要在sys.config中指定端口.在web_sup中你应该使用
wf:config(port)
Run Code Online (Sandbox Code Playgroud)
如https://github.com/synrc/n2o_sample/blob/master/src/web_sup.erl#L17
你不应该触摸wf_core,它的默认端口是8000,它是从config使用端口.