Nodejs, Ansible, Ubuntu, PostgreSQL, Java, Python, Wildfly 등 버전 확인 [2022]
Node.js, Ansible, Ubuntu, PostgreSQL, Windows, Python 등 다양한 소프트웨어의 버전을 확인하는 방법에 대해 궁금하신가요? 소프트웨어 버전을 확인하는 표준화된 방법이 있으면 좋겠지만, 아쉽게도 현실은 그렇지 않습니다. 이는 각 소프트웨어가 서로 다른 프로그래밍 언어로 개발되었기 때문일 것입니다.
종종 서버나 개인 컴퓨터에 설치된 소프트웨어의 정확한 버전을 찾는 것이 어려울 때가 있습니다. 이 글에서는 널리 사용되는 여러 소프트웨어의 버전 확인 방법을 소개하고자 합니다. 도움이 되기를 바랍니다!
Nginx 버전 확인
Nginx 버전 확인은 간단합니다. 터미널에서 다음 명령어를 실행하면 됩니다.
nginx -v
예시:
[email protected]:~# nginx -v nginx version: nginx/1.14.0 (EasyEngine) [email protected]:~#
Apache HTTP 버전 확인
Apache HTTP 서버의 버전도 Nginx와 유사하게 확인할 수 있습니다. 다음 명령어를 사용하세요.
[[email protected] ~]# /usr/sbin/httpd -v 서버 버전: Apache/2.4.6 (CentOS) 서버 구축: 2018년 11월 5일 01:47:09 [[email protected] ~]#
PHP 버전 확인
PHP 버전 확인 방법도 Nginx와 비슷합니다.
PHP -v
예시:
[email protected]:~# /usr/bin/php -v
PHP 7.2.15-0ubuntu0.18.04.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.15-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
[email protected]:~#
Node.js 버전 확인
Node.js 버전은 다음 명령어를 통해 확인할 수 있습니다.
[[email protected] bin]# node --version v6.16.0 [[email protected] bin]#
Python 버전 확인
Python 버전 확인 방법은 Node.js와 유사합니다. 다음 명령어를 실행하세요.
[[email protected] bin]# python --version Python 2.7.5 [[email protected] bin]#
Anaconda 버전 확인
Anaconda 플랫폼을 사용 중이라면, 다음 명령어를 통해 버전을 확인할 수 있습니다. (Unix 기반 OS 환경에서)
[email protected]:~# conda list anaconda /root/anaconda3/envs/base/pkgs: # packages in environment at /root/anaconda3: # # Name Version Build Channel anaconda 2018.12 py37_0 anaconda-client 1.7.2 py37_0 anaconda-navigator 1.9.6 py37_0 anaconda-project 0.8.2 py37_0 [email protected]:~#
특정 Anaconda 패키지 버전만 확인하려면 명령어 끝에 $를 추가합니다.
[email protected]:~# conda list anaconda$ /root/anaconda3/envs/base/pkgs: # packages in environment at /root/anaconda3: # # Name Version Build Channel anaconda 2018.12 py37_0 [email protected]:~#
Angular CLI 버전 확인
ng version 명령어를 통해 설치된 Angular CLI의 상세 정보를 확인할 수 있습니다.
[email protected]:~# ng version Angular CLI: 7.3.7 Node: 11.12.0 OS: linux x64 Angular: ... Package Version ------------------------------------------------------ @angular-devkit/architect 0.13.7 @angular-devkit/core 7.3.7 @angular-devkit/schematics 7.3.7 @schematics/angular 7.3.7 @schematics/update 0.13.7 rxjs 6.3.3 typescript 3.2.4 [email protected]:~#
PowerShell 버전 확인
PowerShell 명령 프롬프트에서 다음 명령어를 실행하여 버전을 확인할 수 있습니다.
PS C:\Windows\system32> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.14393.2828
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.2828
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PS C:\Windows\system32>
MySQL/MariaDB 버전 확인
MySQL 또는 MariaDB 버전은 다음 명령어를 통해 확인할 수 있습니다.
mysql -V
예시:
[email protected]:~# mysql -V mysql Ver 15.1 Distrib 10.1.37-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 [email protected]:~#
PostgreSQL 버전 확인
PostgreSQL 클라이언트 버전 확인:
psql -V
PostgreSQL 서버 버전 확인:
pg_config --version
Redis 서버 버전 확인
Redis 서버 버전은 다음 명령어로 확인할 수 있습니다.
redis-server -v
Java 버전 확인
Java 버전은 다음 명령어를 통해 확인할 수 있습니다.
[[email protected] bin]# 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) [[email protected] bin]#
만약 Java 실행 파일이 경로에 없다면, Java 실행 파일의 절대 경로를 제공해야 할 수 있습니다.
Ubuntu 버전 확인
Ubuntu 버전은 다음 명령어로 확인할 수 있습니다.
lsb_release -a
예시:
[email protected]:~$ lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic [email protected]:~$
CentOS/RHEL 버전 확인
CentOS 또는 RHEL 버전은 다음 명령어를 통해 확인할 수 있습니다.
[[email protected] ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) [[email protected] ~]
Debian 버전 확인
Debian 버전 정보는 다음 파일에서 확인할 수 있습니다.
[email protected]:~$ cat /etc/debian_version 9.8 [email protected]:~$
Linux 커널 버전 확인
Linux 커널 버전은 다음 명령어를 통해 확인할 수 있습니다.
[email protected]:~# uname -r 4.15.0-45-generic [email protected]:~#
macOS 버전 확인
macOS 버전은 Apple 메뉴 > '이 Mac에 관하여'에서 확인할 수 있습니다.
Windows 버전 확인
Windows 버전 확인 방법은 여러 가지가 있습니다. 가장 일반적인 두 가지 방법을 소개합니다.
명령 프롬프트 사용:
- 명령 프롬프트를 실행합니다.
winver를 입력하고 Enter 키를 누릅니다.
'내 PC' 사용:
- 시작 메뉴에서 '내 PC'를 검색합니다.
- '내 PC'를 마우스 오른쪽 버튼으로 클릭하고 '속성'을 선택합니다.
- 시스템 창에서 OS 버전 및 기타 정보를 확인할 수 있습니다.
Tomcat 버전 확인
Apache Tomcat의 버전 정보는 bin 폴더 아래에 있는 version 파일에서 확인할 수 있습니다.
[[email protected] bin]# ./version.sh Using CATALINA_BASE: /root/apache-tomcat-9.0.16 Using CATALINA_HOME: /root/apache-tomcat-9.0.16 Using CATALINA_TMPDIR: /root/apache-tomcat-9.0.16/temp Using JRE_HOME: / Using CLASSPATH: /root/apache-tomcat-9.0.16/bin/bootstrap.jar:/root/apache-tomcat-9.0.16/bin/tomcat-juli.jar Server version: Apache Tomcat/9.0.16 Server built: Feb 4 2019 16:30:29 UTC Server number: 9.0.16.0 OS Name: Linux OS Version: 3.10.0-957.5.1.el7.x86_64 Architecture: amd64 JVM Version: 1.8.0_191-b12 JVM Vendor: Oracle Corporation [[email protected] bin]#
WildFly 버전 확인
WildFly 버전은 다음 명령어를 통해 확인할 수 있습니다.
./standalone.sh --version
또는 관리 콘솔에 로그인하여 하단 표시줄에서 버전 정보를 확인할 수도 있습니다.
20:05:44,496 INFO [org.jboss.modules] JBoss Modules version 1.9.0.Final WildFly Full 16.0.0.Final (WildFly Core 8.0.0.Final)
WordPress 버전 확인
WordPress 버전은 관리자 페이지 로그인 후, 우측 하단에서 확인할 수 있습니다.
Google Chrome 버전 확인
Google Chrome 버전은 다음과 같이 확인할 수 있습니다.
- Chrome을 실행합니다.
- 우측 상단 점 세 개를 클릭합니다.
- 도움말 > Chrome 정보를 클릭합니다.
Internet Explorer(IE) 버전 확인
Internet Explorer 버전은 다음과 같이 확인할 수 있습니다.
- IE를 실행합니다.
- 도구 아이콘 > Internet Explorer 정보를 클릭합니다.
Firefox 버전 확인
Firefox 정보에서 사용 중인 버전을 확인할 수 있습니다.
apt-get 버전 확인
Linux에서 apt-get 버전은 다음 명령어로 확인할 수 있습니다.
[email protected]:~# apt-get -v apt 1.6.8 (amd64) Supported modules: *Ver: Standard .deb *Pkg: Debian dpkg interface (priority 30) Pkg: Debian APT solver interface (priority -1000) Pkg: Debian APT planner interface (priority -1000) SL: 'deb' Debian binary tree SL: 'deb-src' Debian source tree Idx: Debian source index Idx: Debian package index Idx: Debian translation index Idx: Debian dpkg status file Idx: Debian deb file Idx: Debian dsc file Idx: Debian control file Idx: EDSP scenario file Idx: EIPP scenario file [email protected]:~#
gcc 버전 확인
gcc 버전은 다음 명령어를 통해 확인할 수 있습니다.
[email protected]:~# gcc --version gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [email protected]:~#
Ansible 버전 확인
Ansible 버전은 다음 명령어로 확인할 수 있습니다.
[email protected]:~# ansible --version ansible 2.7.9 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0] [email protected]:~#
TensorFlow 버전 확인
TensorFlow 버전은 다음 명령어를 통해 확인할 수 있습니다. (pip를 통해 설치했을 경우)
[email protected]:~# pip show tensorflow Name: tensorflow Version: 1.13.1 Summary: TensorFlow is an open source machine learning framework for everyone. Home-page: https://www.tensorflow.org/ Author: Google Inc. Author-email: [email protected] License: Apache 2.0 Location: /root/anaconda3/lib/python3.7/site-packages Requires: termcolor, absl-py, wheel, protobuf, tensorboard, gast, six, tensorflow-estimator, numpy, keras-preprocessing, grpcio, keras-applications, astor Required-by: [email protected]:~#
Brew 버전 확인
Brew 버전은 다음 명령어로 확인할 수 있습니다.
Chandans-iMac:~ chandan$ brew -v Homebrew 2.0.2 Homebrew/homebrew-core (git revision 903f; last commit 2019-03-02) Chandans-iMac:~ chandan$
Docker 버전 확인
Docker 버전은 다음 명령어를 통해 확인할 수 있습니다.
[email protected]:~# docker -v Docker version 18.09.3, build 774a1f4 [email protected]:~#
결론
소프트웨어 버전 정보를 찾는데 도움이 되었기를 바랍니다. 이 글이 유익했다면, 다른 사람들에게도 공유해 주세요!