在window系统中已经安装了redis不知道怎么启用多个端口号,比如启用6379,6380这两个端口要怎么做
Just open two instances: you need to use two redis configuration files, configure different port numbers respectively, redis-serverWhen starting, specify different configuration files.
redis-server
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
redis-server --port 6379
redis-server --port 6380
redis一般是在linux服务器上运行的,在windows下面没有测试过。你在你的安装包下面,执行redis-server --helpSee what parameters there are.
linux
windows
redis-server --help
For example, macbelow
mac
You can see and specify--port
--port
Just open two instances: you need to use two redis configuration files, configure different port numbers respectively,
redis-server
When 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
You can install both
redis
,一个启动命令是redis-server --port 6379
,另一个是redis-server --port 6380
redis
一般是在linux
服务器上运行的,在windows
下面没有测试过。你在你的安装包下面,执行redis-server --help
See what parameters there are.For example,
mac
belowYou can see and specify
--port