mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
remove redis part
This commit is contained in:
parent
ac0922d742
commit
bc78100613
93
GUIDES.md
93
GUIDES.md
@ -46,95 +46,4 @@ sudo apt-get install docker-ce docker-ce-cli containerd.io
|
|||||||
2. Visit [Docker Desktop for Windows](https://www.docker.com/products/docker-desktop)
|
2. Visit [Docker Desktop for Windows](https://www.docker.com/products/docker-desktop)
|
||||||
3. Download the installer
|
3. Download the installer
|
||||||
4. Run the installer and follow the prompts
|
4. Run the installer and follow the prompts
|
||||||
5. Start Docker Desktop from the Start menu
|
5. Start Docker Desktop from the Start menu
|
||||||
|
|
||||||
# Redis
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
### macOS
|
|
||||||
|
|
||||||
```bash
|
|
||||||
brew install redis
|
|
||||||
```
|
|
||||||
|
|
||||||
### Ubuntu
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install redis-server
|
|
||||||
```
|
|
||||||
|
|
||||||
### Windows
|
|
||||||
|
|
||||||
1. Download the Redis Windows Subsystem for Linux (WSL) package
|
|
||||||
2. Follow WSL installation instructions
|
|
||||||
3. Install Redis through WSL using Ubuntu instructions
|
|
||||||
|
|
||||||
## Start Redis Server
|
|
||||||
|
|
||||||
### macOS and Linux
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Start Redis server
|
|
||||||
redis-server
|
|
||||||
|
|
||||||
# To start Redis in the background
|
|
||||||
redis-server --daemonize yes
|
|
||||||
|
|
||||||
# To stop Redis server
|
|
||||||
redis-cli shutdown
|
|
||||||
```
|
|
||||||
|
|
||||||
### Using Docker
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Pull Redis image
|
|
||||||
docker pull redis
|
|
||||||
|
|
||||||
# Run Redis container
|
|
||||||
docker run --name my-redis -d -p 6379:6379 redis
|
|
||||||
|
|
||||||
# Connect to Redis CLI
|
|
||||||
docker exec -it my-redis redis-cli
|
|
||||||
```
|
|
||||||
|
|
||||||
## Testing Redis Connection
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Connect to Redis CLI
|
|
||||||
redis-cli
|
|
||||||
|
|
||||||
# Test connection
|
|
||||||
ping
|
|
||||||
# Should respond with "PONG"
|
|
||||||
|
|
||||||
# Set and get a test value
|
|
||||||
set test "Hello Redis"
|
|
||||||
get test
|
|
||||||
```
|
|
||||||
|
|
||||||
## Common Redis Commands
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Set a key
|
|
||||||
SET key value
|
|
||||||
|
|
||||||
# Get a value
|
|
||||||
GET key
|
|
||||||
|
|
||||||
# Delete a key
|
|
||||||
DEL key
|
|
||||||
|
|
||||||
# Check if key exists
|
|
||||||
EXISTS key
|
|
||||||
|
|
||||||
# Set expiration (in seconds)
|
|
||||||
EXPIRE key seconds
|
|
||||||
|
|
||||||
# List all keys
|
|
||||||
KEYS *
|
|
||||||
|
|
||||||
# Get key type
|
|
||||||
TYPE key
|
|
||||||
```
|
|
Loading…
Reference in New Issue
Block a user