redis的安装启动与关闭
安装GCC9
echo "deb http://mirrors.163.com/debian sid main contrib non-free" >> ${HOME}/Desktop/install.list
cd /etc/apt/sources.list.d
sudo cp -r ${HOME}/Desktop/install.list /etc/apt/sources.list.d
sudo dpkg --add-architecture i386
sudo apt update
sudo apt-get install gcc g++ make pkg-config
会自动安装gcc-10
还需要安装tcl
sudo apt-get install tcl
官网下载redis6
sudo MALLOC=libc
cd src
sudo make MALLOC=libc install PREFIX=/opt/redis6
# 安装
[root@tangyouwei redis6]# sudo cp /opt/redis-6.2.3/redis.conf /opt/redis6/bin/
# 启动
[root@tangyouwei bin]# cd /opt/redis6/bin
[root@tangyouwei bin]# ./redis-server redis.conf &
# 停止
[root@tangyouwei bin]# ./redis-cli shutdown
make报错解决