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

标签 ubuntu lua redis

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

wheris lua

lua:/usr/bin/lua5.3

但是,如果我运行一个脚本:

redis-cli --eval '脚本名称'

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

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

最佳答案

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

有一些关于升级 Lua 版本的问题,但前景并不乐观。一个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/

相关文章:

java - 如何在 ubuntu 上设置系统变量并在 scala 中检索它

ubuntu - 安装 ROS2 "E: Unable to locate package ros-foxy-desktop"出现问题

lua - 使用 lua 进行速率限制

php - 在插入 Redis 之前,我如何在 PHP 中转义字符串?

ruby-on-rails - Redis 在大型 DEL 和 HMSET 函数上消耗最大内存

amazon-web-services - AWS Elasticache - Redis 与 MemcacheD

c - opencv 函数 cvCreateMatHeader 中的非正宽度或高度

c++ - 在 64 位机器上编译 32 位 :/usr/bin/ld: cannot find -l<someLibs>

lua - 逐字符读取文件到数组

io - 打开文件模式字符串 w+