The following tutorial describes how to install Apache Solr in Ubuntu in a few simple steps 22.04.
We will do everything through the terminal in a few minutes.
First, we install Java.
We run a terminal and issue the command:
apt-get install default-jdk -y
we check the java version by issuing the command:
java -version
openjdk version "11.0.15" 2022-04-19 OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1) OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1, mixed mode, sharing)
We download Apache Solr and unpack it:
wget https://downloads.apache.org/lucene/solr/8.11.1/solr-8.11.1.tgz
tar -xvzf solr-8.11.1.tgz
we run the installation script:
./solr-8.11.1/bin/install_solr_service.sh solr-8.11.1.tgz
If everything went ok, we should see the messages:
Service solr installed. Customize Solr startup configuration in /etc/default/solr.in.sh ? solr.service - LSB: Controls Apache Solr as a Service Loaded: loaded (/etc/init.d/solr; generated) Active: active (exited) since Sat 2022-05-06 03:00:19 UTC; 5s ago Docs: man:systemd-sysv-generator(8) Process: 4692 ExecStart=/etc/init.d/solr start (code=exited, status=0/SUCCESS) Jul 25 03:00:09 ubuntu2204 systemd[1]: Starting LSB: Controls Apache Solr as a Service... Jul 25 03:00:09 ubuntu2204 su[4694]: (to solr) root on none Jul 25 03:00:09 ubuntu2204 su[4694]: pam_unix(on the:session): session opened for user solr by (uid=0) Jul 25 03:00:19 ubuntu2204 systemd[1]: Started LSB: Controls Apache Solr as a Service.
we run Solr on the system with the command:
systemctl start solr
We create the Solr collection:
its - solr -c "/opt/solr/bin/solr create -c newcollection -n data_driven_schema_configs"
To get to our solra in the browser, go to the address:
http://your-ip:8983/solr
The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń…
Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji…
Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w…
You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania…
Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.…
The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy…