Linux系統常用命令記錄

查看系統內核信息的兩種方法。

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 
版權聲明:本文爲博主原創文章,轉載請附上博文鏈接!

 

查看redis是否安裝,啓動和便捷安裝redis

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章