Change Tomcat Port from 80 to 8080

  1. Open a terminal and navigate to the Tomcat configuration directory

cd /opt/advantech/epd/etc/tomcat
  1. Edit server.xml using the nano editor and update it with the required configuration:

sudo nano server.xml
  1. Update the firewall settings to allow traffic on port 8080

sudo ufw allow 8080
  1. Restart the Tomcat service

sudo systemctl stop epd-tomcat
sudo systemctl start epd-tomcat
  1. Restart 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 200M
  1. Check the Service Monitor status is online

Last updated