简体   繁体   English

在LAMP服务器上使用Jetty进行Solr - 管理页面访问问题

[英]Solr with Jetty on LAMP server - Admin page access issue

I have Solr with its default Jetty that came with example directory installed on Linux server which has apache2 as its web server . 我有Solr的默认Jetty ,它带有安装在Linux服务器上的示例目录其中apache2作为其Web服务器

Now, within the same private LAN, when I open a browser and type in http://<ip-address>:8983/solr works ONLY when I do port forwarding otherwise it doesn't work . 现在,在同一个私有LAN中,当我打开浏览器并键入http://<ip-address>:8983/solr 在我进行端口转发时工作,否则它不起作用 I am not sure what could be the problem? 我不确定会出现什么问题? Please note this installation has been done on a remote server in a hosting environment for production deployment and I am a beginner wrt deployment stuff. 请注意,此安装已在托管环境中的远程服务器上完成,以进行生产部署,我是初学者部署的东西。

You can use the jetty.host parameter during startup to allow direct access to Jetty. 您可以在启动期间使用jetty.host参数以允许直接访问Jetty。

The -D option of the java command can be used with the followin syntax: java命令的-D选项可以使用以下语法:

java -Djetty.host=0.0.0.0 -jar start.jar

In this way Jetty can be reached from all the hosts. 通过这种方式,可以从所有主机到达Jetty。

However this is not the ideal setup IMHO. 然而,这不是理想的设置恕我直言。 I prefere to setup Jetty to listen only on localhost, implementing the client with another frontend server which listen on port 80. If you want to implement the frontend on another server you can use iptables to limit the incoming connection, dropping everything on the 8983 port if the IP is different from the one of your frontend server. 我倾向于设置Jetty只在localhost上监听,用另一个前端服务器实现客户端,该服务器监听端口80.如果你想在另一台服务器上实现前端,你可以使用iptables来限制传入连接,丢弃8983端口上的所有内容如果IP与您的前端服务器不同。

This image depicts my preferred setup for a LAMP stack includin SOLR: 此图像描述了我对包含SOLR的LAMP堆栈的首选设置:

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM