-
Notifications
You must be signed in to change notification settings - Fork 9
Install
Matt Davis edited this page May 18, 2022
·
22 revisions
Download latest version from https://github.com/zuliaio/zuliasearch/releases
cd YOUR_INSTALL_DIR
wget https://github.com/zuliaio/zuliasearch/releases/download/2.4.1/zulia-server-2.4.1.tar
tar xvf zulia-server-2.4.1.tar
rm zulia-server-2.4.1.tar
ln -s zulia-server-2.4.1 zulia-server
cd YOUR_INSTALL_DIR
git clone [email protected]:zuliaio/zuliasearch.git
cd zuliasearch
./gradlew
# can replace wildcards below with actual file / dir names
cp zulia-server/build/distributions/zulia*tar ..
cd ..
tar xvf zulia-server-*.tar
rm zulia-server-*.tar
ln -s zulia-server-* zulia-server
Edit zulia-server/config/zulia.properties
cd zulia-server/bin
./zuliad --config ../config/zulia.properties addNode
./zuliad --config ../config/zulia.properties start
nano /etc/default/zulia
ZULIAD_OPTS="-Xmx15g"
# save and exit
nano /lib/systemd/system/zuliad.service
[Unit]
Description=Zulia
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
User=app
Group=app
Type=simple
WorkingDirectory= /usr/lib/zulia-server
ExecStart=/usr/lib/zulia-server/bin/zuliad --config /etc/zulia.yaml start
ExecStop=/usr/lib/zulia-server/bin/zuliad --config /etc/zulia.yaml stop
Restart=on-failure
EnvironmentFile=/etc/default/zulia
LimitFSIZE=infinity
LimitCPU=infinity
LimitAS=infinity
LimitMEMLOCK=infinity
LimitNOFILE=64000
LimitNPROC=64000
[Install]
WantedBy=multi-user.target
# save and exit
sudo systemctl daemon-reload
sudo systemctl enable zuliad.service