redis6 installation tutorial

Install wget (tool to download files)

 

https://github.com/redis/redis/archive/6.2-rc2.tar.gz

 

 

Switch to the opt directory and create a soft folder

 

Download file to soft file

 

unzip files

Execution: make command (make is equivalent to a compilation tool)

If every day c language compiler, you can install gcc

After the installation is complete, switch to the src directory and see the redis-server, which also indicates that the installation has been successful

You can start it directly

 

  • Enter text mode to search: /install

 

Configure environment variables:

 

Let the configuration file take effect

View environment variables

Switch to the util directory and execute

May report an error, open when the error is reported

 

 

Start the redis service

Redis default port number 6379

Realize boot-up, put the redis startup script file in the init.d folder

 

View the startup script of redis:

Check whether the service has been started (it has been started, you can see the process id number)

 

What if you need to start a redis instance?

Same as above, but the port number needs to be different from the above (6379 has been used), which is equivalent to two processes of starting a software under the window

Verify whether it is started

Verify that two redis programs are started under the current system

to sum up:

Starting a process will be recorded under the file proc

Install the man program (a command help program)

Guess you like

Origin blog.csdn.net/yanfei464486/article/details/113719744