redis 怎么启用多端口
世界只因有你
世界只因有你 2017-04-25 09:03:01
0
2
660

在window系统中已经安装了redis

不知道怎么启用多个端口号,比如启用6379,6380这两个端口要怎么做

世界只因有你
世界只因有你

reply all(2)
漂亮男人

Just open two instances: you need to use two redis configuration files, configure different port numbers respectively, redis-serverWhen starting, specify different configuration files.

为情所困

Generally, two instances are started.

Redis is usually started by specifying a configuration file or specifying port parameters, such as

redis-server /etc/redis/redis_6379.conf
# 或者
redis-server --port 6379

You can install bothredis,一个启动命令是redis-server --port 6379,另一个是redis-server --port 6380

redis一般是在linux服务器上运行的,在windows下面没有测试过。你在你的安装包下面,执行redis-server --helpSee what parameters there are.

For example, macbelow

You can see and specify--port

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template