I sucesfully started redis-server

18651:C 07 Jun 16:49:09.526 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
18651:C 07 Jun 16:49:09.527 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=18651, just started
18651:C 07 Jun 16:49:09.527 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
18651:M 07 Jun 16:49:09.528 * Increased maximum number of open files to 10032 (it was originally set to 7168).
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 4.0.9 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 18651
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

18651:M 07 Jun 16:49:09.530 # Server initialized
18651:M 07 Jun 16:49:09.530 * DB loaded from disk: 0.000 seconds
18651:M 07 Jun 16:49:09.530 * Ready to accept connections

but when I try to run redis-cli it return error like this Could not connect to Redis at 127.0.0.1:6379: Can't assign requested address

I'm using osx.. is there any permission I need to change to access that port?

Comment From: itamarhaber

Hello @reyapr

This looks like a Darwin thing. A quick search on Google taught me that the probable solution to the issue that you're experiencing is flushing the routing table, e.g.

sudo ifconfig en0 down
sudo route flush
sudo ifconfig en0 up

Please verify that this resolves it.

Comment From: reyapr

thanks for the advice @itamarhaber

but it's still not working

Comment From: itamarhaber

Try replacing en0 with your wifi inteface, rebooting and other forms of flushing. In any case, this does not appear to be Redis-specific issue IMO ;)

Keep in mind that this issue tracker should be used for reporting bugs or proposing improvements to the Redis server (and assorted tools). Questions should be directed to the community:

Comment From: itamarhaber

Closing - feel free to reopen or create a new issue if needed.