当前位置:网站首页>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
边栏推荐
- Stepping on pits and solutions when using inputfilter to limit EditText
- 900W+ 数据,从 17s 到 300ms,如何操作
- float与0比较
- Pytorch multi card distributed training distributeddataparallel usage
- Ffmpeg one / more pictures synthetic video
- numpy之 警告VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences
- The file marked by labelme is converted to yolov5 format
- Hi3536C V100R001C02SPC040 交叉编译器安装
- IPv6过渡技术-6to4手工隧道配置实验--尚文网络奎哥
- Docker install and start MySQL service
猜你喜欢

Limit of one question per day

Application of derivative in daily question

IPv6过渡技术-6to4手工隧道配置实验--尚文网络奎哥

User value is the last word in the competition of mobile phone market

Introduction to mongodb

Download and install captura and configure ffmpeg in captura

Pytorch multi card distributed training distributeddataparallel usage
![[embedded module] OLED display module](/img/c4/474f5ee580d132654fbd1a4cd53bab.jpg)
[embedded module] OLED display module

小程序获取用户头像和昵称

MongoDB简介
随机推荐
MongoDB简介
用Three.js做一个简单的3D场景
MongoDB安装 & 部署
LVGL使用心得
递归:快速排序,归并排序和堆排序
8.8.2-PointersOnC-20220214
没有sXid,suid&sgid将进入险境!-尚文网络xUP楠哥
Open Visual Studio 2010 hangs when opening a SQL file sql file
解决高並發下System.currentTimeMillis卡頓
[mathematical logic] normal form (conjunctive normal form | disjunctive normal form | major item | minor item | maximal item | minor item | principal conjunctive normal form | principal disjunctive no
【全民编程】《软件编程-讲课视频》【零基础入门到实战应用】
UMI route interception (simple and rough)
[algebraic structure] group (definition of group | basic properties of group | proof method of group | commutative group)
如何迈向IPv6之IPv6过渡技术-尚文网络奎哥
com. fasterxml. jackson. databind. Exc.invalidformatexception problem
Hutool dynamically adds scheduled tasks
Summary of electromagnetic spectrum
IPv6过渡技术-6to4手工隧道配置实验--尚文网络奎哥
Compare float with 0
Limit of one question per day