redis在Debian的部署实践

  scp C:\path\to\redis-7.0.15.tar.gz root@remote_host:/root
  apt install -y gcc
  make
  make install 
  vim redis.conf
  cd src
  redis-server ../redis.conf
  vim redis.conf

把bind 这一行注释掉

protected-mode把这个参数改为no

把port 更改为你想要的端口

在里面添加requirepass yourpasswd

OK,大概流程结束,剩下就是持久化之类的了,用了再说,暂时先不需要