Table of Contents
To check Linux version
You have two methods to check the linux version
- Use the below command
[[email protected]]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
- Use the below command
[[email protected]]# uname –a
Linux localhost 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64x86_64 GNU/Linux
To check apache (httpd service) version
In rhel 7
[[email protected]]#apachectl –V
Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
Server built: Sep 17 2015 09:06:30
Server’s Module Magic Number: 20120211:24
Server loaded: APR 1.4.8, APR-UTIL 1.5.2
Compiled using: APR 1.4.8, APR-UTIL 1.5.2
Architecture: 64-bit
Server MPM: prefork
threaded: no
forked: yes (variable process count)
OR
[[email protected]]#httpd –v
Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
Server built: Sep 17 2015 09:06:30
To check yum version
[[email protected]]#yum info yum
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Installed Packages
Name : yum
Arch : noarch
Version : 3.4.3
Release : 132.el7
Size : 5.5 M
Repo : installed
From repo : anaconda
Summary : RPM package installer/updater/manager
URL : http://yum.baseurl.org/
License : GPLv2+
Description : Yum is a utility that can check for and automatically download and
: install updated RPM packages. Dependencies are obtained and downloaded
: automatically, prompting the user for permission as necessary.
To check SAMBA version
[[email protected]]# smbstatus
Samba version 4.2.3
PID Username Group Machine Protocol Version
——————————————————————————
Service pid machine Connected at
——————————————————-
To check SQUID ( Proxy ) Server version
[[email protected]]# squid –v
Squid Cache: Version 2.6.STABLE6
To check postfix version
[[email protected]]# postconf –d | grep mail_version
Mail_version = 2.7.0
To check dovecot version
[[email protected]]# dovecot –version
To check PHP version
[[email protected]]# php –v
PHP 5.4.16 (cli) (built: Jun 10 2015 04:34:17)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
To check NPM version
[[email protected]]# npm –v
1.4.28
To check NGINX version
[[email protected]]# nginx –v
nginx version: nginx/1.9.9
To check mongodb version
[[email protected]]# mongo –version
MongoDB shell version: 3.2.6
To check MySQL version
[[email protected]]# mysql –v
MysqlVer 5.1.71
If the permission issue occurs then as u connect with MySQL database with the help of username, password, hostname, database name. The starting lines tell you about the version.
[[email protected]]# mysql –u username –p –h hostname/IP databasename
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 141939
Server version: 5.1.71 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Or you can also use the command
mysql> SHOW VARIABLES LIKE “%version%”;
+————————-+———————+
| Variable_name | Value |
+————————-+———————+
| protocol_version | 10 |
| version | 5.1.71 |
| version_comment | Source distribution |
| version_compile_machine | x86_64 |
| version_compile_os | redhat-linux-gnu |
+————————-+———————+
For more
Contact: Gaurav Roy
Mob: +91-9807013750
Aord-E Network System