Jena Fuseki 服务器命令未找到
Posted
技术标签:
【中文标题】Jena Fuseki 服务器命令未找到【英文标题】:Jena Fuseki Server command not found 【发布时间】:2012-06-23 21:47:22 【问题描述】:我是 Jena Fuseki 服务器的新手。根据链接http://jena.apache.org/documentation/serving_data/index.html,在我的Fedora机器上下载并解压后,我尝试使用命令行启动服务器。
在Fuseki目录下,命令应该是这样的:fuseki-server --update --mem /ds,却报错:fuseki-server command not found。
有谁知道问题出在哪里?谢谢。
【问题讨论】:
如果您找到了解决方案,并且看起来您已经找到了,您应该将其发布为答案并将其标记为已接受。目前,我已复制您的解决方案并将其发布为(社区 wiki)答案,并将其从问题中删除。 【参考方案1】:这是以an edit to the question 发布的,但实际上是一个答案。
一些同事帮我解决了这个问题。这是 Linux 的问题,而不是 Fuseki 的问题。该错误表示系统不知道在哪里找到fuseki-server,所以你必须把它放在PATH上,或者指定命令所在的位置,例如:
/opt/jena-fuseki-0.2.2/fuseki-server --update --mem /ds
【讨论】:
【参考方案2】:它对我有用。也许您可以阅读下面的序列,看看您做了什么不同的事情:
[~]
ian@ian-desktop $ cd /tmp
[/tmp]
ian@ian-desktop $ mkdir fuseki-test
[/tmp]
ian@ian-desktop $ cd fuseki-test
[/tmp/fuseki-test]
ian@ian-desktop $ wget http://www.apache.org/dist/jena/binaries/jena-fuseki-0.2.2-distribution.tar.gz
--2012-06-21 17:04:46-- http://www.apache.org/dist/jena/binaries/jena-fuseki-0.2.2-distribution.tar.gz
Resolving www.apache.org (www.apache.org)... 192.87.106.229, 140.211.11.131, 2001:610:1:80bc:192:87:106:229
Connecting to www.apache.org (www.apache.org)|192.87.106.229|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9183962 (8.8M) [application/x-gzip]
Saving to: `jena-fuseki-0.2.2-distribution.tar.gz'
100%[==========================================================>] 9,183,962 783K/s in 11s
2012-06-21 17:04:58 (780 KB/s) - `jena-fuseki-0.2.2-distribution.tar.gz' saved [9183962/9183962]
[/tmp/fuseki-test]
ian@ian-desktop $ tar -xvzf jena-fuseki-0.2.2-distribution.tar.gz
jena-fuseki-0.2.2/fuseki-server.jar
jena-fuseki-0.2.2/LICENSE
jena-fuseki-0.2.2/NOTICE
jena-fuseki-0.2.2/ReleaseNotes.txt
jena-fuseki-0.2.2/DEPENDENCIES
jena-fuseki-0.2.2/s-update
... more ....
jena-fuseki-0.2.2/fuseki-server
[/tmp/fuseki-test]
ian@ian-desktop $ cd jena-fuseki-0.2.2/
[/tmp/fuseki-test/jena-fuseki-0.2.2]
ian@ian-desktop $ ./fuseki-server --update --mem /ds
17:05:55 INFO Server :: Dataset: in-memory
17:05:55 INFO Server :: Dataset path = /ds
17:05:55 INFO Server :: Fuseki 0.2.2 2012-06-13T14:59:26+0100
17:05:55 INFO Server :: Jetty 7.x.y-SNAPSHOT
17:05:55 INFO Server :: Started 2012/06/21 17:05:55 BST on port 3030
^C[/tmp/fuseki-test/jena-fuseki-0.2.2]
ian@ian-desktop $
【讨论】:
以上是关于Jena Fuseki 服务器命令未找到的主要内容,如果未能解决你的问题,请参考以下文章