如何連線至 GCP Memorystore
Last updated
Last updated
# 1. 首先建立 GCP instances,此步驟只需進行一次即可,除非事後刪除了。
# 此步驟建立 GCP instances,名稱自訂例如redis-forwarder,關於--machine-type 可自選。
gcloud compute instances create redis-forwarder --machine-type=f1-micro
# 2. 透過上述 instance 進行 Redis 服務連線
gcloud compute ssh redis-forwarder -- -N -L 6380:10.0.0.3:6379