LinuxでOS環境情報とミドルウェアバージョンを調べるコマンド

Ubuntu

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
CentOS

$ cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
Java
$ java -version
java version “1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
Maven
$ mvn -v
Node.js
$ node -v

NPM
$ npm -v

$ ruby -v
ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]

Nginx
$ nginx -v
nginx version: nginx/1.4.6 (Ubuntu)
Httpd (Apache)

$ httpd -v
Server version: Apache/2.4.16 (Unix)
Server built: Jul 31 2015 15:53:26
MongoDB

$ mongod –version

$ mongo –version
MongoDB shell version: 3.2.3
OpenSSH

$ ssh -V
OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6, OpenSSL 1.0.1f 6 Jan 2014
cURL

$ curl –version

Git
$ git –version
git version 2.5.4 (Apple Git-61)
Bash

$ bash –version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.
Zsh

Software

Posted by arkgame