当前位置:网站首页>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
边栏推荐
- @Accessors annotation function specifies that the prefix follows the hump naming
- Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!
- [combinatorics] brief introduction to generating function (definition of generating function | Newton binomial coefficient | commonly used generating function | correlation with constant | correlation
- Application of derivative in daily question
- Vs 2019 configuration tensorrt
- VS克隆时显示403错误
- C programming learning notes [edited by Mr. Tan Haoqiang] (Chapter III sequence programming) 05 data input and output
- numpy之 警告VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences
- 如何迈向IPv6之IPv6过渡技术-尚文网络奎哥
- Use three JS make a simple 3D scene
猜你喜欢

Docker install and start MySQL service

The calculation of stripe, kernel and padding in CNN

用Three.js做一个简单的3D场景

MongoDB簡介

Avec trois. JS fait une scène 3D simple

Pat class B "1104 forever" DFS optimization idea

navicat 导出数据库的表结构

TCP/IP模型中的重磅嘉宾TCP--尚文网络奎哥

Why does thread crash not cause JVM crash

Ffmpeg recording screen and screenshot
随机推荐
编译文件时报错:错误: 编码GBK的不可映射字符
Ansible introduction [unfinished (semi-finished products)]
Bid farewell to artificial mental retardation: Mengzi open source project team received RMB 100 million financing to help NLP develop
C# WebRequest POST模式 ,基于“Basic Auth”口令认证模式,使用multipart/form-data方式上传文件及提交其他数据
@The difference between Autowired, @qualifier, @resource
Learning notes of C programming [compiled by Mr. Tan Haoqiang] (Chapter III sequence programming) 04 C sentence
Message queue addition failure
渤、黄海的潮汐特征
MongoDB简介
[mathematical logic] propositions and connectives (propositions | propositional symbolization | truth connectives | no | conjunction | disjunction | non truth connectives | implication | equivalence)
Basic operations of mongodb [add, delete, modify, query]
softmax的近似之NCE详解
Pytorch multi card distributed training distributeddataparallel usage
MongoDB簡介
用Three.js做一個簡單的3D場景
Introduction à mongodb
Applet get user avatar and nickname
[combinatorics] brief introduction to generating function (definition of generating function | Newton binomial coefficient | commonly used generating function | correlation with constant | correlation
Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
Summary of electromagnetic spectrum