当前位置:网站首页>Redis installation
Redis installation
2022-06-27 17:08:00 【First meeting】
Environmental Science : With Linux System Alibaba cloud server
1、 stay redis Download the latest stable installation package from the official website Official website :https://redis.io/

2、 The downloaded installation package passes Xftp Upload to /opt Under the table of contents 
3、 Connect to the remote server 60.205.189.176 port 22, Enter the following command ,redis Installation package uploaded successfully
cd /opt
ls

4、 install gcc command yum install gcc
gcc --version See if the installation is successful
5、 Input ls
6、 Enter the following command
cd redis-6.2.6
make
make install # install
# Check the installation directory
cd /usr/local/bin
ll
7、Redis start-up - It is recommended to start in the background
cd /opt
ls

cd redis-6.2.6
ls

8、 Copy redis.conf To etc Under the table of contents
cp redis.conf /etc/redis.conf
cd /etc
ls

9、 Get into etc Under the redis.conf Modify the parameters
vi redis.conf
- Press Esc
- Enter... At the bottom /daem To search find daemonize no Change to yes
- Press A key Enter edit mode . Use the keyboard to control
- Press Esc Input :wq!
10、 Get into /usr/local/bin Under the table of contents
cd /usr/local/bin
11、 Background start
redis-server /etc/redis.conf
# See through the process redis
ps -ef | grep redis
Port number 6379
# Connect redis
redis-cli

redis close
Single instance close :redis-cli shutdown

You can also enter the terminal and then close it 
Multi instance shutdown , The specified port is closed :redis-cli -p 6379 shutdown
边栏推荐
- d3dx9_ How to repair 40.dll? Win10 system d3dx9_ What if 40.dll is lost?
- P. Simple application of a.r.a method in Siyuan (friendly testing)
- 阿里云刘珅孜:云游戏带来的启发——端上创新
- Use pyinstaller to package py files into exe. Precautions and error typeerror:_ get_ sysconfigdata_ name() missing 1...‘ check_ Solutions to exists'
- C語言教師工作量管理系統
- 428 binary tree (501. mode in binary search tree, 701. insert operation in binary search tree, 450. delete node in binary search tree, 669. prune binary search tree)
- Sliding window + monotone queue concept and example (p1886 Logu)
- Raspberry pie preliminary use
- Array represents a collection of several intervals. Please merge all overlapping intervals and return a non overlapping interval array. The array must exactly cover all the intervals in the input. 【Le
- 07. Express routing
猜你喜欢

Hung - Mung! HDD Hangzhou station · salon hors ligne vous invite à construire l'écologie

ROS "topic" programming implementation
#yyds干货盘点#简述chromeV8引擎垃圾回收

LeetCode每日一练(两数之和)
锚文本大量丢失的问题

Use pyinstaller to package py files into exe. Precautions and error typeerror:_ get_ sysconfigdata_ name() missing 1...‘ check_ Solutions to exists'

Part 31 supplement (31) ECMAScript conversion to string and number

Mihayou sued Minmetals trust, which was exposed to product thunderstorms

d3dx9_ How to repair 40.dll? Win10 system d3dx9_ What if 40.dll is lost?

当发布/订阅模式遇上.NET
随机推荐
Raspberry pie preliminary use
软件测试基础-软件测试历史流程,分类,好处,限制
智慧风电 | 图扑软件数字孪生风机设备,3D 可视化智能运维
leetcode 92. Reverse linked list II
LeetCode每日一练(两数之和)
Sword finger offer 22 The penultimate node in the linked list
软件测试-测试的概念,单元测试的详细介绍,如何设计测试用例
Drawing for example study of flashcc
Some details of Huawei OSPF
10分钟掌握mysql的安装步骤
特殊函数计算器
Delete duplicate elements in the sorting linked list
Oracle概念二
当发布/订阅模式遇上.NET
Byte + Google super full kotlin learning King fried notes! Kotlin introductory tutorial + Advanced kotlin enhanced actual combat (with demo)
继手机之后 报道称三星也削减了电视等家电产品线的产量
C语言教师工作量管理系统
Yyds dry inventory solution sword finger offer: a path with a certain value in the binary tree (3)
07. Express routing
After the mobile phone, it was reported that Samsung also cut the output of TV and other home appliance product lines