The first time you install Redis, you get a lot of trouble

Download and store redis-.. *. Tar. After gz

tar -zvxf  redis-*.*.*.tar.gz
Copy the code

Then redis-.. appears under the current folder. * folder

It was fine before

make 
Copy the code

(!!)

A bunch of mistakes

Yum install gcc-C ++

After installation, make fails again in the same location

Searching for a while found that in addition to c++ should be installed a bunch of related files

mark

1. Install GCC package:  yum install cpp yum install binutils yum install glibc yum install glibc-kernheaders yum install glibc-common yum 2, install GCC yum -y install centos-release-scl yum -y install Devtoolset-9 -gcc devtoolset-9-gcc-c++ devtoolset-9-binutils SCL enable devtoolset-9 bash 3. If the make or not successful and submitted to the same error, first make distclean, in make the original link: https://blog.csdn.net/aaaPostcard/article/details/112468265Copy the code

Good guy or just this year hot

after

make

A success

make PREFIX=/usr/local/redis install
Copy the code

After the installation, put the configuration file in bin

cp redis.conf /usr/local/redis/bin
Copy the code

Server startup

cd /usr/local/redis/bin

./redis.server redis.conf
Copy the code
_. - ` ` __ '- _ _. - ` ` `. ` _.' '- _ Redis 6.0.9 (00000000/0), 64 - bit. - ` `. - ` ` `. ` ` ` \ / _, _' -. _ ('. - ` | `, ) Running in standalone mode |`-._`-... - ` __... -.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 30902 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _. - '| ` - _ ` - _ ` - __. -' _. - '_. -' | | ` - _ ` - _ _. - '_. -' | ` - _ ` - _ ` - __. - '_. -' _. - '` - _ ` -. __. -' _. - '` -) _ _) -' ` - __. - 'Copy the code

Start a random client

./redis.cli
Copy the code
127.0.0.1:6379 >Copy the code

Over~~