启动 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/
如果觉得《redis重启命令Linux Redis启动 配置 及 常用命令-Go语言中文社区》对你有帮助,请点赞、收藏,并留下你的观点哦!