RHEL: 3. Install Graphlytic
Install Graphlytic
Install Graphlytic as service
After this installation Graphlytic will start automatically after operating system is started. Neo4j is required by Graphlytic so there is also need to install Neo4j as a service (see RHEL: 2. Install Neo4j)
Graphlytic application will be started by user 'graphlytic'. Create this user with home directory (home directory is used by neo4j drivers to store known hosts <home>/.neo4j/known_hosts):
$
sudo
useradd
-m graphlytic
$
sudo
usermod
-L graphlytic
Copy Graphlytic installation file "graphlytic-<version>.tar.gz" into /tmp/.
Create directory structure:
$
sudo
mkdir
-p
/usr/share/graphlytic
/var/log/graphlytic
$
sudo
chown
-R graphlytic:graphlytic
/usr/share/graphlytic
/var/log/graphlytic
Copy installation file and unpack it:
$
sudo
su
graphlytic
graphlytic:$
cp
/tmp/graphlytic-
<version>.
tar
.gz
/usr/share/graphlytic
graphlytic:$
cd
/usr/share/graphlytic
graphlytic:$
tar
zxvf graphlytic-<version>.
tar
.gz
Graphlytic's configuration is stored in the "conf/graphlytic.conf" file.
To configure Graphlytic run this command:
graphlytic:$
vi
/usr/share/graphlytic/conf/graphlytic
.conf
Default configuration is as follows:
# where Graphlytic stores its data
main.dataDir=..
/data/
# where Graphlytic stores log files
main.logDir=
/var/log/graphlytic/
# where Graphlytic stores external widgets
main.widgetsDir=..
/widgets/
# where Graphlytic stores external icons
main.iconsDir=..
/icons/
# login page logo title
site.logo.title=Graphlytic
#HSQLDB schema name
hsql.schema=GRAPHLYTIC
# Bolt connection to Neo4j
neo4j.connector.bolt=bolt:
//localhost
:7687
neo4j.connector.username=neo4j
neo4j.connector.password=admin
#encryption of the connection to DB. Neo4j 4 requires ssl to be explicitly enabled and configured. It does not accept default self-signed Neo4j 3 certificates.
neo4j.connector.encrypted=
false
To change the starting script's configuration run this command (this is an optional step):
graphlytic:$
chmod
a+x
/usr/share/graphlytic/bin/graphlyticd
graphlytic:$
vi
/usr/share/graphlytic/bin/graphlyticd
Edit the starting script file to use HTTP or HTTPS (or both) for connecting to the Graphlytic web application. This is an optional step (default config is HTTP and HTTPS both enabled).
#!/bin/sh
# use this script with created service
# disable or enable HTTP/HTTPS. To disable comment od remove line
#HTTP_PORT=8080
HTTPS_PORT=8443
Copy init script and enable service:
$
sudo
cp
/usr/share/graphlytic/bin/graphlytic-init-rhel
/etc/init
.d
/graphlytic
$
sudo
chmod
a+x
/etc/init
.d
/graphlytic
$
sudo
systemctl
enable
graphlytic.service
Check if service was enabled:
$
sudo
find
/etc/rc
?.d/ -name
"*graphlytic*"
expected result:
/etc/rc2
.d
/S99graphlytic
/etc/rc3
.d
/S99graphlytic
/etc/rc4
.d
/S99graphlytic
/etc/rc5
.d
/S99graphlytic