当前位置:网站首页>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
边栏推荐
- composer
- 让企业数字化砸锅和IT主管背锅的软件供应链安全风险指北
- Development of wireless U-shaped ultrasonic electric toothbrush
- SSM integration process (integration configuration, function module development, interface test)
- Which is better, server rental or hosting services in the United States?
- 35家巨头科技公司联合组成元宇宙标准论坛组织
- 8253A寄存器浅析
- ABAQUS 2022 software installation package and installation tutorial
- Software engineering best practices - project requirements analysis
- Why should VR panoramic shooting join us? Leverage resources to achieve win-win results
猜你喜欢
New trend of embedded software development: Devops
The programmer's girlfriend gave me a fatigue driving test
In depth understanding of jetpack compose kernel: slottable system
76 page comprehensive solution 2022 for smart Logistics Park (download attached)
Ride: get picture Base64
Makefile notes (Yiwen Institute makefile)
How does the VR cloud exhibition hall bring vitality to offline entities? What are the functions?
New trends of China's national tide development in 2022
To tell you the truth, ThreadLocal is really not an advanced thing
206 page Shanghai BIM Technology Application and development report 2021
随机推荐
如何区分平台安全和网上炒作?网络投机有哪些止损技巧?
76 page comprehensive solution 2022 for smart Logistics Park (download attached)
Dataloader source code_ DataLoader
CesiumJS 2022^ 源码解读[6] - 三维模型(ModelExperimental)新架构
Understand target detection in one article: r-cnn, fast r-cnn, fast r-cnn, Yolo, SSD "suggestions collection"
New trends of China's national tide development in 2022
Zero sample and small sample learning
Lombok
leetcode 474. Ones and zeroes (medium)
How to mention hot fix and cherry pick
Development of wireless U-shaped ultrasonic electric toothbrush
Solve arm_ release_ ver of this libmali is ‘g2p0-01eac0‘,rk_ so_ Ver is' 4 ', libgl1 mesa dev will not be installed, and there are unsatisfied dependencies
How do I open a stock account on my mobile phone? In addition, is it safe to open a mobile account?
Fund managers' corporate governance and risk management
Why should VR panoramic shooting join us? Leverage resources to achieve win-win results
C /platform:anycpu32bitpererrored can only be used with /t:exe, /t:winexe and /t:appcontainerexe
Tide - rust web framework based on async STD
未来十年世界数字化与机器智能展望
[designmode] factory pattern
Is it safe to choose mobile phone for stock trading account opening in Hangzhou?