Solr的与码头LAMP服务器上 - 管理页面访问问题 [英] Solr with Jetty on LAMP server - Admin page access issue

查看:122
本文介绍了Solr的与码头LAMP服务器上 - 管理页面访问问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的的Solr其默认码头与示例目录来在Linux上安装服务器具有的Apache2作为web服务器

I have Solr with its default Jetty that came with example directory installed on Linux server which has apache2 as its web server.

现在,同样的专用局域网,当我打开浏览器,键入 HTTP中://< IP-地址>:8983 / Solr的 ONLY 当我做端口转发,否则它不能正常工作。我不知道可能是什么问题呢?请注意,这安装已在生产部署托管环境中的远程服务器上完成,我是一个初学者WRT部署的东西。

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. 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.

推荐答案

您可以在启动时使用 jetty.host 参数允许码头的直接访问。

You can use the jetty.host parameter during startup to allow direct access to Jetty.

java命令的-d选项可与跟随着的语法使用:

The -D option of the java command can be used with the followin syntax:

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

在这样的码头,从所有主机便可抵达。

In this way Jetty can be reached from all the hosts.

然而,这并非理想的设置恕我直言。我prefere设置码头仅监听localhost上,与如果你要实现你可以使用iptables来限制传入连接另一台服务器上的前端它们侦听端口80的另一个前端服务器实现客户机上,丢弃一切在8983端口,如果IP是从前端服务器的不同。

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.

这形象描绘了的LAMP堆栈INCLUDIN SOLR我的preferred设置:

This image depicts my preferred setup for a LAMP stack includin SOLR:

这篇关于Solr的与码头LAMP服务器上 - 管理页面访问问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆