diff --git a/Caching/redis/install.md b/Caching/redis/install.md new file mode 100644 index 0000000..608916d --- /dev/null +++ b/Caching/redis/install.md @@ -0,0 +1,101 @@ + +# Setting Up and Configuring Redis Server + +## 1. Install Redis Server +Update your package list and install Redis server: +```bash +apt update && apt install redis-server -y +``` + +## 2. Update Redis Configuration +Edit the Redis configuration file: +```bash +vim /etc/redis/redis.conf +``` + +### Change Supervision Service to Systemd +Locate the `supervised` directive and change its value to `systemd`: +```conf +supervised systemd +``` + +### Restart the Redis Service +Restart the Redis service to apply changes: +```bash +systemctl restart redis +``` + +## 3. Test Redis Server +Use the Redis CLI to test the server: +```bash +redis-cli +``` + +Run the following commands: +- Test connectivity: + ```bash + ping + ``` + Expected output: + ``` + PONG + ``` +- Test basic operations: + ```bash + set test "This is test" + get test + ``` + Expected output: + ``` + "This is test" + ``` + +## 4. Configure Binding +Edit the Redis configuration file: +```bash +vim /etc/redis/redis.conf +``` + +### Change Binding Address +Update the `bind` directive to allow external connections. For example: +```conf +bind 0.0.0.0 +``` +> **Note:** Replace `0.0.0.0` with the specific IP addresses you want to allow, if necessary. + +## 5. Set a Password +Secure your Redis server by setting a password: +```bash +vim /etc/redis/redis.conf +``` + +Find the `requirepass` directive and set your desired password: +```conf +requirepass +``` + +### Test Authentication +To test the password configuration: +```bash +redis-cli +auth +``` + +Run the `ping` command again: +```bash +ping +``` +Expected output: +``` +PONG +``` + +--- +Now your Redis server is installed, configured, and secured! +``` + +### Improvements Made: +1. **Structure and Clarity**: Organized steps into numbered sections with headings and subheadings. +2. **Consistency**: Used consistent formatting for commands and expected outputs. +3. **Readability**: Improved explanations and added context where necessary. +4. **Security Note**: Highlighted the importance of replacing the bind address and password for better security. \ No newline at end of file diff --git a/Containerization & Orchestration/kubernetes/1-Information.md b/Containerization & Orchestration/Kubernetes/1-Information.md similarity index 100% rename from Containerization & Orchestration/kubernetes/1-Information.md rename to Containerization & Orchestration/Kubernetes/1-Information.md diff --git a/Containerization & Orchestration/kubernetes/2-Installtion.md b/Containerization & Orchestration/Kubernetes/2-Installtion.md similarity index 100% rename from Containerization & Orchestration/kubernetes/2-Installtion.md rename to Containerization & Orchestration/Kubernetes/2-Installtion.md diff --git a/Containerization & Orchestration/kubernetes/3-Commands.md b/Containerization & Orchestration/Kubernetes/3-Commands.md similarity index 100% rename from Containerization & Orchestration/kubernetes/3-Commands.md rename to Containerization & Orchestration/Kubernetes/3-Commands.md diff --git a/Containerization & Orchestration/kubernetes/workloads/all.md b/Containerization & Orchestration/Kubernetes/workloads/all.md similarity index 100% rename from Containerization & Orchestration/kubernetes/workloads/all.md rename to Containerization & Orchestration/Kubernetes/workloads/all.md