Open sebiboga opened 2 years ago
needs JAVA 11
WINDOWS
c:\solr\solr-9.0.0\bin\solr.cmd create -c mycollection -n data_driven_schema_configs
c:\solr\solr-9.0.0\bin\solr.cmd create -c shaqodoon -n data_driven_schema_configs
zimbor.go.ro already have JDK 11
REPO Solr Releases https://archive.apache.org/dist/lucene/solr/
solr-9.0.0 installed on port 8984 on zimbor.go.ro IN TESTING
solr 9.0.0 doesn't START
solr 9.0.0 works on Windows 10
WARNING: /opt/solr-9.0.0 already exists! Skipping extract ...
Installing symlink /opt/solr2 -> /opt/solr-9.0.0 ...
Installing /etc/init.d/solr2 script ...
Installing /etc/default/solr2.in.sh ...
Service solr2 installed. Customize Solr startup configuration in /etc/default/solr2.in.sh ● solr2.service - LSB: Controls Apache Solr as a Service Loaded: loaded (/etc/init.d/solr2; generated) Active: active (exited) since Sat 2022-06-18 18:49:23 EEST; 5s ago Docs: man:systemd-sysv-generator(8) Process: 5141 ExecStart=/etc/init.d/solr2 start (code=exited, status=0/SUCCESS)
iun 18 18:49:18 sebi-PowerEdge-T110-II systemd[1]: Starting LSB: Controls Apache Solr as a Service... iun 18 18:49:18 sebi-PowerEdge-T110-II su[5143]: (to solr) root on none iun 18 18:49:18 sebi-PowerEdge-T110-II su[5143]: pam_unix(su-l:session): session opened for user solr by (uid=0) iun 18 18:49:22 sebi-PowerEdge-T110-II solr2[5194]: Started Solr server on port 8984 (pid=5190). Happy searching! iun 18 18:49:23 sebi-PowerEdge-T110-II systemd[1]: Started LSB: Controls Apache Solr as a Service.
ok, so the installer let SOLR_JETTY_HOST set by default to "127.0.0.1" which means it will work ONLY on localhost YOU need to set this to "0.0.0.0" the settings is in /etc/default/~solr or /etc/default/~solr2
@irina-adam we have it working at http://zimbor.go.ro:81/
[TO DO]
COREs created;
will resume first thing in the morning...
In prezent avem 2 instante de SOLR pe masina ZIMBOR.GO.RO SOLR 8.10.1 pe portul 8983 SOLR 9.0.0 pe portul 8984 Din exterior portul 80 este redirectat spre SOLR 8.10.1, adica spre portul 8983 Din exterior portul 81 este redirectat spre SOLR 9.0.0 adica spre portul 8984
pentru upgrade-ul final vom schimba cele doua porturi configurate; din 80 in 81 si in 81 in 80, astfel prin ROUTARE vom pointa zimbor.go.ro pe portul 80 spre 8984 pe masina 192.168.1.13
doar pentru istoric vom pastra portul 81 in functiune care va pointa spre instanta de SOLR 8.10.1; (plus ca nu am copiat toate datele din core-ul romania in SOLR 9.0.0)
tested: zimbor.go.ro pointeaza spre SOLR 9.0.0
1) copiaza TGZ file de pe Apache SOLR local
2) extrage TGZ file
3) copiaza fisierul install_solr_service.sh la acelasi nivel cu arhiva solr
4) rulezi comanda:
sudo bash ./install_solr_service.sh solr-9.0.0.tgz -s solr4 -p 8986 -f
COPY CORES from old SOLR to NEW SOLR version
1) sudo su -
2) mc
3) copy all cores from /var/solr3/data to /var/solr4/data
4) sudo service solr4 stop
5) sudo service solr4 start
wget https://dlcdn.apache.org/solr/solr/9.5.0/solr-9.5.0.tgz tar xzf solr-9.5.0.tgz cd solr-9.5.0/ copiaza solr-9.5.0.tgz in folderul bin sudo bash ./install_solr_service.sh solr-9.5.0.tgz -s solr9 -p 8985 modifica in /etc/default/solr9.in.sh acel interface JETTY cu valoarea 0.0.0.0 restart service
sudo service solr9 stop sudo service solr9 start
update solr to latest version -- Apache Solr 9.0.0 available