Ubuntu20.04 install redis


1. Install redis

sudo apt-get install redis-server -y

2. Modify the redis configuration file as needed

vim /etc/redis/redis.conf

3. Start the redis service

# Start the redis service
service redis-server start

# Close the redis service
service redis-server stop

# restart redis service
service redis-server restart

# View redis status
service redis-server status

Recommended Today

Detailed explanation of Redis data structure (2) – dictionary dict in redis

prerequisite knowledge Dictionaries, also known as symbol tables or maps, can be simply understood asKey-value pair key-value。For example, Java’s common collection class HashMap is used to store key-value pairs.The key (key) in the dictionary is unique. Due to this feature, we can find the corresponding value (value) according to the key (key), or perform update […]