Install redis on mac system and install redisDesktopManager visualization tool

1. Install redis in mac environment

step1: If the brew package management tool is not installed, enter the installation command on the command line

/bin/bash -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

step2: After the above steps are installed, start installing redis and enter the installation command:

brew install redis

Step3: Modify the relevant content of the configuration file:

1. On the Finder interface command+shift+G, enter /usr/local/etc/, and then open redis.config.

2. Configure it as a daemon thread first: find daemonize no and change no to yes

3. Comment out bind 127.0.0.1 -:: 1

4. Turn off the protected mode: protected -mode yes change yes to no

5. Set password: requirepass foobared Change foobared to 111, the password is 111.

step4: You can start testing using redis

1. Start redis as a daemon thread and enter in the terminal: redis-server /usr/local/etc/redis.conf

Then use the ps aux | grep redis command to check whether redis is enabled:

Before command input:

After the command is entered:

2. Enter the command: redis-cli: use the client to connect to the server.

Enter auth 111, because the password is set before, so you need to enter the password to have permission here.

3. Close redis: Enter quit to return to the previous command interface, then enter shutdown or directly enter shutdown on the current command line and then quit to exit.

2. Install the RedisDesktopManager visualization tool in the mac environment

step1: https://pan.baidu.com/s/10vpdhw7YfDD7G4yZCGtqQg?_at_=1673701651004Download the dmg

step2: After the installation is complete:

step3: We can see the newly created jack here

Guess you like

Origin blog.csdn.net/m0_58169865/article/details/128689475