当前位置:网站首页>Install redis under Linux and configure the environment
Install redis under Linux and configure the environment
2022-07-01 19:47:00 【Xiaoshan learns Java】
There are many ways online , I have also seen many ways , Finally, I decided to write an installation process by myself , Easy to forget to check and use later .
install Redis
【1】http://download.redis.io/releases/redis-5.0.3.tar.gz`
【2】yum install wget
【3】 Create a folder mkdir soft
【4】 wget http://download.redis.io/releases/redis-5.0.3.tar.gz
【5】 decompression tar xf redis-5.0.3.tar.gz
【6】yum install gcc
make distclean # Clear some , Residual information
【7】make
【8】make install PREFIX=/opt/wukong/redis5
【9】vi /etc/profile Configure environment variables
export REDIS_HOME=/opt/wukong/redis5
export PATH=$PATH:$REDIS_HOME/bin
【10】 Execute the initialization document just modified
source /etc/profile
echo $PATH
【11】 a key Be sure to read
[[email protected] utils]# ./install_server.sh
# Arrived redis Service instance
Welcome to the redis service installer
This script will help you easily set up a running redis server
# Select a redis The port number is in this instance
Please select the redis port for this instance: [6379] #6380 Custom port number
# Select the default port number as 6379
Selecting default: 6379
# redis The name of the configuration is 6479.conf It means that you can create multiple with different names redis example
Please select the redis config file name [/etc/redis/6379.conf]
# redis The default storage location of the instance
Selected default - /etc/redis/6379.conf
# Default redis Log name
Please select the redis log file name [/var/log/redis_6379.log] Selected default - /var/log/redis_6379.log
# Persistent disk location of the cache
Please select the data directory for this instance [/var/lib/redis/6379]
Selected default - /var/lib/redis/6379
Please select the redis executable path [/opt/wukong/redis5/bin/redis-server]
# Configuration information
Selected config:
Port : 6379
Config file : /etc/redis/6379.conf
Log file : /var/log/redis_6379.log
Data dir : /var/lib/redis/6379
Executable : /opt/wukong/redis5/bin/redis-server
Cli Executable : /opt/wukong/redis5/bin/redis-cli
Is this ok? Then press ENTER to go on or Ctrl-C to abort.
# Power on self start settings , Copied to the /etc/init.d/redis_6379
Copied /tmp/6379.conf => /etc/init.d/redis_6379
Installing service...
Successfully added to chkconfig!
Successfully added to runlevels 345!
# start-up redis service
Starting Redis server...
Installation successful!
=================================
[[email protected] utils]# cd /etc/init.d/
[[email protected] init.d]# ls
functions netconsole network README redis_6379 # redis_6379 perform redis_6379 Script file for
【12】ps -fe | gref redis see redis process ## install Redis
边栏推荐
- [research materials] national second-hand housing market monthly report January 2022 - Download attached
- 较真儿学源码系列-InheritableThreadLocal(逐行源码带你分析作者思路)
- Uni app product classification
- How to use console Log print text?
- ES6中的代理proxy
- Learning records of building thingsboard, an Internet of things platform
- win10下使用msys+vs2019编译ffmpeg源码
- How to configure webrtc video streaming format for easygbs, a new version of national standard gb28181 video platform?
- [untitled]
- SQL 入门计划-1-选择
猜你喜欢
随机推荐
Actual combat of flutter - fast implementation of audio and video call application
Flutter 实战-快速实现音视频通话应用
新增订单如何防止重复提交
Transaction isolation level gap lock deadlock
AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
MySQL reports an error can't create table 'demo01 tb_ Student‘ (errno: 150)*
DDR4 test-2
P2433 【深基1-2】小学数学 N 合一
Wireshark packet analysis TCP, FTP
产品模块化设计的前世今生
Technology T3 domestic platform! Successfully equipped with "Yihui domestic real-time system sylixos"
Optaplanner learning notes (I) case cloud balance
Nat penetration of gb28181
Remove line breaks from MySQL query results
Ffmpeg common commands (2)
How to correctly use vertx to operate redis (3.9.4 with source code analysis)
How to use console Log print text?
有意思了!数据库也搞Serverless!
JS ternary expression complex condition judgment
Bao, what if the O & M 100+ server is a headache? Use Xingyun housekeeper!








