Change Tomcat Port from 80 to 8080
Open a terminal and navigate to the Tomcat configuration directory
cd /opt/advantech/epd/etc/tomcatEdit
server.xmlusing thenanoeditor and update it with the required configuration:
sudo nano server.xml
Update the firewall settings to allow traffic on port 8080
sudo ufw allow 8080Restart the Tomcat service
sudo systemctl stop epd-tomcat
sudo systemctl start epd-tomcatRestart the Service Monitor and update its configuration to match the new Tomcat port
sudo pm2 stop epd-server-monitor
sudo pm2 delete epd-server-monitor
sudo SERVER_CONFIG="/opt/advantech/epd/etc/epd" SCRIPT_ROOT_PATH="/usr/local/EPD" SERVICE_PORT="8090" TOMCAT_PORT="8080" RABBITMQ_PORT="15672" EPD_DATA="/opt/advantech/epd/data" pm2 start /usr/local/apps/epd-server-monitor/server/index.js --name epd-server-monitor --max-memory-restart 200MCheck the Service Monitor status is online

Last updated