バージョン取得コマンド まとめ


[root@??? ???]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built:   Nov  5 2018 01:47:09


[root@??? ????]# java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

[root@??? ???]# php -v
PHP 7.1.25 (cli) (built: Dec  8 2018 13:52:58) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.25, Copyright (c) 1999-2018, by Zend Technologies

[root@??? ????]# python --version
Python 2.7.5

[root@??? ???]# perl -v | head -n 3

This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 38 registered patches, see perl -V for more detail)

[root@??? ???]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core) 

[root@???? ????]# mysql -uroot -p???????????_ --version
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql  Ver 8.0.13 for Linux on x86_64 (MySQL Community Server - GPL)

[root@???? ????]# postfix -v
postfix: name_mask: ipv4
postfix: inet_addr_local: configured 4 IPv4 addresses
postfix/postfix-script: error: unknown command: ''
postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration)

[root@??? ???]# vsftpd -v
vsftpd: version 3.0.2

[root@??? ???]# wget --version | head -n 1
GNU Wget 1.14 built on linux-gnu.

[root@??? ???]# curl --version
curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.36 zlib/1.2.7 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp 
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets 

[root@???? bin]# ./version.sh
/usr/local/tomcat9/bin/setenv.sh: 行 3: /root: ディレクトリです
Using CATALINA_BASE:   /usr/local/????
Using CATALINA_HOME:   /usr/local/????
Using CATALINA_TMPDIR: /usr/local/????/temp
Using JRE_HOME:        /
Using CLASSPATH:       /usr/local/tomcat9/bin/bootstrap.jar:/usr/local/tomcat9/bin/tomcat-juli.jar
Server version: Apache Tomcat/9.0.10
Server built:   Jun 20 2018 17:32:21 UTC
Server number:  9.0.10.0
OS Name:        Linux
OS Version:     3.10.0-957.1.3.el7.x86_64
Architecture:   amd64
JVM Version:    1.8.0_191-b12
JVM Vendor:     Oracle Corporation

root@??????:/?????# cat /etc/debian_version
7.11

コメントを残す