Understand the default Redis configuration
By default, the Redis server is configured to run on the default port 6379. You can connect to the server locally or remotely using the redis-cli command line tool Replace the YOURPASSWORD placeholder with the value of your password.
$ redis-cli -h localhost -a YOURPASSWORD
The Redis server is configured following the security guidelines from the official Redis documentation. Although you use a password to connect to the server, it is strongly recommended to change your firewall policies to only accept connections from the IP address that you are using to connect to the Redis server.
In order to check which Redis version your machine is running, execute the following command from the console:
$ redis-server -v
Redis configuration file
The Redis configuration file is located at installdir/redis/etc/redis.conf.
The default port on which Redis listens is 6379.
Redis log file
The Redis log file is created at installdir/redis/var/log/redis-server.log.