当前位置:网站首页>CentOS installation starts redis
CentOS installation starts redis
2022-07-01 00:05:00 【Shuaiyu yeah~】
Check whether the machine is equipped with gcc
If not, enter yum install gcc -y install gcc
compilete Installation is complete 
redis Download from the official website

Put the download package in the corresponding location 
Use tar -zxvf redis-6.2.6.tar.gz decompression 
rm -rf redis-6.2.6.tar.gz Remove the installation package 
Get into redis Compile
cd redis-6.2.6
make
cd src
make install PREFIX=/usr/local/shuai/redis
Move the configuration file to the installation directory
cd …/
mkdir /usr/local/shuai/redis/etc
cd redis-6.2.6
mv redis.conf /usr/local/shuai/redis/etc
Local background start
Get into redis file
./bin/redis-server& ./redis.conf
To configure redis Start for background
take daemonize no Change to daemonize yes(redis Will run in the background )
127.0.0.1 Change to 0.0.0.0
vim /usr/local/shuai/redis/etc/redis.conf
redis Set the password
#requirepass foobared Change it to requirepass 123456
Use kill -9 close redis Restart after process
take redis Add to startup
New file redis-server
The contents of the document
[Unit]
Description=redis-server
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/shuai/redis/bin/redis-server /usr/local/shuai/redis/etc/redis-6379.conf
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Tencent cloud firewall needs to add rules 
边栏推荐
- How to distinguish between platform security and online hype? What are the stop loss techniques for online speculation?
- 需求评审,测试人员应该发挥怎样的价值?两分钟让你不再懵逼
- File reading and writing for rust file system processing - rust Practice Guide
- When we look at the industrial Internet, we always look at it from the opposite of the consumer Internet
- [designmode] singleton pattern
- C language array interception, C string by array interception method (c/s)
- 76页智慧物流园区综合解决方案2022(附下载)
- 6-1 exploit -ftp exploit
- Sm2246en+ SanDisk 15131
- CesiumJS 2022^ 源码解读[6] - 三维模型(ModelExperimental)新架构
猜你喜欢

ABAQUS 2022 software installation package and installation tutorial

HP notebook disable touchpad after mouse is inserted

76 page comprehensive solution 2022 for smart Logistics Park (download attached)

Quick start of wechat applet -- project introduction

The programmer's girlfriend gave me a fatigue driving test

Zero sample and small sample learning

VR panorama adds contrast function to make the display of differentiation effect more intuitive!

In 2022, the latest JCR officially released the list of the latest global impact factors (top 600)

6-1 exploit -ftp exploit
![[designmode] factory pattern](/img/62/9be808b3e1c2139d564caa307fcd30.png)
[designmode] factory pattern
随机推荐
Manage edge browser settings (ie mode, homepage binding, etc.) through group policy in the enterprise
MySQL index test
206 page Shanghai BIM Technology Application and development report 2021
Asynchronous transition scenario - generator
Operation record of reinitialization instance of Dameng database
Software engineering best practices - project requirements analysis
[PHP] self developed framework qphp, used by qphp framework
2022-06-30: what does the following golang code output? A:0; B:2; C: Running error. package main import “fmt“ func main()
1175. prime number arrangement / Sword finger offer II 104 Number of permutations
How to open a stock account? Is it safe to open a mobile account
Arthas debugging problem determination Toolkit
MaxPool2d详解--在数组和图像中的应用
The difference between union and union all in MySQL
Error when starting PHP: [pool www] cannot get uid for user '@php_ fpm_ [email protected]’
基金銷售行為規範及信息管理
6-1 exploit -ftp exploit
Fund managers' corporate governance and risk management
Bridge emqx cloud data to AWS IOT through the public network
Which is better, server rental or hosting services in the United States?
Fund customer service