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
WeChat reward
Reward from Alipay