您的位置:首页 > 技术中心 > 数据库 >

linux下查看redis的安装目录的方法是什么

时间:2022-02-25 11:52

具体查看方法如下:

(学习视频分享:redis视频教程)

1、在redis下查看安装目录

如果命令 which 和whereis 都找不到安装目录,可使用以下办法:

ps -ef|grep redis

得到了进程号 xxxx,

然后 ls -l /proc/xxxx/cwd。

f506b494cf36973c92710ce1d67aac4.png

2、查看redis-cli 和redis-server的目录

则使用whereis redis-cli。

3、关闭redis

(1)先进入redis ./redis-cli 输入密码 auth '密码'。

(2)shutdown。

如果直接在目录中使用 ./redis-cli shutdown 是关闭不了的。

4、模糊查询使用find

find / -name redis*

其中: / 指的是根目录。

相关推荐:redis数据库教程

以上就是linux下查看redis的安装目录的方法是什么的详细内容,更多请关注gxlsystem.com其它相关文章!

热门排行

今日推荐

热门手游