查看已经安装的软件
dpkg -l
查看已经安装的软件安装目录
dpkg -L nodejs
安装Redis
Ubuntu仓库中直接apt-get install
来安装只能安装2.3.0版本,想要安装最新版本,需要先将redis的仓库加入到源。
代码如下
# 1.将redis的仓库加入到源sudo apt-get install -y software-properties-common sudo add-apt-repository -y ppa:rwky/redis # 2.安装最新版本的redissudo apt-get update sudo apt-get install -y redis-server
相关命令
# 查看redis状态service redis-server status# 启动和停止service redis startservice redis stopservice redis restart# 查看 redis 的是否启动$ redis-cli127.0.0.1:6379> pingPONG
點擊查看更多內容
為 TA 點贊
評論
評論
共同學習,寫下你的評論
評論加載中...
作者其他優(yōu)質文章
正在加載中
感謝您的支持,我會繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦