700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > redis重启命令Linux Redis启动 配置 及 常用命令-Go语言中文社区

redis重启命令Linux Redis启动 配置 及 常用命令-Go语言中文社区

时间:2022-05-03 10:59:34

相关推荐

redis重启命令Linux Redis启动 配置 及 常用命令-Go语言中文社区

启动 Redis 服务

src/redis-server或者src/redis-server redis.conf

注:src/redis-server 会不加载redis.conf配置文件,提示:Warning: no config file specified, using the default config.

标题

而:src/redis-server redis.conf 为载入redis.conf配置的启动方式

标题

src/redis-server redis.conf 1>log.log 2>errlog.log

1为标准输出,2为错误输出

将 Redis 作为 Linux 服务随机启动

vi /etc/rc.local, 加入代码: /root/install/redis-2.4.9/src/redis-server

或参考:

Redis客户端连接

src/redis-cli

停止redis服务:

src/redis-cli shutdown

修改密码:

vim /root/

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。