gpt4 book ai didi

ubuntu - 更改redis-server使用的lua版本

转载 作者:IT王子 更新时间:2023-10-29 06:04:24 27 4
gpt4 key购买 nike

我在 VirtualBox 中使用 Ubuntu 16.10 并且我已经安装了 Lua5.3.1:

whereis lua

lua:/usr/bin/lua5.3

不过,如果我运行一个脚本:

redis-cli --eval '脚本名'

redis 将使用“Lua 5.1”(在脚本中通过“print(_VERSION)”找到)。

我需要使用 Lua5.3 运行,因为我需要支持大整数。如何更改版本以在 Redis 上运行?谢谢!

最佳答案

无法配置 Redis 服务器使用的 Lua 版本。

升级Lua版本的ticket有好几张,但都不是很看好。 quote来自 Redis 的创建者:

we don't have good reasons to upgrade to 5.3 since it breaks existing Lua scripts and for Redis most features of 5.3 are not critical to have...

一些其他的门票:

关于ubuntu - 更改redis-server使用的lua版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40787823/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com