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