Linux常用软件版本怎么看(mysql、nginx、php、java、python等)

1、nginx
root@aliyun2:~# nginx -V
nginx version: nginx/1.10.3 (Ubuntu)
built with OpenSSL 1.0.2g 1 Mar 2016

2、apache
root@aliyun2:~# apachectl -v
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2017-09-18T15:09:02

3、mysql
root@aliyun2:~# mysql –version
mysql Ver 14.14 Distrib 5.7.21, for Linux (x86_64) using EditLine wrapper

4、Java
root@aliyun2:~# java -version
java version “1.8.0_161”
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

5、php
root@aliyun2:~# php -v
PHP 7.0.25-0ubuntu0.16.04.1 (cli) ( NTS )

6、python、pip
root@aliyun2:~# python -V
Python 2.7.12
root@aliyun2:~# pip -V
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)

    原文作者:老胡de博客
    原文地址: https://www.jianshu.com/p/6409c569c00d
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞