You can download the latest version ofRedisFromhttps://redis.io/download.
Redis can be installed on any server. In this case, we installed it locally for testing.
On macOS, installation using Homebrew is simpler. run:
brew install redis
Then run
brew services start redis
Let Redis start automatically, and restart when the computer reboots.
You can also start it manually with the following command:
redis-server /usr/local/etc/redis.conf
On Linux Ubuntu, you need to run
sudo apt-get install redis-server
Redis will automatically start and run.
Once started, Redis will listenport 6379.
On the local server, no password is required to make it run. However, when Redis can access the Internet, please make sure you areredis.conf
The location of the configuration file depends on your operating system.
More redis tutorials:
- Introduction to Redis
- How to install Redis
- The first step of Redis
- Redis list
- Use Redis set
- How to use Redis to sort a list
- How to use Redis hash
- Redis publish/subscribe