Win10安装Redis服务报错

  • HandleServiceCommands: system error caught. error code=1073, message = CreateService failed: unknown error

    • 没有启用管理员权限打开cmd
  • HandleServiceCommands: system error caught. error code=1072, message = CreateService failed: unknown error

    • 该服务已存在,输入redis-server --service-uninstall删除之前的服务
  • Creating Server TCP listening socket 127.0.0.1:6379: bind: No error

    • 已打开redis-server,用管理员权限打开cmd做以下步骤
    1. Redis-cli.exe
    2. shutdown
    3. exit
    4. redis-server.exe redis.windows.conf 此条参考[丢失参考源]

参考creating server tcp listening socket 127.0.0.1:6379: bind No error

Win10安装Redis服务

管理员权限使用cmd切换到C:\Redis目录下:
手动开启:redis-server.exe redis.windows.conf
安装服务:redis-server.exe --service-install redis.windows.conf --loglevel verbose
卸载服务:redis-server --service-uninstall
开启服务:redis-server --service-start
停止服务:redis-server --service-stop

参考Redis在windows下安装过程

发布了19 篇原创文章 · 获赞 6 · 访问量 2万+
展开阅读全文

redis服务报错,帮忙看下

04-03

[root@redhat ~]# service redis start Starting redis (via systemctl): Job for redis.service failed because the control process exited with error code. See "systemctl status redis.service" and "journalctl -xe" for details. [FAILED] [root@redhat ~]# [root@redhat ~]# [root@redhat ~]# service redis status 鈼[0m redis.service - SYSV: Redis is an open source, advanced key-value store. Loaded: loaded (/etc/rc.d/init.d/redis) Active: failed (Result: exit-code) since Wed 2019-04-03 14:25:04 CST; 3min 1s ago Docs: man:systemd-sysv-generator(8) Process: 4374 ExecStart=/etc/rc.d/init.d/redis start (code=exited, status=255) CGroup: /system.slice/redis.service 鈹斺攢3305 /usr/local/redis/bin/redis-server *:6379 Apr 03 14:25:04 redhat systemd[1]: Starting SYSV: Redis is an open source, advanced key-value store.... Apr 03 14:25:04 redhat redis[4374]: Starting Redis Server: [ OK ] Apr 03 14:25:04 redhat redis[4374]: /etc/rc.d/init.d/redis: line 29: [: $: integer expression expected Apr 03 14:25:04 redhat redis[4374]: /etc/rc.d/init.d/redis: line 30: return: $: numeric argument required Apr 03 14:25:04 redhat redis[4374]: /etc/rc.d/init.d/redis: line 66: exit: $: numeric argument required Apr 03 14:25:04 redhat systemd[1]: redis.service: control process exited, code=exited status=255 Apr 03 14:25:04 redhat systemd[1]: Failed to start SYSV: Redis is an open source, advanced key-value store.. Apr 03 14:25:04 redhat systemd[1]: Unit redis.service entered failed state. Apr 03 14:25:04 redhat systemd[1]: redis.service failed. /etc/init.d/redis: line 66: exit: $: numeric argument required 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 编程工作室 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览