如何查看linux系统中linux,apache,nginx,mysql,php版本
版本的单词version,简写v。
apache
1
2
3
|
root@ubuntu:~ # apachectl -v Server version: Apache /2 .4.7 (Ubuntu) Server built: Jul 15 2016 15:34:04 |
nginx
1
2
|
root@ubuntu:~ # nginx -v nginx version: nginx /1 .4.6 (Ubuntu) |
php
1
2
3
4
5
|
root@ubuntu:~ # php -v PHP 5.5.9-1ubuntu4.19 (cli) (built: Jul 28 2016 19:31:33) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies |
如果是编译安装,需定义环境变量。