查看系統內核信息的兩種方法。
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
版權聲明:本文爲博主原創文章,轉載請附上博文鏈接!