質問

All, I've downloaded tika-server v1.5 hoping to access the server from our network other than "localhost". There was an issue addressed in TIKA-1196 (link below). Am I missing something by assuming that by downloading tika-server.jar (v1.5) I would pick up the fix for this?

https://issues.apache.org/jira/i#browse/TIKA-1196?jql=project%20%3D%20TIKA%20AND%20fixVersion%20%3D%201.5

役に立ちましたか?

解決

From this comment on the bug:

for now I've introduced a 'host' property defaulted to 'localhost'

So, when you start the server up, it defaults to localhost (as before), but you can optionally tell it to listen on all addresses if you want:

$ java -jar tika-server-1.5.jar -host 0.0.0.0
INFO: Starting Tikaserver 1.5
INFO: Starting Tika Server Apache Tika 1.5
INFO: Setting the server's publish address to be http://0.0.0.0:9998/

And with netstat you can then see that it's running on 0.0.0.0:

$ netstat -nl | grep 99
tcp6       0      0 :::9998                 :::*                    LISTEN    
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top