更改套接字文件位置
更改套接字文件位置。
Redis 企业软件 |
---|
默认套接字文件位置
Redis Enterprise Software 中的套接字文件有两个默认位置:
-
/tmp
- 在早于 5.2.2 的 Redis Enterprise Software 版本的全新安装中 -
/var/opt/redislabs/run
- 在 Redis Enterprise Software 版本 5.2.2 及更高版本的全新安装中注意:如果您运行任何维护过程来删除/tmp
目录。
当您将 Redis Enterprise Software 从早期版本升级到 5.2.2 或更高版本时,套接字文件 默认情况下不会移动到新位置。您需要指定自定义位置 对于套接字文件,或者在安装后使用以下过程。
更改套接字文件位置
要更改套接字文件的位置:
-
在集群中的每个节点上,运行:
sudo rlutil create_socket_path socket_path=/var/opt/redislabs/run
-
Identify the node with the
master
role by running the following command on any node in the cluster:rladmin status nodes
-
On the master node, change the socket file location:
sudo rlutil set_socket_path socket_path=/var/opt/redislabs/run
-
To update the socket file location for all other nodes, restart Redis Enterprise Software on each node in the cluster, one at a time:
sudo service rlec_supervisor restart
-
Restart each database in the cluster to update the socket file location:
rladmin restart db <db name>
Warning:Restarting databases can cause interruptions in data traffic.
On this page