From f2db972bd959aab61f0df577140c9a90f9bc45ac Mon Sep 17 00:00:00 2001 From: 8ga Date: Thu, 29 May 2025 10:28:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20ubuntu-redis.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ubuntu-redis.md | 69 ------------------------------------------------- 1 file changed, 69 deletions(-) delete mode 100644 ubuntu-redis.md diff --git a/ubuntu-redis.md b/ubuntu-redis.md deleted file mode 100644 index b7d68a8..0000000 --- a/ubuntu-redis.md +++ /dev/null @@ -1,69 +0,0 @@ -下载解压 -``` -cd /usr/local -``` -``` -wget https://download.redis.io/releases/redis-6.2.14.tar.gz -``` -``` -tar -zvxf redis-6.2.14.tar.gz -``` -``` -cd /usr/local/redis-6.2.14 -``` - -编译安装 -``` -make -``` -``` -make install -``` -``` -mkdir /etc/redis -``` -``` -cp /usr/local/redis-6.2.14/redis.conf /etc/redis -``` - -修改配置项 -``` -vim /etc/redis/redis.conf -``` - -后台运行 -``` -daemonize 改成 yes - -``` - -启动 -``` -cd /usr/local/redis-6.2.14/bin -``` -``` -redis-server /etc/redis/redis.conf -``` - -进入控制台 -``` -cd /usr/local/redis-6.2.14/bin -``` -``` -redis-cli -``` - -设置访问密码(可选)把`123456`替换成你想设置的密码 -``` -config set requirepass "123456" -``` - -登录 -``` -auth "123456" -``` - -验证密码 -``` -config get requirepass -```