UPTU Notes

How to check Version of Services

To check Linux version

You have two methods to check the linux version

  1. Use the below command

[user@localhost]# cat  /etc/redhat-release

Red Hat Enterprise Linux Server release 7.2 (Maipo)

  1. Use the below command

[user@localhost]# 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

[user@localhost]#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)



[user@localhost]#httpd –v

Server version: Apache/2.4.6 (Red Hat Enterprise Linux)

Server built:   Sep 17 2015 09:06:30


To check yum version

[user@localhost]#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

[user@localhost]# smbstatus

Samba version 4.2.3

PID     Username      Group         Machine            Protocol Version



Service      pid     machine       Connected at



To check SQUID ( Proxy ) Server version

[root@localhost]# squid –v

Squid Cache: Version 2.6.STABLE6


To check postfix version

[user@localhost]# postconf –d | grep mail_version

Mail_version = 2.7.0


To check dovecot version

[user@localhost]# dovecot –version


To check PHP version

[user@localhost]# 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

[user@localhost]# npm –v



To check NGINX version

[user@localhost]# nginx –v

nginx version: nginx/1.9.9


To check mongodb version

[user@localhost]# mongo –version

MongoDB shell version: 3.2.6


To check MySQL version

[user@localhost]# 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.

[user@localhost]# 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



Related posts

Prevent cheating and plagiarism at the university

Team UPTUNotes

Interview Questions for freshers (Part-1)


Facebook introduces a tool to automatically search for errors in the software

Team UPTUNotes

Signup / Login For Access To Notes, Previous Year Question Paper Tips & Resources.

For more details click on the below link.
Login / Register