当前位置:网站首页>Redis-安装&&启动
Redis-安装&&启动
2022-07-15 16:42:00 【qq_25243147】
一、去官网下载

二、解压(在root下操作)
tar zxvf redis-6.2.7.tar.gz
cd redis-6.2.7
make && make install
三、启动Redis
(1)运行redis-server命令启动

(2)配置后台启动
a.先备份配置文件
cp redis.conf redis.conf.bak
b.配置监听地址、守护进程、密码、日志文件



c.运行redis-server redis.conf命令启动
(3)配置开机自启
a.创建配置文件并编写内容
注意:ExecStart=/usr/local/bin/redis-server /home/weishihao/myFile/redis-6.2.7/redis.conf中的/home/weishihao/myFile/redis-6.2.7/redis.conf为redis.conf的文件位置
vi /etc/systemd/system/redis.service
[Unit]
Description=redis-server
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/bin/redis-server /home/weishihao/myFile/redis-6.2.7/redis.conf
PrivateTmp=true
[Install]
WantedBy=multi-user.target
b.运行开机自启命令
systemctl enable redis
边栏推荐
- 联想电源管理下载
- leetcode:74. Search 2D matrix
- MySQL-自增、索引、外键、其他操作
- Among the top 50 intelligent operation and maintenance enterprises in 2022, Borui data strength was selected
- R language ggplot2 visualization: use the ggboxplot function of ggpubr package to visualize the box graph, set the add parameter to add the distribution data point graph (dot plot, dot plot) to the bo
- R language dplyr package summary_ The at function calculates the count number, mean value and median of multiple data columns (specified by vectors) in the dataframe data, and uses the list function t
- R language ggplot2 visualization: use the ggstripchart function of ggpubr package to visualize the dot strip plot, set the position parameter to configure the separation of different grouped data poin
- 要想不踩SaaS那些坑,得先了解“SaaS架构”
- room android sqlite
- 基于OSQP的二次规划
猜你喜欢

Explore ZGC

C语言 第七章 预处理

生命游戏,25号宇宙与奋斗者

C语言 栈的顺序表实现

Ffmpeg audio and video transfer package (MP4 and flv are transferred to each other, and streaming data is transferred to FLV and MP4)

Faster Planner——Kinodynamic Astar详解

scala Object关键字声明的类直接调用方法、伴生对象

scala 分支控制 (单分支、双分支、多分支)、 分支判断的返回值
![[cloud native] 3.4 ruoyi cloud deployment practice (Part 1)](/img/42/bd8ab0b5e51e181b71b9028bd363ad.png)
[cloud native] 3.4 ruoyi cloud deployment practice (Part 1)

Redis介绍和安装
随机推荐
最新Idea重置办法
Gurobi——GRBModel
tensorflow图像数据增强预处理
基于OSQP的二次规划
[CQOI2012]局部极小值 & Mike and Foam
敏捷开发中的sprint的含义
MySQL-pymysql模块
物理学\数学中常用的“等号”
Unet++ 网络tensorflow版(slim实现)
RuntimeWarning: overflow encountered in long_scalars h = 12.0 / (totaln * (totaln + 1)) * ssbn - 3
MP4 file introduction
Redis介绍和安装
Segment tree beats~
智能工厂具体的名词解释
C语言 第十章 指针
MySQL - File /var/log/mysql/mysql-bin. index not found (Errcode 13 - Permission denied)
ROS——工程中运行.py文件报错
CVXPY——最新版问题
图扑 Web 可视化引擎在仿真分析领域的应用
Empowering new industries and creating a new future | Tupo software was invited to participate in the Xiamen Industrial Expo