-
Notifications
You must be signed in to change notification settings - Fork 0
YourNote 801: Useful Command
Zhamri Che Ani edited this page May 20, 2026
·
1 revision
systemctl status tomcat10
If not running:
systemctl start tomcat10
systemctl enable tomcat10
Most deployed applications are inside:
ls /var/lib/tomcat10/webapps
find /var/lib/tomcat10/webapps -name "*.war"
grep "Connector port" /etc/tomcat10/server.xml
Most common command:
hostname -I
OR
ip addr
OR
ip a
Look for something like:
inet 10.15.0.5/24
curl ifconfig.me
OR
curl ipinfo.io/ip
systemctl status nginx
Open:
http://YOUR_SERVER_IP