单机版(jetty)
下载地址
依赖JDK环境
配置
- 在server目录下创建logs文件夹
- 在server目录下创建data文件夹,并在server/solr/zoo.cfg中配置
运行
- yum install -y lsof
- 增大每个进程同时打开文件数
- vi /etc/security/limits.conf
* soft nofile 65000
* hard nofile 65000
* soft nproc 65000
* hard nproc 65000
# 如果其他用户没有生效就将*替换为用户名
- 用户退出生效
-
切换到非root用户,并且赋予用户文件夹的权限
-
启动
./solr start
./solr stop -all
./solr status