当前位置:网站首页>Linux Installation redis
Linux Installation redis
2022-06-29 06:26:00 【LHT-2787】
edition
Redis edition 5.0.4
Server version Linux CentOS 7.6 64 position
download Redis Installation package
Enter the official website to copy and download the connection https://redis.io/download
Download to server
( Decide which folder to download to )
wget http://download.redis.io/releases/redis-5.0.7.tar.gz
Unpack the installation
decompression
tar -zxvf redis-5.0.7.tar.gz
Move the extracted directory to /usr/local/redis, As a local application
mv /home/redis-5.0.7 /usr/local/redis
Get into /usr/local/redis Catalog , Execute compile command
make
install
make PREFIX=/usr/local/redis install
To configure Redis
stay /usr/local/redis Found in the directory redis.conf The configuration file
1. hold daemonize Attribute to yes( Indicates the need to run in the background )
2. hold bind 127.0.0.1 Comment out this line ( Do not specify allowed access network segment )
3. hold protected-mode Set to no( Allow remote access )
4. hold # requirepass foobared uncomment , And change it to your own password ( Don't move without a password )
Set power on self start
Edit the system startup script
vi /etc/rc.d/rc.local
Add the following command at the bottom of the script
Specify according to the installation path redis-server Startup files and redis.conf The configuration file
/usr/local/redis/bin/redis-server /usr/local/redis/redis.conf
Setup completed , start-up Redis
./redis-server /usr/local/redisredis.conf
test Redis Startup successful , Configuration is successful
open RedisDesktopManager, Test whether the service is on as well as Can I access it remotely Redis
边栏推荐
- Segment in Lucene
- 想请教一下,究竟有哪些劵商推荐?在线开户是安全么?
- Use of sed in shell script
- Quickly write MVVM code using source generators
- Fault: KDC warning log for id29
- SCM engineering experience - time slice
- Rearrangement string of leetcode simple question
- 64 commonly used terms for data analysis, really all!
- Rich material libraries make modeling easy and efficient for developers
- Spark saving to external data source
猜你喜欢

Jenkins operation Chapter 5 trigger, configuration webhook, Jenkins parameterized construction

Maximum ascending subarray sum of leetcode simple problem

Fault: NetBt log for id4321

Ctrip launched the "3+2" office mode. Are you sour?

Will the order of where conditions in MySQL affect the union index? Will where 1 =1 affect the use of the index? Does where 1 =1 affect the use of indexes?

Purple red solid meso tetra (o-alkoxyphenyl) porphyrin cobalt (meso-t (2-rop) PCO) / tetra (n, n-diphenyl-p-amino) phenyl porphyrin (tdpatph2)

National Defense University project summary

The first commercial spacewalk of mankind is finalized! Musk SpaceX announced a new round of space travel plan, and the American rich became repeat customers

Small program large screen adaptation Guide

Rearrangement string of leetcode simple question
随机推荐
Leetcode simple question: judging the color of a grid on a chess board
Is there any difference between a=a+b and a+=b?
Leetcode theme [array] -217- there are duplicate elements
Problems with MySQL database query
Pytest (7) -yield and termination function
Week 10 - task 0- execution process instance resolution of constructors and destructors
Failure: unable to log in to "taxpayer equity platform"
Fresnel diffraction with rectangular aperture based on MATLAB
Sum of digits under k-ary representation of leetcode simple problem
Ti Click: quickly set up tidb online laboratory through browser | ti- team interview can be conducted immediately
2022-02 Microsoft vulnerability notification
How to insert pseudo code into word documents simply and quickly?
Skills of writing test cases efficiently
Review of MySQL knowledge points
ASP. Net core 6 framework unveiling example demonstration [03]:dapr initial experience
Pytest (7) -yield and termination function
Programming specification and variables of shell script
Rich material libraries make modeling easy and efficient for developers
How to combine two byte arrays [repeat] - how to combine two byte arrays [duplicate]
Ghost in the Log4Shell