找不到Jena Fuseki Server命令

时间:2012-06-21 15:47:43

标签: sparql semantics jena fuseki

我是Jena Fuseki服务器的新手。根据链接http://jena.apache.org/documentation/serving_data/index.html,在我下载并在我的Fedora机器上解压缩之后,我尝试使用命令行启动服务器。

在Fuseki目录下,命令应该是这样的: fuseki-server --update --mem / ds ,但是它给出了错误:找不到fuseki-server命令< /强>

有谁知道问题是什么?感谢。

2 个答案:

答案 0 :(得分:1)

它对我有用。也许你可以阅读下面的序列,看看你做了哪些不同的事情:

[~] 
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 $

答案 1 :(得分:1)

  

这是an edit to the question发布的,但实际上是答案。

一些同事帮助我解决了这个问题。这是一个Linux问题,而不是Fuseki问题。该错误意味着系统不知道在哪里找到 fuseki-server ,因此您必须将其放在PATH上,或指定命令所在的位置,例如:

/opt/jena-fuseki-0.2.2/fuseki-server --update --mem /ds