`
weitao1026
  • 浏览: 1043699 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

shell脚本写了一键安装solr

 
阅读更多

shell脚本写了一键安装solr,本篇我们来看下如何一键安装zookeeper,散仙最近是最自动化安装脚本上迷了,咱们也不会复杂的,先从简单的开始联手,下面进入正题:

安装条件:
1,确保你的JAVA环境是OK的,JDK什么的
2,在root根目录下有一个zookeeper下好的压缩包
3,安装脚本默认放在root目录下
4,所有的安装目录,及压缩包命名,都在本脚本的前面几行定义,散仙为了方便写的比较固定,需要灵活的朋友们,可以做成动态的路径
5,确认上面的4步是ok的,下面就可以运行这个脚本了
6,安装完成后会在最后的状态里面打印出zk的运行情况



下面看散仙的安装日志:

Java代码 复制代码 收藏代码
  1. zookeeper-3.4.5/contrib/zkfuse/src/event.cc  
  2. zookeeper-3.4.5/contrib/zkfuse/src/event.h  
  3. zookeeper-3.4.5/contrib/zkfuse/src/log.cc  
  4. zookeeper-3.4.5/contrib/zkfuse/src/log.h  
  5. zookeeper-3.4.5/contrib/zkfuse/src/log4cxx.properties  
  6. zookeeper-3.4.5/contrib/zkfuse/src/Makefile.am  
  7. zookeeper-3.4.5/contrib/zkfuse/src/mutex.h  
  8. zookeeper-3.4.5/contrib/zkfuse/src/thread.cc  
  9. zookeeper-3.4.5/contrib/zkfuse/src/thread.h  
  10. zookeeper-3.4.5/contrib/zkfuse/src/zkadapter.cc  
  11. zookeeper-3.4.5/contrib/zkfuse/src/zkadapter.h  
  12. zookeeper-3.4.5/contrib/zkfuse/src/zkfuse.cc  
  13. zookeeper-3.4.5/contrib/rest/zookeeper-3.4.5-rest.jar  
  14. zookeeper-3.4.5/contrib/loggraph/build.xml  
  15. zookeeper-3.4.5/contrib/loggraph/src/  
  16. zookeeper-3.4.5/contrib/loggraph/zookeeper-3.4.5-loggraph.jar  
  17. zookeeper-3.4.5/contrib/loggraph/src/java/  
  18. zookeeper-3.4.5/contrib/loggraph/src/java/org/  
  19. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/  
  20. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/  
  21. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/  
  22. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/FilterException.java  
  23. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/FilterOp.java  
  24. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/  
  25. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/FilterParser.java  
  26. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/JsonGenerator.java  
  27. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/Log4JEntry.java  
  28. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/Log4JSource.java  
  29. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/LogEntry.java  
  30. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/LogIterator.java  
  31. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/LogServer.java  
  32. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/LogSkipList.java  
  33. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/LogSource.java  
  34. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/MeasureThroughput.java  
  35. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/MergedLogSource.java  
  36. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/RandomAccessFileReader.java  
  37. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/  
  38. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/TransactionEntry.java  
  39. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/TxnLogSource.java  
  40. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/FileLoader.java  
  41. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/Fs.java  
  42. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/GraphData.java  
  43. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/JsonServlet.java  
  44. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/NumEvents.java  
  45. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/StaticContent.java  
  46. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/Throughput.java  
  47. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/AndOp.java  
  48. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/Arg.java  
  49. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/EqualsOp.java  
  50. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/GreaterThanOp.java  
  51. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/LessThanOp.java  
  52. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/NotOp.java  
  53. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/NumberArg.java  
  54. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/OrOp.java  
  55. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/StringArg.java  
  56. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/SymbolArg.java  
  57. zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/XorOp.java  
  58. zookeeper-3.4.5/contrib/fatjar/build.xml  
  59. zookeeper-3.4.5/contrib/fatjar/conf/  
  60. zookeeper-3.4.5/contrib/fatjar/src/  
  61. zookeeper-3.4.5/contrib/fatjar/zookeeper-3.4.5-fatjar.jar  
  62. zookeeper-3.4.5/contrib/fatjar/src/java/  
  63. zookeeper-3.4.5/contrib/fatjar/src/java/org/  
  64. zookeeper-3.4.5/contrib/fatjar/src/java/org/apache/  
  65. zookeeper-3.4.5/contrib/fatjar/src/java/org/apache/zookeeper/  
  66. zookeeper-3.4.5/contrib/fatjar/src/java/org/apache/zookeeper/util/  
  67. zookeeper-3.4.5/contrib/fatjar/src/java/org/apache/zookeeper/util/FatJarMain.java  
  68. zookeeper-3.4.5/contrib/fatjar/conf/mainClasses  
  69. zookeeper-3.4.5/conf/configuration.xsl  
  70. zookeeper-3.4.5/conf/log4j.properties  
  71. zookeeper-3.4.5/conf/zoo_sample.cfg  
  72. zookeeper-3.4.5/bin/README.txt  
  73. zookeeper-3.4.5/bin/zkCleanup.sh  
  74. zookeeper-3.4.5/bin/zkCli.cmd  
  75. zookeeper-3.4.5/bin/zkCli.sh  
  76. zookeeper-3.4.5/bin/zkEnv.cmd  
  77. zookeeper-3.4.5/bin/zkEnv.sh  
  78. zookeeper-3.4.5/bin/zkServer.cmd  
  79. zookeeper-3.4.5/bin/zkServer.sh  
  80. 解压完毕!  
  81. 生成myid文件.......  
  82. 写入zoo.cfg文件成功!  
  83. zk进程号: 2575  
  84. 检测到zookeeper进程存在,已关闭!  
  85. 开始启动zk.....  
  86. JMX enabled by default  
  87. Using config: /root/izk/zookeeper/bin/../conf/zoo.cfg  
  88. Starting zookeeper ... bin/zkServer.sh: line 103: [: /tmp/zookeeper: binary operator expected  
  89. STARTED  
  90. 启动完成....查看zookeeper状态  
  91. JMX enabled by default  
  92. Using config: /root/izk/zookeeper/bin/../conf/zoo.cfg  
  93. Mode: standalone  
  94. [root@ganglia ~]# jps  
  95. 2693 Jps  
  96. 2651 QuorumPeerMain  
  97. [root@ganglia ~]#   
zookeeper-3.4.5/contrib/zkfuse/src/event.cc
zookeeper-3.4.5/contrib/zkfuse/src/event.h
zookeeper-3.4.5/contrib/zkfuse/src/log.cc
zookeeper-3.4.5/contrib/zkfuse/src/log.h
zookeeper-3.4.5/contrib/zkfuse/src/log4cxx.properties
zookeeper-3.4.5/contrib/zkfuse/src/Makefile.am
zookeeper-3.4.5/contrib/zkfuse/src/mutex.h
zookeeper-3.4.5/contrib/zkfuse/src/thread.cc
zookeeper-3.4.5/contrib/zkfuse/src/thread.h
zookeeper-3.4.5/contrib/zkfuse/src/zkadapter.cc
zookeeper-3.4.5/contrib/zkfuse/src/zkadapter.h
zookeeper-3.4.5/contrib/zkfuse/src/zkfuse.cc
zookeeper-3.4.5/contrib/rest/zookeeper-3.4.5-rest.jar
zookeeper-3.4.5/contrib/loggraph/build.xml
zookeeper-3.4.5/contrib/loggraph/src/
zookeeper-3.4.5/contrib/loggraph/zookeeper-3.4.5-loggraph.jar
zookeeper-3.4.5/contrib/loggraph/src/java/
zookeeper-3.4.5/contrib/loggraph/src/java/org/
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/FilterException.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/FilterOp.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/FilterParser.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/JsonGenerator.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/Log4JEntry.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/Log4JSource.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/LogEntry.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/LogIterator.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/LogServer.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/LogSkipList.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/LogSource.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/MeasureThroughput.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/MergedLogSource.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/RandomAccessFileReader.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/TransactionEntry.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/TxnLogSource.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/FileLoader.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/Fs.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/GraphData.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/JsonServlet.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/NumEvents.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/StaticContent.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/servlets/Throughput.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/AndOp.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/Arg.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/EqualsOp.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/GreaterThanOp.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/LessThanOp.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/NotOp.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/NumberArg.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/OrOp.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/StringArg.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/SymbolArg.java
zookeeper-3.4.5/contrib/loggraph/src/java/org/apache/zookeeper/graph/filterops/XorOp.java
zookeeper-3.4.5/contrib/fatjar/build.xml
zookeeper-3.4.5/contrib/fatjar/conf/
zookeeper-3.4.5/contrib/fatjar/src/
zookeeper-3.4.5/contrib/fatjar/zookeeper-3.4.5-fatjar.jar
zookeeper-3.4.5/contrib/fatjar/src/java/
zookeeper-3.4.5/contrib/fatjar/src/java/org/
zookeeper-3.4.5/contrib/fatjar/src/java/org/apache/
zookeeper-3.4.5/contrib/fatjar/src/java/org/apache/zookeeper/
zookeeper-3.4.5/contrib/fatjar/src/java/org/apache/zookeeper/util/
zookeeper-3.4.5/contrib/fatjar/src/java/org/apache/zookeeper/util/FatJarMain.java
zookeeper-3.4.5/contrib/fatjar/conf/mainClasses
zookeeper-3.4.5/conf/configuration.xsl
zookeeper-3.4.5/conf/log4j.properties
zookeeper-3.4.5/conf/zoo_sample.cfg
zookeeper-3.4.5/bin/README.txt
zookeeper-3.4.5/bin/zkCleanup.sh
zookeeper-3.4.5/bin/zkCli.cmd
zookeeper-3.4.5/bin/zkCli.sh
zookeeper-3.4.5/bin/zkEnv.cmd
zookeeper-3.4.5/bin/zkEnv.sh
zookeeper-3.4.5/bin/zkServer.cmd
zookeeper-3.4.5/bin/zkServer.sh
解压完毕!
生成myid文件.......
写入zoo.cfg文件成功!
zk进程号: 2575
检测到zookeeper进程存在,已关闭!
开始启动zk.....
JMX enabled by default
Using config: /root/izk/zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... bin/zkServer.sh: line 103: [: /tmp/zookeeper: binary operator expected
STARTED
启动完成....查看zookeeper状态
JMX enabled by default
Using config: /root/izk/zookeeper/bin/../conf/zoo.cfg
Mode: standalone
[root@ganglia ~]# jps
2693 Jps
2651 QuorumPeerMain
[root@ganglia ~]# 


注意散仙的是单机安装,如果想要分布式安装也是非常简单的,用for循环加上ssh,远程执行,再对myid和zoo.cfg稍作配置即可。

散仙上面运行的是多次,运行的,大于第一次运行的,会在后面检测如果已经有zk的进程,会杀死,重启,单机版本,zk成功的标志就是显示状态为standalone

脚本如下:

Shell代码
  1. zkpath=/root/zookeeper-3.4.5.tar.gz  
  2. ipath=/root/izk  
  3. ipaddress="192.168.46.21"  
  4.   
  5. if  [ ! -e $ipath  ] ; then  
  6.   
  7. echo "路径不存在,创建安装路径!"  
  8.   
  9. mkdir  $ipath  
  10. else    
  11.   
  12. rm -rf $ipath"/"*  
  13. echo "路径存在,已清空完毕!"  
  14.   
  15. fi  
  1. echo "解压zk到指定目录下!"  
  2. sleep 2  
  3.   
  4. tar -zxvf $zkpath -C $ipath  
  5.   
  6.   
  7. echo "解压完毕!"  
  8.   
  9.   
  10. cd $ipath  
  11. mv zookeeper-3.4.5 zookeeper  
  12.   
  13. confpath=$ipath"/zookeeper"  
  14.   
  15. cd $confpath  
  16.   
  17. mkdir data   
  18.   
  19. cd data  
  20. echo "1" >> myid  
  21. echo "生成myid文件......."  
  22.   
  23.   
  24.   
  25. cd $confpath"/conf"  
  26.   
  27. mv zoo_sample.cfg zoo.cfg  
  28.   
  29. echo "tikcTime=2000" >> zoo.cfg  
  30. echo "dataDir=$confpath/data" >> zoo.cfg  
  31. echo "server.1=$ipaddress:2887:3887" >> zoo.cfg  
  32.   
  33. echo "写入zoo.cfg文件成功!"  
  34.   
  35. sleep 3  
  36.   
  37. pid=`ps -ef | grep  zookeeper | gawk '{ print $2}' | head -n 1`  
  38.   
  39. echo "zk进程号: $pid"  
  40.   
  41. sleep 2  
  42.   
  43. #检查进程号是否为空  
  44. if [ ! -z $pid  ] ; then  
  45.   
  46. kill -9 $pid  
  47.   
  48. echo "检测到zookeeper进程存在,已关闭!"  
  49.   
  50. fi  
  51.   
  52.   
  53.   
  54. echo "开始启动zk....."  
  55.   
  56. cd ..  
  57.   
  58. bin/zkServer.sh start  
  59.   
  60. echo "启动完成....查看zookeeper状态"  
  61.   
  62. bin/zkServer.sh status  
分享到:
评论

相关推荐

    一键安装伪分布式zk集群-solr集群脚本

    标题中的“一键安装伪分布式zk集群-solr集群脚本”指的是使用自动化脚本来部署Zookeeper集群和Solr集群,这种部署方式简化了传统手动安装的复杂过程,适合初学者和快速测试环境。Zookeeper是一个分布式协调服务,而...

    ubuntu下安装solr4.9详细介绍

    文档中详细介绍了如何在ubuntu下面安装solr-4.9.0,以及在安装过程中出现的问题和解决办法

    Linux上Solr的启动方式

    (1)借助X Shell上传solr的安装包到/usr/local/目录下,使用 tar -zxvf命令进行解压.  (2)使用内置的Jetty来启动Solr服务器只需要在example目录下,执行start.jar程序即可,我们可以直接执行命令:java –jar ...

    ambari离线安装solr所需文件

    7. **安装Solr**:在Ambari的管理界面中,选择离线安装模式,然后添加并启动Solr服务。Ambari会根据你的配置和定义文件,在每个节点上安装和配置Solr。 8. **验证安装**:安装完成后,可以通过Ambari的监控功能检查...

    solr安装到Linux系统

    在Linux系统上如何搭建了solr搜索服务,同时运用到项目中

    在Tomcat7下安装solr的步骤

    在Tomcat7下安装solr的步骤 在Tomcat7下安装solr的步骤

    使用docker 部署solr

    centos7 环境 安装docker 并在docker 中部署solr 并使用

    在macOS上安装Solr并索引MySQL_在macOS上安装Solr并索引MySQL.zip

    在macOS上安装Solr并索引MySQL_在macOS上安装Solr并索引MySQL

    CentOS7.2下安装Solr7.5和使用笔记

    1.下载solr7.5.tar,拷贝到CentOS解压 2.启动solr 3.开启该端口防火墙 4.控制界面访问 5.创建一个核心(又名索引)(此处测试名称:core1) 6.配置数据库读取信息:DataImportHandler 7.重启solr在core1导入数据库...

    Ubuntu16.04安装部署solr7

    ### Ubuntu16.04上Solr7的安装与部署详解 #### 一、环境准备与配置 在开始部署Solr7之前,首先确保已经具备了以下基础环境: 1. **虚拟机环境**:本教程使用的是VMware12.0作为虚拟机平台,操作系统为Ubuntu16.04...

    solr安装部署文档

    Solr 安装部署文档 Solr 是一个基于 Lucene 的搜索服务器,提供了强大的全文搜索功能。下面是基于 Solr 5.5.5 的安装部署文档,包含 Solr 导入 Oracle 数据库的步骤。 Solr 安装部署 1. 下载 Solr 5.5.5,地址:...

    solr安装与配置

    ### Solr安装与配置知识点详解 #### 一、Solr简介 Solr是一款开源的、高性能的全文搜索引擎,广泛应用于企业级搜索系统中。它基于Lucene开发,并提供了丰富的功能和扩展性,支持多种数据源索引和检索,能够轻松地...

    solr课件还有安装原件

    在本套课件中,我们将深入探讨Solr的核心概念、安装配置以及Ik分词器的使用。 首先,让我们从"solr.docx"开始。这可能是一个包含Solr基础教程的文档,涵盖了Solr的基本概念,如索引、查询、优化和集群配置。Solr的...

    solr7.4集群安装

    Solr 7.4 集群安装是一个关键的IT任务,涉及到分布式搜索和数据分析的基础设施建设。Apache Solr是一款开源的企业级搜索平台,能够处理大量数据并提供快速、高效的全文检索服务。在Solr 7.4版本中,它引入了多项改进...

    solr安装和介绍

    - **bin**:存放 Solr 的运行脚本。 - **contrib**:扩展 jar 包,用于增强 Solr 的功能。 - **dist**:包含 build 过程中产生的 war 和 jar 文件,以及相关的依赖文件。 - **docs**:Solr 的 API 文档。 - **...

    solr4.9安装使用手册

    在这个版本中,安装和配置过程可能会有所不同,因此在学习Solr时,确保查阅对应版本的文档是非常重要的。 Apache Solr 的官方网站(http://wiki.apache.org/solr/)提供最全面和最新的文档,虽然这些文档通常是英文...

    最新版linux solr-8.8.2.tgz

    在 Linux 上安装 Solr 8.8.2 需要遵循以下步骤: 1. **下载与解压**: 首先,你需要从 Apache 官方网站下载 `solr-8.8.2.tgz` 文件。完成下载后,使用 `tar` 命令解压文件: ``` tar -zxvf solr-8.8.2.tgz ``` ...

Global site tag (gtag.js) - Google Analytics