solr集群搭建

部分信息是直接复制的Linux安装Solr教程

可以先参考Linux安装Solr教程在进行集群搭建

下面开始搭建Solr集群

1).安装zookeeper-集群

2).solr集群安装

[root@localhost ~]# cp apache-tomcat-7.0.47.tar.gz /usr/local/solr-cloud/
[root@localhost ~]# cd /usr/local/solr-cloud/
[root@localhost solr-cloud]# tar zxf apache-tomcat-7.0.47.tar.gz 
[root@localhost solr-cloud]# ll
总用量 8076
drwxr-xr-x.  9 root root     160 12月 25 15:46 apache-tomcat-7.0.47
-rw-r--r--.  1 root root 8234674 12月 25 15:45 apache-tomcat-7.0.47.tar.gz
-rwxr--r--.  1 root root     108 12月 25 15:27 start-all.sh
drwxr-xr-x. 11 1000 1000    4096 12月 25 15:02 zookeeper01
drwxr-xr-x. 11 root root    4096 12月 25 15:14 zookeeper02
drwxr-xr-x. 11 root root    4096 12月 25 15:20 zookeeper03
-rw-r--r--.  1 root root   15962 12月 25 15:31 zookeeper.out
[root@localhost solr-cloud]# rm -rf apache-tomcat-7.0.47.tar.gz 
[root@localhost solr-cloud]# ll
总用量 32
drwxr-xr-x.  9 root root   160 12月 25 15:46 apache-tomcat-7.0.47
-rwxr--r--.  1 root root   108 12月 25 15:27 start-all.sh
drwxr-xr-x. 11 1000 1000  4096 12月 25 15:02 zookeeper01
drwxr-xr-x. 11 root root  4096 12月 25 15:14 zookeeper02
drwxr-xr-x. 11 root root  4096 12月 25 15:20 zookeeper03
-rw-r--r--.  1 root root 15962 12月 25 15:31 zookeeper.out
[root@localhost solr-cloud]# mv apache-tomcat-7.0.47 tomcat01
[root@localhost solr-cloud]# ll
总用量 32
-rwxr--r--.  1 root root   108 12月 25 15:27 start-all.sh
drwxr-xr-x.  9 root root   160 12月 25 15:46 tomcat01
drwxr-xr-x. 11 1000 1000  4096 12月 25 15:02 zookeeper01
drwxr-xr-x. 11 root root  4096 12月 25 15:14 zookeeper02
drwxr-xr-x. 11 root root  4096 12月 25 15:20 zookeeper03
-rw-r--r--.  1 root root 15962 12月 25 15:31 zookeeper.out
[root@localhost solr-cloud]# 
[root@localhost solr-cloud]# cp -r tomcat01 tomcat02
[root@localhost solr-cloud]# cp -r tomcat01 tomcat03
[root@localhost solr-cloud]# cp -r tomcat01 tomcat04
[root@localhost solr-cloud]# ll
总用量 32
-rwxr--r--.  1 root root   108 12月 25 15:27 start-all.sh
drwxr-xr-x.  9 root root   160 12月 25 15:46 tomcat01
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat02
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat03
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat04
drwxr-xr-x. 11 1000 1000  4096 12月 25 15:02 zookeeper01
drwxr-xr-x. 11 root root  4096 12月 25 15:14 zookeeper02
drwxr-xr-x. 11 root root  4096 12月 25 15:20 zookeeper03
-rw-r--r--.  1 root root 15962 12月 25 15:31 zookeeper.out
[root@localhost solr-cloud]# 
//赋值之前创建的单机版
[root@localhost solr-cloud]# cp -r ../solr/tomcat/webapps/solr/ tomcat01/webapps/
[root@localhost solr-cloud]# cp -r ../solr/tomcat/webapps/solr/ tomcat02/webapps/
[root@localhost solr-cloud]# cp -r ../solr/tomcat/webapps/solr/ tomcat03/webapps/
[root@localhost solr-cloud]# cp -r ../solr/tomcat/webapps/solr/ tomcat04/webapps/
[root@localhost solr-cloud]# 
//修改tomcat端口号
[root@localhost solr-cloud]# vi tomcat01/conf/server.xml 
port="8105"
port="8180"
port="8109"
[root@localhost solr-cloud]# vi tomcat02/conf/server.xml  
port="8205"
port="8280"
port="8209"
[root@localhost solr-cloud]# vi tomcat03/conf/server.xml  
port="8305"
port="8380"
port="8309"
[root@localhost solr-cloud]# vi tomcat04/conf/server.xml  
port="8405"
port="8480"
port="8409"
//赋值单机版solrhome
[root@localhost solr-cloud]# cp -r ../solr/solrhom/ solrhome01
[root@localhost solr-cloud]# cp -r ../solr/solrhom/ solrhome02
[root@localhost solr-cloud]# cp -r ../solr/solrhom/ solrhome03
[root@localhost solr-cloud]# cp -r ../solr/solrhom/ solrhome04
[root@localhost solr-cloud]# ll
总用量 32
drwxr-xr-x.  4 root root    85 12月 25 16:02 solrhome01
drwxr-xr-x.  4 root root    85 12月 25 16:02 solrhome02
drwxr-xr-x.  4 root root    85 12月 25 16:02 solrhome03
drwxr-xr-x.  4 root root    85 12月 25 16:02 solrhome04
-rwxr--r--.  1 root root   108 12月 25 15:27 start-all.sh
drwxr-xr-x.  9 root root   160 12月 25 15:46 tomcat01
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat02
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat03
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat04
drwxr-xr-x. 11 1000 1000  4096 12月 25 15:02 zookeeper01
drwxr-xr-x. 11 root root  4096 12月 25 15:14 zookeeper02
drwxr-xr-x. 11 root root  4096 12月 25 15:20 zookeeper03
-rw-r--r--.  1 root root 15962 12月 25 15:31 zookeeper.out
[root@localhost solr-cloud]# 
//修改配置文件中solrhome
[root@localhost solr-cloud]# vi tomcat01/webapps/solr/WEB-INF/web.xml 
    <env-entry>
       <env-entry-name>solr/home</env-entry-name>
       <env-entry-value>/usr/local/solr/solrhom/</env-entry-value>
       <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
修改为:
    <env-entry>
       <env-entry-name>solr/home</env-entry-name>
       <env-entry-value>/usr/local/solr-cloud/solrhome01/</env-entry-value>
       <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
[root@localhost solr-cloud]# vi tomcat02/webapps/solr/WEB-INF/web.xml  
 <env-entry-value>/usr/local/solr-cloud/solrhome02/</env-entry-value>
[root@localhost solr-cloud]# vi tomcat03/webapps/solr/WEB-INF/web.xml  
<env-entry-value>/usr/local/solr-cloud/solrhome03/</env-entry-value>
[root@localhost solr-cloud]# vi tomcat04/webapps/solr/WEB-INF/web.xml  
<env-entry-value>/usr/local/solr-cloud/solrhome04/</env-entry-value>
[root@localhost solr-cloud]# cd solrhome01
[root@localhost solrhome01]# ll
总用量 12
drwxr-xr-x. 2 root root    6 12月 25 16:02 bin
drwxr-xr-x. 4 root root   71 12月 25 16:02 collection1
-rw-r--r--. 1 root root 2473 12月 25 16:02 README.txt
-rw-r--r--. 1 root root 1715 12月 25 16:02 solr.xml
-rw-r--r--. 1 root root  501 12月 25 16:02 zoo.cfg
[root@localhost solrhome01]# 
[root@localhost solrhome01]# vi solr.xml 
  <solrcloud>
    <str name="host">${host:}</str>
    <int name="hostPort">${jetty.port:8983}</int>
    <str name="hostContext">${hostContext:solr}</str>
    <int name="zkClientTimeout">${zkClientTimeout:30000}</int>
    <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
  </solrcloud>
  修改为:
    <solrcloud>
    //服务器IP
    <str name="host">192.168.25.100</str>
    //tomat端口号
    <int name="hostPort">8180</int>
    <str name="hostContext">${hostContext:solr}</str>
    <int name="zkClientTimeout">${zkClientTimeout:30000}</int>
    <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
  </solrcloud>
[root@localhost solrhome01]# cd ..
[root@localhost solr-cloud]# vi solrhome02/solr.xml 
<str name="host">192.168.25.100</str>
    <int name="hostPort">8280</int>
[root@localhost solr-cloud]# vi solrhome03/solr.xml  
    <str name="host">192.168.25.100</str>
    <int name="hostPort">8380</int>
[root@localhost solr-cloud]# vi solrhome04/solr.xml  
    <str name="host">192.168.25.100</str>
    <int name="hostPort">8480</int>
//solr和zookeeper建立关系
[root@localhost solr-cloud]# cd tomcat01/bin/
[root@localhost bin]# vi catalina.sh 
# ----- Execute The Requested Command -----------------------------------------
#增加这句活
JAVA_OPTS="-DzkHost=192.168.25.100:2181,192.168.25.100:2182,192.168.25.100:2183"
[root@localhost bin]# cd ..
[root@localhost tomcat01]# cd ..
[root@localhost solr-cloud]# vi tomcat02/bin/catalina.sh 
# ----- Execute The Requested Command -----------------------------------------
#增加这句活
JAVA_OPTS="-DzkHost=192.168.25.100:2181,192.168.25.100:2182,192.168.25.100:2183"
[root@localhost solr-cloud]# vi tomcat03/bin/catalina.sh  
# ----- Execute The Requested Command -----------------------------------------
#增加这句活
JAVA_OPTS="-DzkHost=192.168.25.100:2181,192.168.25.100:2182,192.168.25.100:2183"
[root@localhost solr-cloud]# vi tomcat04/bin/catalina.sh  
# ----- Execute The Requested Command -----------------------------------------
#增加这句活
JAVA_OPTS="-DzkHost=192.168.25.100:2181,192.168.25.100:2182,192.168.25.100:2183"
[root@localhost solr-cloud]# cd solrhome01
[root@localhost solrhome01]# cd collection1/
[root@localhost collection1]# cd conf/
[root@localhost conf]# cd 
//将solr配置文件上传到zookeeper
[root@localhost ~]# cd solr-4.10.3
[root@localhost solr-4.10.3]# cd example/
[root@localhost example]# cd scripts/
[root@localhost scripts]# 
[root@localhost scripts]# ll
总用量 0
drwxr-xr-x. 2 root root 63 12月 11 13:21 cloud-scripts
drwxr-xr-x. 2 root root 41 12月 11 13:21 map-reduce
[root@localhost scripts]# cd cloud-scripts/
[root@localhost cloud-scripts]# ll
总用量 12
-rw-r--r--. 1 root root 317 12月  1 2014 log4j.properties
-rw-r--r--. 1 root root 707 12月  1 2014 zkcli.bat
-rwxr-xr-x. 1 root root 485 12月  1 2014 zkcli.sh
[root@localhost cloud-scripts]# ./zkcli.sh -zkhost 192.168.25.100:2181,192.168.25.100:2182,192.168.25.100:2183 -cmd upconfig -confdir /usr/local/solr-cloud/solrhome01/collection1/conf -confname myconf
//如果出现该问题执行下面命令
[root@localhost cloud-scripts]# ./zkcli.sh -zkhost 192.168.25.100:2181,192.168.25.100:2182,192.168.25.100:2183 -cmd upconfig -confdir /usr/local/solr-cloud/solrhome01/collection1/conf -confname myconf
./zkcli.sh:行13: unzip: 未找到命令
错误: 找不到或无法加载主类 org.apache.solr.cloud.ZkCLI
[root@localhost cloud-scripts]# yum install -y unzip zip
//安装完之后,还需要在 /solr-4.10.3/example 目录下执行:
//java -jar start.jar
[root@localhost ~]# cd solr-4.10.3
[root@localhost solr-4.10.3]# cd example/
[root@localhost example]# java -jar start.jar
[root@localhost example]# cd /root/solr-4.10.3/example/scripts/cloud-scripts
[root@localhost cloud-scripts]# ./zkcli.sh -zkhost 192.168.25.100:2181,192.168.25.100:2182,192.168.25.100:2183 -cmd upconfig -confdir /usr/local/solr-cloud/solrhome01/collection1/conf -confname myconf
//查看是否上传成功
[root@localhost cloud-scripts]# cd /usr/local/solr-cloud/zookeeper01
[root@localhost zookeeper01]# 
[root@localhost zookeeper01]# cd bin/
[root@localhost bin]# ll
总用量 36
-rwxr-xr-x. 1 1000 1000  238 2月  20 2014 README.txt
-rwxr-xr-x. 1 1000 1000 1937 2月  20 2014 zkCleanup.sh
-rwxr-xr-x. 1 1000 1000 1049 2月  20 2014 zkCli.cmd
-rwxr-xr-x. 1 1000 1000 1534 2月  20 2014 zkCli.sh
-rwxr-xr-x. 1 1000 1000 1333 2月  20 2014 zkEnv.cmd
-rwxr-xr-x. 1 1000 1000 2696 2月  20 2014 zkEnv.sh
-rwxr-xr-x. 1 1000 1000 1084 2月  20 2014 zkServer.cmd
-rwxr-xr-x. 1 1000 1000 5742 2月  20 2014 zkServer.sh
[root@localhost bin]# 
//连接zookeeper
[root@localhost bin]# ./zkCli.sh -server 192.168.25.100:2182
//查看配置文件命令
[zk: 192.168.25.100:2182(CONNECTED) 0] ls /
[configs, zookeeper]
[zk: 192.168.25.100:2182(CONNECTED) 1] ls /configs
[myconf]
//配置文件已经上传
[zk: 192.168.25.100:2182(CONNECTED) 2] ls /configs/myconf
[admin-extra.menu-top.html, currency.xml, protwords.txt, mapping-FoldToASCII.txt, _schema_analysis_synonyms_english.json, _rest_managed.json, solrconfig.xml, _schema_analysis_stopwords_english.json, stopwords.txt, lang, spellings.txt, mapping-ISOLatin1Accent.txt, admin-extra.html, xslt, synonyms.txt, scripts.conf, update-script.js, velocity, elevate.xml, admin-extra.menu-bottom.html, schema.xml, clustering]
[zk: 192.168.25.100:2182(CONNECTED) 3] quit
Quitting...
2019-12-25 16:51:16,154 [myid:] - INFO  [main:ZooKeeper@684] - Session: 0x26f3bf69d8f0000 closed
2019-12-25 16:51:16,154 [myid:] - INFO  [main-EventThread:ClientCnxn$EventThread@512] - EventThread shut down
[root@localhost bin]# 
[root@localhost bin]# cd ..
[root@localhost zookeeper01]# cd ..
[root@localhost solr-cloud]# ll
总用量 32
drwxr-xr-x.  4 root root    85 12月 25 16:12 solrhome01
drwxr-xr-x.  4 root root    85 12月 25 16:14 solrhome02
drwxr-xr-x.  4 root root    85 12月 25 16:15 solrhome03
drwxr-xr-x.  4 root root    85 12月 25 16:15 solrhome04
-rwxr--r--.  1 root root   108 12月 25 15:27 start-all.sh
drwxr-xr-x.  9 root root   160 12月 25 15:46 tomcat01
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat02
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat03
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat04
drwxr-xr-x. 11 1000 1000  4096 12月 25 15:02 zookeeper01
drwxr-xr-x. 11 root root  4096 12月 25 15:14 zookeeper02
drwxr-xr-x. 11 root root  4096 12月 25 15:20 zookeeper03
-rw-r--r--.  1 root root 16204 12月 25 16:51 zookeeper.out
[root@localhost solr-cloud]# pwd
/usr/local/solr-cloud
[root@localhost solr-cloud]# 
[root@localhost solr-cloud]# vi start-tomcat-all.sh
/usr/local/solr-cloud/tomcat01/bin/startup.sh 
/usr/local/solr-cloud/tomcat02/bin/startup.sh 
/usr/local/solr-cloud/tomcat03/bin/startup.sh 
/usr/local/solr-cloud/tomcat04/bin/startup.sh 
[root@localhost solr-cloud]# cat start-tomcat-all.sh 
/usr/local/solr-cloud/tomcat01/bin/startup.sh 
/usr/local/solr-cloud/tomcat02/bin/startup.sh 
/usr/local/solr-cloud/tomcat03/bin/startup.sh 
/usr/local/solr-cloud/tomcat04/bin/startup.sh 
[root@localhost solr-cloud]# 
[root@localhost solr-cloud]# chmod u+x start-tomcat-all.sh 
[root@localhost solr-cloud]# ll
总用量 36
drwxr-xr-x.  4 root root    85 12月 25 16:12 solrhome01
drwxr-xr-x.  4 root root    85 12月 25 16:14 solrhome02
drwxr-xr-x.  4 root root    85 12月 25 16:15 solrhome03
drwxr-xr-x.  4 root root    85 12月 25 16:15 solrhome04
-rwxr--r--.  1 root root   108 12月 25 15:27 start-all.sh
-rwxr--r--.  1 root root   188 12月 25 16:56 start-tomcat-all.sh
drwxr-xr-x.  9 root root   160 12月 25 15:46 tomcat01
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat02
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat03
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat04
drwxr-xr-x. 11 1000 1000  4096 12月 25 15:02 zookeeper01
drwxr-xr-x. 11 root root  4096 12月 25 15:14 zookeeper02
drwxr-xr-x. 11 root root  4096 12月 25 15:20 zookeeper03
-rw-r--r--.  1 root root 16204 12月 25 16:51 zookeeper.out
[root@localhost solr-cloud]# 
[root@localhost solr-cloud]# ./start-tomcat-all.sh 
Using CATALINA_BASE:   /usr/local/solr-cloud/tomcat01
Using CATALINA_HOME:   /usr/local/solr-cloud/tomcat01
Using CATALINA_TMPDIR: /usr/local/solr-cloud/tomcat01/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /usr/local/solr-cloud/tomcat01/bin/bootstrap.jar:/usr/local/solr-cloud/tomcat01/bin/tomcat-juli.jar
Using CATALINA_BASE:   /usr/local/solr-cloud/tomcat02
Using CATALINA_HOME:   /usr/local/solr-cloud/tomcat02
Using CATALINA_TMPDIR: /usr/local/solr-cloud/tomcat02/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /usr/local/solr-cloud/tomcat02/bin/bootstrap.jar:/usr/local/solr-cloud/tomcat02/bin/tomcat-juli.jar
Using CATALINA_BASE:   /usr/local/solr-cloud/tomcat03
Using CATALINA_HOME:   /usr/local/solr-cloud/tomcat03
Using CATALINA_TMPDIR: /usr/local/solr-cloud/tomcat03/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /usr/local/solr-cloud/tomcat03/bin/bootstrap.jar:/usr/local/solr-cloud/tomcat03/bin/tomcat-juli.jar
Using CATALINA_BASE:   /usr/local/solr-cloud/tomcat04
Using CATALINA_HOME:   /usr/local/solr-cloud/tomcat04
Using CATALINA_TMPDIR: /usr/local/solr-cloud/tomcat04/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /usr/local/solr-cloud/tomcat04/bin/bootstrap.jar:/usr/local/solr-cloud/tomcat04/bin/tomcat-juli.jar
[root@localhost solr-cloud]# 

//查看启动状态
[root@localhost ~]# tail -f /usr/local/solr-cloud/tomcat01/logs/catalina.out 
信息: Deploying web application directory /usr/local/solr-cloud/tomcat01/webapps/solr
log4j:WARN No appenders could be found for logger (org.apache.solr.client.solrj.impl.HttpClientUtil).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
十二月 25, 2019 4:59:07 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8180"]
十二月 25, 2019 4:59:07 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8109"]
十二月 25, 2019 4:59:07 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 85791 ms

[root@localhost ~]# tail -f /usr/local/solr-cloud/tomcat02/logs/catalina.out
信息: Deploying web application directory /usr/local/solr-cloud/tomcat02/webapps/solr
log4j:WARN No appenders could be found for logger (org.apache.solr.client.solrj.impl.HttpClientUtil).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
十二月 25, 2019 4:59:04 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8280"]
十二月 25, 2019 4:59:04 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8209"]
十二月 25, 2019 4:59:04 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 81649 ms

[root@localhost ~]# tail -f /usr/local/solr-cloud/tomcat03/logs/catalina.out
信息: Deploying web application directory /usr/local/solr-cloud/tomcat03/webapps/solr
log4j:WARN No appenders could be found for logger (org.apache.solr.client.solrj.impl.HttpClientUtil).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
十二月 25, 2019 4:59:00 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8380"]
十二月 25, 2019 4:59:00 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8309"]
十二月 25, 2019 4:59:00 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 77749 ms

[root@localhost ~]# tail -f /usr/local/solr-cloud/tomcat04/logs/catalina.out
信息: Deploying web application directory /usr/local/solr-cloud/tomcat04/webapps/solr
log4j:WARN No appenders could be found for logger (org.apache.solr.client.solrj.impl.HttpClientUtil).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
十二月 25, 2019 4:59:04 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8480"]
十二月 25, 2019 4:59:04 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8409"]
十二月 25, 2019 4:59:04 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 81547 ms

//关闭tomcat配置文件
[root@localhost solr-cloud]# vi shutdown-tomcat-all.sh
./tomcat01/bin/shutdown.sh 
./tomcat02/bin/shutdown.sh 
./tomcat03/bin/shutdown.sh 
./tomcat04/bin/shutdown.sh 
[root@localhost solr-cloud]# chmod u+x shutdown-tomcat-all.sh 
[root@localhost solr-cloud]# ll
总用量 40
-rwxr--r--.  1 root root   112 12月 25 17:12 shutdown-tomcat-all.sh
drwxr-xr-x.  4 root root    85 12月 25 16:12 solrhome01
drwxr-xr-x.  4 root root    85 12月 25 16:14 solrhome02
drwxr-xr-x.  4 root root    85 12月 25 16:15 solrhome03
drwxr-xr-x.  4 root root    85 12月 25 16:15 solrhome04
-rwxr--r--.  1 root root   108 12月 25 15:27 start-all.sh
-rwxr--r--.  1 root root   188 12月 25 16:56 start-tomcat-all.sh
drwxr-xr-x.  9 root root   160 12月 25 15:46 tomcat01
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat02
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat03
drwxr-xr-x.  9 root root   160 12月 25 15:49 tomcat04
drwxr-xr-x. 11 1000 1000  4096 12月 25 15:02 zookeeper01
drwxr-xr-x. 11 root root  4096 12月 25 15:14 zookeeper02
drwxr-xr-x. 11 root root  4096 12月 25 15:20 zookeeper03
-rw-r--r--.  1 root root 16204 12月 25 16:51 zookeeper.out
[root@localhost solr-cloud]# 

注意:需要关闭防火墙。

service iptables stop

永久关闭修改配置开启不启动防火墙:

Chkconfig iptables off

安装完成
点击左侧的Cloud如下界面
安装成功

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

影孓

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值