我正在尝试在Openshift中设置Fuseki 2实例。我尝试使用Diy盒式磁带,并按照Openshift的要求运行Fuseki 2作为绑定到8080端口的独立服务器。
这是用来服务器的命令:
./fuseki-server --port=8080
不幸的是,端口绑定存在问题,但它不起作用:
[2016-03-17 05:16:16] Server INFO Fuseki 2.3.1 2015-12-08T09:24:07+0000
[2016-03-17 05:16:16] Config INFO FUSEKI_HOME=/var/lib/openshift/56e9715489f5cfd91e00001a/app-root/runtime/repo/fuseki-2.3.1
[2016-03-17 05:16:16] Config INFO FUSEKI_BASE=/var/lib/openshift/56e9715489f5cfd91e00001a/app-root/runtime/repo/fuseki-2.3.1/run
[2016-03-17 05:16:16] Servlet INFO Initializing Shiro environment
[2016-03-17 05:16:16] Config INFO Shiro file: file:///var/lib/openshift/56e9715489f5cfd91e00001a/app-root/runtime/repo/fuseki-2.3.1/run/shiro.ini
[2016-03-17 05:16:17] Server ERROR SPARQLServer: Failed to start server: Permiso denegado
java.net.SocketException: Permiso denegado
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:326)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:244)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:384)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.apache.jena.fuseki.jetty.JettyFuseki.start(JettyFuseki.java:120)
at org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.exec(FusekiCmd.java:359)
at jena.cmd.CmdMain.mainMethod(CmdMain.java:93)
at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
at org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(FusekiCmd.java:95)
at org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:60)
我也尝试过只监听localhost接口./fuseki-server --port=8080 --localhost
,但结果相同。