Pagoda server multi site configuration with multiple Redis nodes and self start scheme

4,131 Secondary reading
96 comments

There are 2921 characters in total, and it is estimated that it will take 8 minutes to complete the reading.

Existing problems:
When a server deploys multiple sites, the first website is installed with the Redis plug-in, and the connection is successful. Since there is only one Redis port, when the second and third websites install Redis extensions, they will automatically jump to the first site. Therefore, there will be conflicts after multiple websites are deployed. As a result, accessing different websites on the same server on one computer will pop up the Redis node of another website. I'm really upset!

Problems to be solved:
When deploying different sites on the same server, multiple Redis instances need to be started: one Redis server is divided into multiple nodes, and each node is assigned a port (63806381...). The default port is 6379. Each node corresponds to a Redis configuration file, such as redis6380.conf redis6381.conf。

Sorry, you can only read hidden content if you have commented on this article. comment


In the same way, you can add more than N if you want, and then just do whatever you want

Reward me

 Pagoda server multi site configuration with multiple Redis nodes and self start scheme WeChat reward  Pagoda server multi site configuration with multiple Redis nodes and self start scheme Reward from Alipay

End of body
  zero
Comments (96 comments)
2020-04-02 20:50:13 reply

I like myself!!!

  Windows    Chrome Luzhou Telecom, Sichuan Province, China
2020-04-14 18:35:15 reply

I like myself

  Windows    Chrome Xiamen Telecom, Fujian Province, China
2020-04-16 11:00:31 reply

Can I use it

  Windows    Chrome Yangjiang Telecom, Guangdong Province, China
    2020-04-16 11:02:18 reply

    @xunshu  Must be usable! Although my articles are relatively few, we must ensure the quality!

      Windows    Chrome Luzhou Telecom, Sichuan Province, China
      2020-04-16 11:55:54 reply

      @Happy Ha ha It seems that I can't, prompt Redis (- 2)

        Windows    Chrome Yangjiang Telecom, Guangdong Province, China
2020-04-16 11:57:20 reply

It means that there is really no such problem. Please check whether there is something wrong!

  Windows    Chrome Luzhou Telecom, Sichuan Province, China
2020-04-16 13:59:09 reply

Thanks for sharing!

  Windows    Chrome Hengyang Telecom, Hunan Province, China
2020-04-21 09:39:26 reply

Try it

  Macintosh    Chrome Nanning Telecom, Guangxi, China
2020-04-21 09:40:29 reply

Will the solution work?

  Macintosh    Chrome Nanning Telecom, Guangxi, China
2020-04-23 15:57:03 reply

The building owner is powerful

  Windows    Firefox Xi'an Telecom, Shaanxi Province, China
2020-04-24 15:32:35 reply

Trying

  Windows    Chrome Harbin Telecom, Heilongjiang Province, China
    2020-04-24 16:22:04 reply

    @lc1144  Try slowly. Don't rush. Be steady

      Windows    Chrome Luzhou Telecom, Sichuan Province, China
      2020-04-24 21:05:26 reply

      @Happy Ha ha After completing each step, why does netstat - ntlp still not have port 6380

        Windows    Chrome China Unicom, Harbin, Heilongjiang Province
      2020-04-24 21:47:38 reply

      @Happy Ha ha How can I connect the building master? The port number is 6380? Or how to tell

        Windows    Chrome China Unicom, Harbin, Heilongjiang Province
        2020-04-28 12:00:11 reply

        @lc1144  Have you started the service

          Windows    Chrome Luzhou Telecom, Sichuan Province, China
2020-04-25 00:21:59 reply

Nice Nice Look at that

  Windows    Firefox Xi'an Telecom, Shaanxi Province, China
2020-04-29 15:57:36 reply

It's awesome My song

  Macintosh    Chrome Guangzhou Telecom, Guangdong Province, China
2020-04-29 15:58:24 reply

This is what we need

  Macintosh    Chrome Guangzhou Telecom, Guangdong Province, China
2020-05-06 15:29:14 reply

This is what we need

  Windows    Chrome PCCW Hong Kong, China
    2020-05-06 16:00:30 reply

    @sjdd0001  Sorry, the review was a little late!

      Windows    Chrome Luzhou Telecom, Sichuan Province, China
2020-05-18 18:04:35 reply

sixty-six thousand six hundred and sixty-six trillion and six hundred and sixty-six billion six hundred and sixty-six million six hundred and sixty-six thousand six hundred and sixty-six

  Windows    Chrome China Guangxi Fangchenggang Telecom
2020-05-22 10:12:14 reply

Civilization~~

  Windows    Chrome China Unicom, Weifang, Shandong Province
2020-05-22 10:12:37 reply

Civilization~~

  Windows    Chrome China Unicom, Weifang, Shandong Province
2020-05-22 10:13:01 reply

Already logged in as kantPy. cancellation?

  Windows    Chrome China Unicom, Weifang, Shandong Province
    2020-05-22 12:42:14 reply

    @kantPy  Sorry, the review was a little late!

      Windows    Chrome Luzhou Telecom, Sichuan Province, China
2020-05-24 15:13:51 reply

Nice Nice Look at that

  Windows    Chrome Xiamen Telecom, Fujian Province, China
2020-05-24 15:14:53 reply

Take a look. I hope it can be used

  Windows    Chrome Xiamen Telecom, Fujian Province, China
2020-05-24 15:15:10 reply

This is what you need This is what you need This is what you need

  Windows    Chrome Xiamen Telecom, Fujian Province, China
2020-05-24 15:15:30 reply

This is what we need

  Windows    Chrome Xiamen Telecom, Fujian Province, China
2020-05-27 20:39:13 reply

Try it

  Macintosh    Chrome Xiaogan Telecom, Hubei Province, China
2020-05-28 10:37:24 reply

Try it

  Windows    Chrome Xiamen Telecom, Fujian Province, China
2020-06-08 23:29:00 reply

Try it, I need this!

  Windows    Chrome Baotou Telecom, Inner Mongolia, China
2020-06-09 14:20:09 reply

zanzan!!

  Windows    Chrome Guangzhou Telecom, Guangdong Province, China
2020-06-13 14:53:39 reply

Try it first

  Windows    Chrome China Unicom, Shijiazhuang, Hebei Province
2020-06-14 17:18:16 reply

Come and learn

  Windows    Chrome Qinzhou Telecom, Guangxi, China
2020-06-16 12:17:37 reply

Learn the same problem

  Windows    Chrome China Mobile, Wuxi, Jiangsu Province
2020-06-17 18:24:47 reply

fantastic

  Windows    Chrome Changzhou Telecom, Jiangsu Province, China
2020-06-17 18:25:28 reply

Just met the same problem

  Windows    Chrome Changzhou Telecom, Jiangsu Province, China
2020-06-19 15:48:17 reply

Just met the same problem

  Windows    Chrome Chengdu Telecom, Sichuan Province, China
2020-06-19 15:49:04 reply

Commented but couldn't see it?

  Windows    Chrome Chengdu Telecom, Sichuan Province, China
2020-06-20 23:16:52 reply

It's really a good article, worth learning and hard work

  Windows    Chrome China Telecom, Yancheng, Jiangsu Province
2020-06-29 16:12:51 reply

Learning

  Windows    Chrome Jinhua Telecom, Zhejiang Province, China
2020-06-30 14:45:47 reply

I'll come in and have a look

  Windows    Firefox Shijiazhuang Telecom, Hebei Province, China
2020-07-12 16:27:45 reply

Very much, thank you!

  Windows    Chrome Ganzhou Telecom, Jiangxi Province, China
2020-07-22 09:25:52 reply

Look, what's up

  Windows    Chrome Xiaogan Telecom, Hubei Province, China
2020-07-22 09:58:23 reply

The third step is which file to modify

  Windows    Chrome Xiaogan Telecom, Hubei Province, China
2020-07-28 16:53:16 reply

I want to see how it is, thank you

  Windows    Chrome Jieyang Telecom, Guangdong Province, China
2020-07-29 23:05:01 reply

I think it's very useful. Let me have a look

  Macintosh    Chrome China Telecom, Taiwan Province, China
2020-07-30 09:47:00 reply

Hello, my current operation is the same as yours, but it seems that the new configuration is invalid. Do I redis_6380. log? " What about dump_6380.rdb copying these two to change their names?

  Windows    Chrome Jieyang Telecom, Guangdong Province, China
2020-08-16 16:01:20 reply

Let's see what's going on

  Windows    Chrome Hong Kong, China
2020-08-21 19:31:59 reply

Let me see how

  Windows    Chrome China Unicom, Luliang, Shanxi Province
2020-09-17 02:33:12 reply

Good articles must be supported and knowledge will increase.

  Windows    Chrome Fuzhou Telecom, Fujian Province, China
2020-09-23 23:59:29 reply

Do you want to give me a praise first, and then send a red envelope or something? Just think about it and be happy

  Macintosh    Edge PCCW Hong Kong, China
2020-09-30 13:05:38 reply

Thanks for sharing, see how to operate

  Windows    Chrome Qinzhou Telecom, Guangxi, China
2020-10-29 17:28:47 reply

Good things We're looking

  Windows    Chrome Kunming Telecom, Yunnan Province, China
2020-11-17 20:47:09 reply

Come and have a try

  Macintosh    Firefox Beijing Haokuan Network, Beijing, China
2020-12-03 16:59:42 reply

First!

  Windows    Firefox Xuchang Telecom, Henan Province, China
2020-12-08 16:40:23 reply

Need to learn.

  Windows    Chrome Jiangmen Telecom, Guangdong Province, China
2020-12-31 14:30:25 reply

Good things We're looking

  Windows    Chrome China Mobile Changchun, Jilin Province

666 Look

  Windows    Chrome Bengbu Telecom, Anhui Province, China
2021-01-06 14:21:28 reply

Useful

  Windows    Chrome Xuzhou Telecom, Jiangsu Province, China
2021-01-19 01:43:47 reply

Take a look

  Windows    Chrome Chongqing Telecom, Chongqing, China
2021-01-26 20:28:28 reply

Come and have a look

  Macintosh    Chrome China Mobile, Huzhou, Zhejiang Province
2021-04-12 13:41:37 reply

Look at the bottom

  Macintosh    Chrome Zhengzhou Telecom, Henan Province, China
2021-08-19 08:51:13 reply

See if it's feasible

  Windows    Chrome Jinan Telecom, Shandong Province, China
2021-08-24 13:16:44 reply

It's just necessary. Let's see how to do it

  Windows    Chrome Changsha Telecom, Hunan Province, China
2021-09-14 19:01:35 reply

Very practical

  Macintosh    Chrome China Telecom, Yancheng, Jiangsu Province
2021-10-02 13:00:42 reply

Learn

  Windows    Chrome China Unicom, Changchun, Jilin Province
2021-10-02 13:21:42 reply

Add one last sentence
service redis-6380 start
It would be perfect

  Windows    Chrome China Unicom, Changchun, Jilin Province
2021-10-02 18:07:57 reply

After testing, the newly opened port 6380 has a problem: OOM command not allowed when used memory>'maxmemory
Redis memory is set to 500M
Maxmemory_policy is set to allkeys lru
6379 Everything is OK
6380 memory overflow

  Windows    Chrome China Unicom, Changchun, Jilin Province
2021-10-07 02:55:23 reply

Comments must contain Chinese characters!

  Windows    Chrome China Unicom, Guiyang, Guizhou Province
2021-10-20 20:58:17 reply

Thanks for sharing. I'm just looking for solutions in this area.

  Windows    Chrome Changsha Telecom, Hunan Province, China
2021-11-01 09:29:43 reply

Thanks for sharing

  Windows    Chrome Nanjing Telecom, Jiangsu Province, China

Really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really

  Windows    Chrome Zhangzhou Telecom, Fujian Province, China
2021-11-23 17:01:24 reply

have a look

  Windows    Chrome Guangzhou Telecom, Guangdong Province, China
2021-11-24 13:56:59 reply

Try it

  Windows    Chrome Xiamen Telecom, Fujian Province, China
2021-12-20 15:21:52 reply

Try it

  Windows    Chrome China Telecom, Shaoyang, Hunan Province
2021-12-26 00:43:17 reply

I want to see how your redis.conf is configured.

  Macintosh    Chrome Shenzhen Telecom, Guangdong Province, China
2022-01-15 19:26:45 reply

Learn

  Windows    Chrome Microsoft
2022-02-10 14:44:19 reply

Take a look and learn

  Windows    Chrome Xi'an Telecom, Shaanxi Province, China
2022-02-25 09:55:52 reply

look down

  Windows    Chrome California, USA
2022-03-06 16:19:58 reply

Learn

  Macintosh    Chrome Chifeng Telecom, Inner Mongolia, China
2022-03-23 08:54:12 reply

Like 66666

  Windows    Chrome Philippines Philippines Long Distance Telephone Company
2022-04-17 19:42:08 reply

Like 66666

  Windows    Edge Dalian Telecom, Liaoning Province, China
2023-04-02 21:03:53 reply

Xiaobai comes to learn

  Windows    Chrome Dalian Telecom, Liaoning Province, China
2023-11-21 14:41:25 reply

Is it the configuration of the pagoda panel?

  Windows    Edge China Unicom, Shuozhou, Shanxi Province