To make it clear which VM you are on, create a README.md file at the root (or home directory, depending on the situation) of the server.
Environment
Source (Gitlab)
Main account: user (UID/GID: 1000:1000)
List of VMs (online URL)
VM Owner
Full Name
How to access the VM
VM History
https://discuss.rabkesov.ru/search?q=server
Services
sudo systemctl status elasticsearch.service
sudo systemctl status logstash.service
sudo systemctl status kafka.service
sudo systemctl status zookeeper.service
# Do not run services as root if user-level access is sufficient
Service Files
ls -l /etc/systemd/system/ | grep service
Ports, Paths
/opt/
Database
sudo ps auxw | grep postgres
```## Commands
df -h /opt # check space
free -h # memory
sudo journalctl -u service -f # real-time status
sudo netstat -ltupen | grep LISTEN # listening ports, see alternative below
echo > /dev/tcp/10.1.1.1/5432 && echo “Port is open”
curl -v http://localhost:port # HTTP check