2024-06-03
This commit is contained in:
		
							
								
								
									
										29
									
								
								_-Review/redis.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								_-Review/redis.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,29 @@ | ||||
| --- | ||||
| type: "note" | ||||
| --- | ||||
|  | ||||
| # redis | ||||
|  | ||||
| - [redis](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/linux/) | ||||
| - [how-to-install-and-secure-redis-on-ubuntu-20-04](https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-20-04) | ||||
|  | ||||
| ```bash | ||||
| curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg | ||||
| sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg | ||||
| echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list | ||||
| rm /etc/apt/sources.list.d/redis.list | ||||
| apt install redis-server | ||||
| nano /etc/redis/redis.conf | ||||
| ``` | ||||
|  | ||||
| ```conf | ||||
| ... | ||||
| supervised systemd | ||||
| ... | ||||
| ``` | ||||
|  | ||||
| ```bash | ||||
| systemctl restart redis.service | ||||
| systemctl status redis.service | ||||
| redis-cli | ||||
| ``` | ||||
		Reference in New Issue
	
	Block a user