1.查看操作系统版本
[root@bruce ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)
2.查看32位还是64位
[root@bruce ~]# uname -m
x86_64
3.查看apache版本
[root@bruce ~]# /usr/local/httpd/bin/apachectl -v
Server version: Apache/2.4.18 (Unix)
Server built: Jan 28 2016 23:27:42
4.查看mysql版本
[root@bruce ~]# mysql -uroot -p’root123′ -e “select version();”
Warning: Using a password on the command line interface can be insecure.
+———–+
| version() |
+———–+
| 5.6.27 |
+———–+