**已关闭。**此问题为not about programming or software development。目前不接受答复。
这个问题似乎不是关于a specific programming problem, a software algorithm, or software tools primarily used by programmers的。如果你认为这个问题与another Stack Exchange site的主题有关,你可以留下评论,解释在哪里可以回答这个问题。
4天前关闭。
Improve this question
我在Rocky Linux 8.5上安装了Solr,当我指向我的IP地址时:8983我只得到一个Unable to connect Firefox can’t establish a connection to the server at x.x.x.x:8983
。我错过了什么?
[root@cromarty var]# systemctl status solr
● solr.service - LSB: Controls Apache Solr as a Service
Loaded: loaded (/etc/rc.d/init.d/solr; generated)
Active: active (exited) since Tue 2023-05-23 14:55:08 BST; 1h 15min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 409614)
Memory: 0B
CGroup: /system.slice/solr.service
May 23 14:55:03 cromarty.glasgow.ac.uk systemd[1]: Starting LSB: Controls Apache Solr as a Service...
May 23 14:55:04 cromarty.glasgow.ac.uk su[1534]: (to solr) root on none
May 23 14:55:04 cromarty.glasgow.ac.uk su[1534]: pam_unix(su-l:session): session opened for user solr by (uid=0)
May 23 14:55:07 cromarty.glasgow.ac.uk solr[1526]: [110B blob data]
May 23 14:55:07 cromarty.glasgow.ac.uk solr[1526]: Started Solr server on port 8983 (pid=2524). Happy searching!
May 23 14:55:08 cromarty.glasgow.ac.uk solr[1526]: [14B blob data]
May 23 14:55:08 cromarty.glasgow.ac.uk systemd[1]: Started LSB: Controls Apache Solr as a Service.
[root@cromarty var]# firewall-cmd --list-all
public (active)
ports: 443/tcp 80/tcp 8983/tcp
[root@cromarty var]# ss -altnp | grep 8983
LISTEN 0 50 [::ffff:127.0.0.1]:8983 *:* users:(("java",pid=2524,fd=48))
1条答案
按热度按时间af7jpaap1#
原来是因为
/etc/default/solr.in.sh
中的SOLR_JETTY_HOST
变量。当未注解并设置为0.0.0.0
时,Solr接受来自每个人的连接。