YourNote 801: Useful Command - zhamri/CSC584-Enterprise_Programming GitHub Wiki
1. Check Tomcat Service Status
systemctl status tomcat10
2. Start Tomcat
If not running:
systemctl start tomcat10
3. Enable auto-start during boot:
systemctl enable tomcat10
4. Check webapps Folder
Most deployed applications are inside:
ls /var/lib/tomcat10/webapps
5. Check Deployed WAR Files
find /var/lib/tomcat10/webapps -name "*.war"
6. Check the port number tomcat10 is running
grep "Connector port" /etc/tomcat10/server.xml
7. Check Private/Internal IP
Most common command:
hostname -I
OR
ip addr
OR
ip a
Look for something like:
inet 10.15.0.5/24
8. Check Public IP (DigitalOcean/VPS)
curl ifconfig.me
OR
curl ipinfo.io/ip
9. Check Nginx Service Status
systemctl status nginx
10. Test Nginx Using Browser
Open:
http://YOUR_SERVER_IP