当前位置:网站首页>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
边栏推荐
- C language course design
- 2/15 topology sorting +dfs (the order of specified directions is very important) +bfs
- Leetcode daily practice (sum of two numbers)
- Handling of difficult and miscellaneous problems during the installation and configuration of qt5.5.1 desktop version (configuring arm compilation Kit)
- C language set operation
- 深耕数字化,引领云原生,服务更多开发者
- Bit. Store: long bear market, stable stacking products may become the main theme
- Etcd visualization tool: kstone deployment (I), rapid deployment based on Helm
- 郎酒两大王牌产品成都联动共振,持续带动光瓶酒消费浪潮
- Delete duplicate elements in the sorting linked list
猜你喜欢

米哈游起诉五矿信托,后者曾被曝产品暴雷

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

当发布/订阅模式遇上.NET

Redis Series 2: data persistence improves availability

Etcd可视化工具:Kstone部署(一),基于Helm快速部署

A robot is located in the upper left corner of an M x n grid. The robot can only move down or right one step at a time. The robot attempts to reach the lower right corner of the grid. How many differe

Leetcode 46 Full Permutation

软件测试学习-黑马程序员,软件测试学习大纲

Missing d3d10 How to repair DLL files? Where can I download d3d10.dll

Data center table reports realize customized statistics, overtime leave summary record sharing
随机推荐
Drawing for example study of flashcc
Performance problems caused by redis cache invalidation and competitive loading
Pragma once Usage Summary
Unity shadow shadow pancaking
d3dx9_ What if 27.dll is lost? d3dx9_ How to repair 27.dll?
The time of localdatetime type (2019-11-19t15:16:17) is queried with the time range of Oracle
About how vs2019c # establishes the login interface, the user name and password entered must match the records in the access database
wheel ui
Detailed explanation of various GPIO input and output modes (push-pull, open drain, quasi bidirectional port)
简历如何去写?
一个机器人位于一个 m x n 网格的左上角 。机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角。问总共有多少条不同的路径?【LeetCodeHot100】
Event listening mechanism
10 minutes to master the installation steps of MySQL
d3dx9_ 39.dll how to repair -d3dx9_ 39.dll missing file download
Practice of constructing ten billion relationship knowledge map based on Nebula graph
华为云DevCloud重磅发布四大新能力,创下国内两项第一
#yyds干货盘点# 解决剑指offer:二叉树中和为某一值的路径(三)
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)
The two trump brand products of Langjiu are resonating in Chengdu, continuously driving the consumption wave of bottled liquor
Simulated process scheduling