当前位置:网站首页>Commands related to the startup of redis under Linux server (installation and configuration)
Commands related to the startup of redis under Linux server (installation and configuration)
2022-07-03 03:38:00 【South wind ~ ancient grass】
1、 stay redis Download the installation package on the official website
2、 Upload the installation package to FianlShell
3、 Build the corresponding file path , Switch to the folder where the installation package is located
Enter the command :( The path inside is changed according to the actual situation )
tar -zvxf redis-6.0.5.tar.gz -C /urs/local/redis4、 compile :( Need to use gcc, If linux Not yet installed gcc It needs to be installed first )
Use command :
yum install gcc-c++
5、 Then enter redis-6.0.5, And then execute make
6、 Then enter the install command :
make PREFIX=/urs/local/redis install7、 The client starts redis The order of ( Get into redis-6.0.5, Then enter src, Type the following commands inside ):
./redis-cli
8、 Background start redis The order of ( Also in src Give orders ):
./redis-server
You can modify redis.conf Configuration to make redis Start as a daemon :
Input :
vim redis.conf
Go to configuration file , find daemonize no, take no Change to yes, In this way, there will be no graphical interface after startup .
If you need a remote connection, you can cancel the protection mode , take protected-mode Set to no, At the same time bind notes , In this way, there will be no restrictions on the connected hosts , You can connect remotely .
9、 Check redis Operation of the :
ps -ef|grep redis
边栏推荐
- TCP/IP模型中的重磅嘉宾TCP--尚文网络奎哥
- Positioning (relative positioning, absolute positioning, fixed positioning, Z-index) 2022-2-11
- Introduction à mongodb
- 递归使用和多维数组对象变一维数组对象
- [leetcode question brushing day 34] 540 Unique element in array, 384 Disrupt array, 202 Happy number, 149 Maximum number of points on a line
- Unity3d RPG implementation (medium)
- [mathematical logic] predicate logic (individual word | individual domain | predicate | full name quantifier | existence quantifier | predicate formula | exercise)
- [combinatorics] brief introduction to generating function (definition of generating function | Newton binomial coefficient | commonly used generating function | correlation with constant | correlation
- Summary of determinant knowledge points in Chapter 1 of Linear Algebra (Jeff's self perception)
- 渤、黄海的潮汐特征
猜你喜欢

Bid farewell to artificial mental retardation: Mengzi open source project team received RMB 100 million financing to help NLP develop

Positioning (relative positioning, absolute positioning, fixed positioning, Z-index) 2022-2-11

Why does thread crash not cause JVM crash

Pytoch lightweight visualization tool wandb (local)

QQ小程序开发之 一些前期准备:预约开发账号、下载安装开发者工具、创建qq小程序

ffmpeg下载安装教程及介绍

Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!

Unity3d RPG implementation (medium)

Summary of determinant knowledge points in Chapter 1 of Linear Algebra (Jeff's self perception)

Hi3536C V100R001C02SPC040 交叉编译器安装
随机推荐
Mongodb installation & Deployment
【学习笔记】seckill-秒杀项目--(11)项目总结
Application of derivative in daily question
Pat class B "1104 forever" DFS optimization idea
【AI实战】应用xgboost.XGBRegressor搭建空气质量预测模型(一)
com. fasterxml. jackson. databind. Exc.invalidformatexception problem
Open Visual Studio 2010 hangs when opening a SQL file sql file
Summary of electromagnetic spectrum
简易版 微信小程序开发之页面跳转、数据绑定、获取用户信息、获取用户位置信息
Pat class B common function Usage Summary
PHP generates PDF tcpdf
Hutool动态添加定时任务
递归:快速排序,归并排序和堆排序
用Three.js做一個簡單的3D場景
为什么线程崩溃不会导致 JVM 崩溃
shardingsphere动态数据源
Some preliminary preparations for QQ applet development: make an appointment for a development account, download and install developer tools, and create QQ applet
403 error displayed when vs cloning
Numpy warning visibledeprecationwarning: creating an ndarray from ragged needed sequences
Download and install node, NPM and yarn