Master Server
The PlatformUDPListener is installed on the master database(s).
Install Java
First of all, java is installed:
apt-get install default-jdk
Install Platform UDP Listener
The Platform UDP Listener is installed with the following commands:
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:
systemctl enable jtel-listener
Firewall Rules
The following configures the firewall, so the hazelcast cluster members can communicate with eachother:
ufw allow 5701:5801/tcp
Start Listener
Now, the listener is started:
service jtel-listener start
Update Script
To make updating the Platform UDP Listener simpler, a script is created:
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