Created
May 1, 2012 22:15
-
-
Save jdorfman/2571878 to your computer and use it in GitHub Desktop.
Find the version number of nginx on a cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in 01 02 03 04 05; do echo "${i}" && ssh web${i}.yourdomain.com '/usr/local/nginx/sbin/nginx -v'; done | |
# Output: | |
# 01 | |
# nginx version: nginx/1.0.11 | |
# 02 | |
# nginx version: nginx/1.0.11 | |
# 03 | |
# nginx version: nginx/1.0.11 | |
# 04 | |
# nginx version: nginx/1.0.11 | |
# 05 | |
# nginx version: nginx/1.0.11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment