Reload the systemd daemon to recognize the new service and start Tomcat. sudo systemctl daemon-reload Start Tomcat: sudo systemctl start tomcat Enable on boot: sudo systemctl enable tomcat
💡 Open your browser and go to http://your_server_ip:8080 . You should see the Apache Tomcat default landing page. Step 6: Configure Firewall (Optional) apache tomcat server download for ubuntu
Create the file: sudo nano /etc/systemd/system/tomcat.service Reload the systemd daemon to recognize the new
Use wget with the link from the Apache Tomcat Download page. Example: wget https://apache.org apache tomcat server download for ubuntu
Create the user: sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat Step 2: Download Apache Tomcat
sudo chown -R tomcat /opt/tomcat/webapps/ /opt/tomcat/work/ /opt/tomcat/temp/ /opt/tomcat/logs/ Step 4: Create a Systemd Service File