Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

Master Server 

The PlatformUDPListener is installed on the master database(s).

Install Java

First of all, java is installed:

Translations Ignore


Code Block
languagebash
apt-get -y install default-jdk


Install Platform UDP Listener

The Platform UDP Listener is installed with the following commands:

Translations Ignore


Code Block
cp -a /home/jtel/shared/JTELCarrierPortal/Utils/Install/PlatformUDPlistener/ /home/jtel/
cp -a /home/jtel/PlatformUDPlistener/systemd/jtel-listener.service /usr/lib/systemd/system
rm -f /home/jtel/PlatformUDPlistener/conf/hazelcast.xml
cp -a /home/jtel/shared/hazelcast.xml /home/jtel/PlatformUDPlistener/conf/hazelcast.xml


Autostart Daemon

The Platform UDP Listener is enabled with the following commands:

Translations Ignore


Code Block
languagebash
systemctl enable jtel-listener


Firewall Rules

The following configures the firewall, so the hazelcast cluster members can communicate with eachother:

Translations Ignore


Code Block
languagebash
ufw allow 5701:5801/tcp


For a different network interface

Translations Ignore


Code Block
languagebash
ufw allow in on eth1 to any port 5701:5801/ proto tcp


Start Listener

Now, the listener is started:


Translations Ignore


Code Block
languagebash
service jtel-listener start


Update Script

To make updating the Platform UDP Listener simpler, a script is created:

Translations Ignore


Code Block
languagebash
cat <<EOFF > /usr/local/bin/updatepl.sh
#!/bin/bash
systemctl stop jtel-listener
cp /home/jtel/shared/JTELCarrierPortal/Utils/Install/PlatformUDPlistener/bin/platform-UDP-listener-1.0-jar-with-dependencies.jar /home/jtel/PlatformUDPlistener/bin
chown jtel:jtel /home/jtel/PlatformUDPlistener/bin/*
systemctl start jtel-listener
EOFF
chmod +x /usr/local/bin/updatepl.sh




...