macOS % redis-cli
Could not connect to Redis at 127.0.0.1:6379: Connection refused
not connected>
If you are trying to connect to the redis-cli and you get an error connecting to redis at localhost port 6379 then the fix is simple, first make sure that the Redis server is running, if not, then run the below command in the terminal to turn it on
redis-server
macOS
If Redis is not installed on your Mac, then you can install it using the brew package manager,
brew install redis
Next, you can start the server as follows,
brew services start redis
Linux
If you are on a Linux system, then you can install Redis as follows.
sudo apt-get install redis
And we can start the Redis server as follows,
sudo service redis start
Facing issues? Have Questions? Post them here! I am happy to answer!
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
- [Fix] Error 1020 Cloudflare: Access was denied
- What is an Authorization Code Grant? OAuth 2.0
- Fix: psql: error: connection to server at localhost (::1) port 5432 failed: FATAL: database does not exist
- 100+ SEO Tips to improve your website search ranking
- How to submit website to dmoz directory
- How to check the version of NodeJS installed
- How to enter Rockstar Activation Code?
- Background task activation is spurious error - Windows 10, Office 2016, Office 365
- Angular CLI ng Error: You need to specify a command before moving on. Use --help to view the available commands
- cURL HTTP GET request command examples
- Fix - JioCinema Something Went Wrong Please Try Again Error 8001 while streaming IPL Cricket Live
- How to remove password from pdf file
- How to identify the version of IntelliJ
- Command: How to scp a file to remote server location?
- How to add Widgets to MacBook Desktop
- Setting up RSS feeds notifications within Outlook
- Fix - Website Connection timed out Error Code 522 (Cloudflare)
- How to fix: Please check your network connection (Retry)
- Fix: Could not connect to Redis at 127.0.0.1:6379: Connection refused
- Accept Only 0-9 Numbers RegEx Example
- How to create a New Project in Visual Studio Code (VS Code)
- Top 10 emerging breakthrough trending technologies
- Free Unlimited Calls from MTNL & BSNL Landlines from 1st May 2015
- [Error] zsh: command not found: mvn
- How to Scan iPhone for Virus? Is Antivirus it really required?
- Add Custom External Link to SharePoint Site Navigation - SharePoint
- 14 Must Know Windows Logo Keyboard Shortcuts for Windows 10 and 11 - Windows-11
- Enable JSON Pretty Print in Java Jackson - Java
- How to Know the Line Number on Windows Notepad App - Windows-11
- Java: Testing Private Methods in JUnit using reflection API Example - Java
- Install Native M1/M2 Apple Silicon based IntelliJ IDEA IDE on Mac - MacOS
- Clear Screen shortcut macOS Terminal - MacOS
- Install Notepad++ silently using Windows Powershell - NotepadPlusPlus