访问 Apache Solr
在浏览器打开: http://<SERVER_IP>:8983
登录:
- 用户名:
user - Password: stored inside
/root/.cloudzy-creds
获取凭据:
cat /root/.cloudzy-creds
端口与服务
默认暴露端口:
0.0.0.0:8983- Solr Web UI / API127.0.0.1:9983- Internal ZooKeeper communication127.0.0.1:7983- Internal Solr communication
重要文件与目录
- Solr Install Path:
/opt/solr - 凭据文件:
/root/.cloudzy-creds - Solr Config:
/etc/default/solr.in.sh - Solr Service:
/etc/systemd/system/solr.service - Solr Data Directory:
/var/solr
管理 Apache Solr
检查服务状态:
systemctl status solr
重启 Solr:
systemctl restart solr
查看日志:
journalctl -u solr -f
停止 Solr:
systemctl stop solr
启动 Solr:
systemctl start solr
注意事项
- Apache Solr 作为 systemd 服务运行
- Solr is exposed on port
8983 - ZooKeeper listens locally on port
9983 - Solr startup configuration can be customized in
/etc/default/solr.in.sh - 修改配置文件或安全设置后重启 Solr
- 使用 Solr 内置身份验证系统启用基本认证
- 需要 Java (OpenJDK) 并自动安装