This is an old revision of the document!


Solr standalone server (Ubuntu 18.04, Solr 7.6) over KVM

* Ubuntu server 18.04 LTS (from ISO)
* 20GB virtualdisk mounted as / (root)
* 100GB virtualdisk mounted as /var
* Set IPv4 and IPv6
* Java 8
apt install openjdk-8-jdk
  • extend ulimit
nano -w /etc/systemd/system.conf
	DefaultLimitNOFILE=65535
	DefaultLimitNPROC=65535

nano -w /etc/systemd/user.conf
	DefaultLimitNOFILE=65535
	DefaultLimitNPROC=65535

nano -w /etc/security/limits.conf
	*       hard    nofile  65535
	*       soft    nofile  65535
	*       hard    nproc   65535
	*       soft    nproc   65535

reboot

ulimit -a
open files                      (-n) 65535
max user processes              (-u) 65535
  • Install Solr
wget https://www-us.apache.org/dist/lucene/solr/7.6.0/solr-7.6.0.tgz
tar xzf solr-7.6.0.tgz solr-7.6.0/bin/install_solr_service.sh --strip-components=2

bash ./install_solr_service.sh solr-7.6.0.tgz

	id: ‘solr’: no such user
	Creating new user: solr
	Adding system user `solr' (UID 111) ...
	Adding new group `solr' (GID 113) ...
	Adding new user `solr' (UID 111) with group `solr' ...
	Creating home directory `/var/solr' ...
	Extracting solr-7.6.0.tgz to /opt
	Installing symlink /opt/solr -> /opt/solr-7.6.0 ...
	Installing /etc/init.d/solr script ...
	Installing /etc/default/solr.in.sh ...
	Service solr installed.
	Customize Solr startup configuration in /etc/default/solr.in.sh
cat /etc/default/solr.in.sh
	SOLR_PID_DIR="/var/solr"
	SOLR_HOME="/var/solr/data"
	LOG4J_PROPS="/var/solr/log4j2.xml"
	SOLR_LOGS_DIR="/var/solr/logs"
	SOLR_PORT="8983"
 
 
archipelago/solr_base.1549351614.txt.gz · Last modified: 2019/02/05 08:26 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki