Mount the Share
The system must have access to the share on acd-store.
Checkout JREST Repository
On acd-store execute the following commands to checkout the repository:
Code Block |
---|
su jtel
cd /srv/jtel/shared
git clone https://bitbucket.org/jtelgmbh/jtel-system-java-services.git |
Installation - on Linux Server
To install the REST role on a Linux server, proceed as follows on the acd-rest server.
Java 12
Install java 12 as follows:
Code Block |
---|
cd /home/jtel
wget https://cdn.jtel.de/downloads/java/openjdk-12.0.2_linux-x64_bin.tar.gz
tar xvfz openjdk-12.0.2_linux-x64_bin.tar.gz
rm -f openjdk-12.0.2_linux-x64_bin.tar.gz
chown -R jtel:jtel jdk-12.0.2 |
jrest
Install jrest as follows:
Code Block |
---|
cd /home/jtel
cp -r /home/jtel/shared/jtel-system-java-services/deploy/jrest/ jrest
mkdir /home/jtel/jrest/log
chown -R jtel:jtel jrest
cp jrest/init.d/jrest /etc/init.d
chmod +x /etc/init.d/jrest
chkconfig jrest on |
Configuration
Edit the configuration file /home/jtel/jrest/config/jtel-jrest.xml and check database access passwords and hosts etc. are correct.
Firewall
Open the firewall port 8091 as follows:
Code Block |
---|
firewall-cmd --zone=public --add-port=8091/tcp --permanent
firewall-cmd --reload |
Start Service
Start the service.
Code Block |
---|
service jrest start |
Installation - on Windows Server
To install the REST role on the windows server, proceed as follows.
Java 12
Download java 12 from here:
...
Warning |
---|
Note, if you do not use the paths specified above, you may have to change the configuration considerably. |
Checkout JREST Repository
On acd-store execute the following commands to checkout the repository:
Code Block |
---|
su jtel cd /srv/jtel/shared git clone https://bitbucket.org/jtelgmbh/jtel-system-java-services.git |
Copy Files and Install
On the windows server, execute the following commands in a non-elevated command prompt:
Code Block |
---|
c: md \JRest xcopy /E \\acd-store\shared\jtel-system-java-services\deploy\jrest C:\JRest |
Configuration
Edit the configuration file, and make sure the database access (username and password) is correct:
...