Step‑by‑Step Guide to Install and Configure CacheCloud for Redis Management
This guide walks you through preparing a Linux host, installing JDK, Maven, MySQL, downloading CacheCloud, configuring its database and properties, building the project, deploying the web service, and using the UI to add machines and create or import Redis clusters.
Before installing CacheCloud, prepare a fresh Linux machine by installing the required packages:
yum install gcc gcc-c++ vim-enhanced glibc make unzip openssl openssl-devel openssh-server openssh-clients -yNext, install the runtime dependencies:
JDK 1.7
Maven 3
MySQL 5.6 (modify /etc/my.cnf to add innodb_file_per_table and start the service with service mysqld start)
Download the latest CacheCloud source package, unzip it under /root, and import the database schema:
cd /root unzip cachecloud-master.zip mysql -uroot -p111111 create database cachecloud; use cachecloud; source /root/cachecloud-master/script/cachecloud.sql; grant all privileges on cachecloud.* to 'admin'@'localhost' identified by 'admin'; flush privileges;Adjust the online configuration file
cachecloud-master/cachecloud-open-web/src/main/swap/online.propertieswith the following values:
cachecloud.db.url = jdbc:mysql://127.0.0.1:3306/cachecloud
cachecloud.db.user = admin
cachecloud.db.password = admin
cachecloud.maxPoolSize = 20
isClustered = true
isDebug = false
spring-file=classpath:spring/spring-online.xml
log_base=/opt/cachecloud-web/logs
web.port=8585
log.level=WARNBuild the project using Maven:
cd cachecloud-master mvn clean compile install -PonlineCreate the deployment directory and copy the built artifacts:
mkdir /opt/cachecloud-web cp cachecloud-master/cachecloud-open-web/target/cachecloud-open-web-1.0-SNAPSHOT.war /opt/cachecloud-web/ cp cachecloud-master/cachecloud-open-web/src/main/resources/cachecloud-web.conf /opt/cachecloud-web/cachecloud-open-web-1.0-SNAPSHOT.conf cp cachecloud-master/script/start.sh /opt/cachecloud-web/ cp cachecloud-master/script/stop.sh /opt/cachecloud-web/Start the service and verify that it listens on port 8585:
sh -x start.sh netstat -antulp | grep :8585Open a browser at http://<em>IP</em>:8585, log in with username admin and password admin.
Basic Usage After Installation
1. Add Machines
Configure SSH user and password in the system configuration page so CacheCloud can collect machine information.
In the Machine Management section, click “Add Machine” and fill in the host details.
2. Create a Redis Cluster
In CacheCloud, go to “Application Apply”, fill in the required information, and submit the request.
After approval, navigate to the workflow approval page, select the newly created appID (e.g., 10007), and proceed to deployment.
Choose the storage type (e.g., redis‑cluster) and start the deployment after format check.
After deployment, the cluster status page shows six nodes, confirming successful creation.
3. Import Existing Applications
To import an existing redis‑cluster, select “Import Application” in the backend, upload the configuration, and confirm the format check.
For redis‑sentinel, change the storage type to “redis‑sentinel”, fill in instance details, and follow the same import steps.
These steps complete the installation, configuration, and basic operation of CacheCloud for managing Redis standalone, sentinel, and cluster deployments.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Full-Stack DevOps & Kubernetes
Focused on sharing DevOps, Kubernetes, Linux, Docker, Istio, microservices, Spring Cloud, Python, Go, databases, Nginx, Tomcat, cloud computing, and related technologies.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
