I am a complete beginner with Linux. I have ssh access (I think that's what it is) to a linux server. I have a program called SpagoBI installed on the server, and it needs to be accessed through localhost:8080 in a browser. I have changed the xml file that points to localhost to the ip of the server but I still can't access it. Does anyone have any suggestions on how to access the localhost through the ip?
3 に答える
SpagoBI が localhost で応答するように構成されている場合 (デフォルト)、Windows で Putty を使用して、ローカル システムから SpagoBI システムへの SSH トンネルを作成できます。(ローカル システムの) ローカル 8080 を SpagoBI システムの 8080 にリダイレクトする場合、SSH トンネルが稼働している間に、http://localhost:8080/SpagoBIのようにリモート SpagoBI サーバーにアクセスできます。
さて...特定のFQDNSで応答するようにSpagoBIサーバーを正しく構成するには...Tomcat server.xmlを変更する必要があります
Tomcat config ディレクトリに移動し、server.xml を編集します。これらは、変更する必要がある 2 つのエントリです。次に tomcat を再起動し、FQDNS と URL を使用して SpagoBI へのアクセスを試みます。
<Environment name="spagobi_service_url" type="java.lang.String" value="http://spagobi.example.com:8080/SpagoBI"/>
<Environment name="spagobi_host_url" type="java.lang.String" value="http://spagobi.example.com:8080"/>
再起動後、 http: //spagobi.example.com: 8080/SpagoBI のように SpagoBI にアクセスしてみて ください。
私が理解したと思います。リモートの Windows マシンに「localhost:8080」と書いていますか? その場合、localhost の代わりに SpagoBI のアドレスを記述する必要があります。すでに行っている場合は、SpagoBI のトラブルシューティングでhttp://serverIP:8080/SpagoBI/servlet/AdapterHTTP?PAGE=LoginPage&NEW_SESSION=TRUEを試す必要があることがわかります。とにかく、ファイアウォールで 8080 ポートが開いていることを確認します。サーバー上の GUI にアクセスできる場合は、ブラウザでhttp://localhost:8080が実際に少なくともローカルで動作していることを確認します。