Ubuntu16.04之Solr7.7.1环境搭建
Solr的版本一直都在变化(比如之前我在博客园写的关于Linux安装solr,那个solr为7.6版本,此时已经不在了)。
大家可以去这个地址下载对应的版本:http://mirror.bit.edu.cn/apache/lucene/solr/
1.下载solr(我是进入到/usr/local目录下执行这个命令的)
wget http://mirror.bit.edu.cn/apache/lucene/solr/7.7.1/solr-7.7.1.tgz
2.解压
tar -xzvf solr-7.7.1.tgz
3.进入bin目录执行该脚本
cd solr-7.7.1/bin
./install_solr_service.sh ../../solr-7.7.1.tgz
如果没有按照3这样做,就可能出现如下报错:
ERROR: Must specify the path to the Solr installation archive, such as solr-5.0.0.tgz Usage: install_solr_service.sh <path_to_solr_distribution_archive> [OPTIONS] The first argument to the script must be a path to a Solr distribution archive, such as solr-5.0.0.tgz (only .tgz or .zip are supported formats for the archive) Supported OPTIONS include: -d Directory for live / writable Solr files, such as logs, pid files, and index data; defaults to /var/solr -i Directory to extract the Solr installation archive; defaults to /opt/ The specified path must exist prior to using this script. -p Port Solr should bind to; default is 8983 -s Service name; defaults to solr -u User to own the Solr files and run the Solr process as; defaults to solr This script will create the specified user account if it does not exist. -f Upgrade Solr. Overwrite symlink and init script of previous installation. -n Do not start Solr service after install, and do not abort on missing Java NOTE: Must be run as the root user
4.成功的标识
接下来就可以通过http://IP地址:8983 访问到solr后台管理界面,如下图所示:
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· [AI/GPT/综述] AI Agent的设计模式综述