This article shows how you can check different services version on Adobe Cloud server.
List all the services with their port number, username, & password
echo $MAGENTO_CLOUD_RELATIONSHIPS | base64 -d | json_pp
Get Redis version
redis-cli -p 6370 info | grep -i redis_version
where, 6370 is the port number. The redis port number can be 6372 as well sometimes.
Get Opensearch version
curl -s -XGET 'http://localhost:9200' | grep -A2 version
or,
curl -s -XGET 'http://localhost:9200' | grep number
Get RabbitMQ version
dpkg -s rabbitmq-server | grep Version
or, you can login to RabbitMQ and check the version there.
To login to RabbitMQ, SSH to the following:
ssh -L 15672:localhost:15672 1.ent-xxxxxx-production-xxxx@ssh.us-5.magento.cloud
Then, open the following link in your browser:
http://localhost:15672
It will prompt for username & password. Enter the RabbitMQ username & password.
After you login, you will see the RabbitMQ version on the page.
Get PHP version
php -v
Get Magento version
bin/magento --version
Hope this helps. Thanks.