当前位置:网站首页>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
边栏推荐
- Creation of Arduino uno development environment
- How to combine two byte arrays [repeat] - how to combine two byte arrays [duplicate]
- Jenkins operation Chapter 6 mail server sending build results
- Boost the digital economy and face the future office | the launch of the new version of spreadjsv15.0 is about to begin
- Small program large screen adaptation Guide
- JIRA basic usage sharing
- How to insert pseudo code into word documents simply and quickly?
- QT (x): innosetup for software packaging
- [high concurrency] deeply analyze the callable interface
- Sourcetree remote red exclamation point
猜你喜欢

5- (4-benzoimide phenyl) - 10,15,20-triphenylporphyrin (battph2) and its Zn complex (battpzn) / tetra (4-aminophenyl) porphyrin (tapph2) Qiyue supply

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

Design and practice of kubernetes cluster and application monitoring scheme

Call the computer calculator and use it to convert several base numbers

Rearrangement string of leetcode simple question

Slot

Fresnel diffraction with rectangular aperture based on MATLAB

Quickly write MVVM code using source generators

Jenkins operation Chapter 6 mail server sending build results

Design risc-v processor from scratch -- data adventure of five stage pipeline
随机推荐
[high concurrency] deeply analyze the callable interface
Honeypot based on MySQL load data local INFILE
P5 DS - component and document Association
2,5-di (3,4-dicarboxyphenoxy) - 4 '- phenylethynylbiphenyldianhydride (pephqda) / Qiyue custom supply porphyrin modified amphiphilic block copolymer peg113-pcl46-porphyrin
Case of single file component files
Principle of screen printing adjustment of EDA (cadence and AD) software
Ctrip launched the "3+2" office mode. Are you sour?
Maximum ascending subarray sum of leetcode simple problem
2022.02.15 - 240. Lucky number in matrix
Hyperledger Fabric 2. X custom smart contract
2022.02.15 - SX10-31. House raiding III
How does MySQL implement distributed locks?
[high concurrency] deeply analyze the callable interface
There are two ways for golang to develop mobile applications
Establishing the development environment of esp8266
Meta metauniverse female safety problems occur frequently. How to solve the relevant problems in the metauniverse?
Activiti Designer
MySQL learning notes
QT writing map comprehensive application 58 compatible with multi browser kernel
[deep learning] - maze task learning I (to realize the random movement of agents)