查看系统内核信息的两种方法。
1、
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
2、不适用于Redhat
[root@S-CentOS home]# cat /proc/version
查看系统版本
该命令仅适用于Redhat系列
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
其他系统可用 :
[root@localhost ~]# cat /etc/issue
检测是否有安装redis-cli和redis-server(因为我的测试服务器没有安装所以出现这个)
[root@localhost ~]# whereis redis-cli
redis-cli:
[root@localhost ~]# whereis redis-server
redis-server:
若已安装,则是这样
[root@localhost bin]# whereis redis-cli
redis-cli: /usr/bin/redis-cli
[root@localhost bin]# whereis redis-server
redis-server: /usr/bin/redis-server
---------------------
作者:SHUIPING_YANG
来源:CSDN
原文:https://blog.csdn.net/zhezhebie/article/details/73470134
版权声明:本文为博主原创文章,转载请附上博文链接!