# By default protected mode is enabled. You should disable it only if # you are sure you want clients from other hosts to connect to Redis # even if no authentication is configured, nor a specific set of interfaces # are explicitly listed using the "bind" directive. #protected-mode yes protected-mode no
# By default Redis does not run as a daemon. Use 'yes' if you need it. # Note that Redis will write a pid file in /var/run/redis.pid when daemonized. # daemonize yes # apt 安装方式这里默认是 yes 开启守护线程,改错的就是这个地方 # 但是自己手动官网下压缩包这个值是 no,才要改成 yes daemonize no
# IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES # JUST COMMENT THE FOLLOWING LINE. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #bind 127.0.0.1 ::1
因为当时没有立刻重启验证没发现问题,后来过几天用到了 Redis 测试能直接连接就直接用了。然后在跑项目的时候就出问题了。项目中有用到 Lua 脚本,项目刚启动的时候没问题,但过一两分钟就会报 NOSCRIPT No matching script. Please use EVAL 脚本找不到的问题,在服务器上查询脚本是否存在: