如何查看redis安装位置_如何安装Redis

如何查看redis安装位置

You can download the latest version of Redis from https://redis.io/download.

您可以从https://redis.io/download下载最新版本的Redis

Redis can be installed on any server. In this case we’ll install it locally for testing.

Redis可以安装在任何服务器上。 在这种情况下,我们将其安装在本地进行测试。

On macOS, installation is simpler using Homebrew. Run:

在macOS上,使用Homebrew的安装更简单。 跑:

brew install redis

Then run

然后跑

brew services start redis

to make Redis start automatically, and re-start when the computer reboots.

使Redis自动启动,并在计算机重新启动时重新启动。

You can also start it manually using:

您也可以使用以下命令手动启动它:

redis-server /usr/local/etc/redis.conf

On Linux Ubuntu you’ll need to run

在Linux Ubuntu上,您需要运行

sudo apt-get install redis-server

and Redis will automatically be up and running.

Redis将自动启动并运行。

Once it’s started, Redis listens on port 6379.

一旦启动,Redis将监听端口6379

On a local server it’s fine to keep it running without a password. But when Redis is exposed to the Internet, make sure you configure a password in the redis.conf configuration file, whose location depends on your Operating System.

在本地服务器上,无需输入密码即可使其运行。 但是,当Redis暴露于Internet时,请确保在redis.conf配置文件中配置密码,该文件的位置取决于您的操作系统。

翻译自: https://flaviocopes.com/redis-installation/

如何查看redis安装位置

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值