前言:超麻煩der 環境:Ubuntu 20.04 on NUC i7 創建目錄(開一個project「redis-cluster」) mkdir -p /your_project_root_path/redis-cluster 切換至指定目錄 cd /your_project_root_path/redis-cluster/ 編寫 redis-cluster.tmpl 配置文件 vim redis-cluster.tmpl 配置文件 redis-cluster.tmpl 內容 port ${PORT} requirepass your_redis_password_here masterauth your_redis_password_here protected-mode