2014-03-26 122 views

回答

1

this comment on the bug

現在我介紹了一個 '主機' 屬性默認爲 'localhost' 的

所以,當你啓動服務器時,它默認爲本地主機(與以前一樣),但您可以選擇告訴它在所有地址上收聽,如果您想要:

$ 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/ 

而且用netstat然後你可以看到,它的運行在0.0.0.0:

$ netstat -nl | grep 99 
tcp6  0  0 :::9998     :::*     LISTEN  
+0

這工作完全 - 我做了看補丁文件的命令行選項的錯誤,錯過了你的筆記中評論部分。 – cmos