我刚刚将我们的solr从4.7升级到7.1。
在以前的版本中,我们使用以下命令启动solr:
nohup java -DSTOP.PORT=8079 -DSTOP.KEY=my_solr_key -Xms500m -Xmx500m -jar start.jar
新solr版本的等效命令是什么?
我跑了bin/solr start
,但是:
它加载了默认参数,而不是它使用的参数(-DSTOP.PORT = 8079 -DSTOP.KEY = my_solr_key -Xms500m -Xmx500m)。我需要在start命令中指定这些参数(我不想更改solr安装文件夹中的文件)。
我收到了以下错误(每隔几秒重复一次):
Creating Solr home directory /exlibris/sfx_ver/app/solr-7.1.0/example/cloud/node1/solr
Cloning /exlibris/sfx_ver/app/solr-7.1.0/example/cloud/node1 into
/exlibris/sfx_ver/app/solr-7.1.0/example/cloud/node2
Starting up Solr on port 8983 using command:
"bin/solr" start -cloud -p 8983 -s "example/cloud/node1/solr"
Waiting up to 180 seconds to see Solr running on port 8983lsof: unsupported TCP/TPI info selection: C
lsof: unsupported TCP/TPI info selection: P
lsof: unsupported TCP/TPI info selection: :
lsof: unsupported TCP/TPI info selection: L
lsof: unsupported TCP/TPI info selection: I
lsof: unsupported TCP/TPI info selection: S
lsof: unsupported TCP/TPI info selection: T
lsof: unsupported TCP/TPI info selection: E
lsof: unsupported TCP/TPI info selection: N
lsof 4.78
latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
usage: [-?abhlnNoOPRstUvVX] [+|-c c] [+|-d s] [+D D] [+|-f[gG]] [+|-e s]
[-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]]
[-p s] [+|-r [t]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [-Z [Z]] [--] [names]
Use the ``-h'' option to get more help information.
[\] lsof: unsupported TCP/TPI info selection: C
lsof: unsupported TCP/TPI info selection: P
lsof: unsupported TCP/TPI info selection: :
lsof: unsupported TCP/TPI info selection: L
lsof: unsupported TCP/TPI info selection: I
lsof: unsupported TCP/TPI info selection: S
lsof: unsupported TCP/TPI info selection: T
lsof: unsupported TCP/TPI info selection: E
lsof: unsupported TCP/TPI info selection: N
lsof 4.78
...
...
...
先谢谢!
麦克