728x90
반응형
Java 버전 확인
> java -version
없으면??
> yum install java 1.8 버전 이상인지 확인하자
다운로드
> wget https://archive.apache.org/dist/lucene/solr/8.2.0/solr-8.2.0.tgz
> tar -zxvf solr-8.2.0.tgz
> useradd solr -p solr
> chown solr:solr -R /home/solr-8.2.0
포트
> firewall-cmd --permanent --zone=public --add-port=8983/tcp
(firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address=192.168.1.58 port port="8988" protocol="tcp" accept' )
> firewall-cmd --reload
실행
> cd /home/solr-8.2.0/bin/
> ./solr start
(./solr -m 2g -p 8988)
> ./solr status
WMS 코어 생성
> ./solr create -c WMS
wms 코어 dataimport 가능하도록 추가
/home/solr-8.2.0/server/solr/WMS/conf/solrconfig.xml
solrconfig.xml 파일 수정
<lib dir="/usr/share/java/" regex="mysql-connector-java.jar" />
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-dataimporthandler-\d.*\.jar" />
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-dataimporthandler-extras-\d.*\.jar" />
<requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
밑으로 아래 내용 추가
<requestHanlder name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
<str name="config">data-config.xml</str>
</lst>
</requestHandler>
JDBC 설치하자
> yum install mysql-connector-java
cd /home/solr-8.2.0/bin/solr restart
728x90
반응형