当前位置:网站首页>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
边栏推荐
- 新增订单如何防止重复提交
- 安装sharp报错
- tensorflow报错Could not load dynamic library ‘libcudnn.so.8
- Ffmpeg error code
- Oracle physical architecture
- DS Transunet:用于医学图像分割的双Swin-Transformer U-Net
- Is Dao safe? Build finance encountered a malicious governance takeover and was looted!
- AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
- list大集合等比分割成多个小list集合
- mysql 報錯 Can‘t create table ‘demo01.tb_Student‘ (errno: 150)*
猜你喜欢

Optimization of video streaming with repeated requests in the case of unstable easygbs network

Flutter 实战-快速实现音视频通话应用

音视频、编解码相关电子书、小工具,打包奉送!

GC garbage collection

Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?

How to configure webrtc video streaming format for easygbs, a new version of national standard gb28181 video platform?
![[Mori city] random talk on GIS data (I)](/img/4d/1ed4bbf397b8d756c91241705528de.jpg)
[Mori city] random talk on GIS data (I)

Regular expression =regex=regular expression
![[research materials] iResearch tide Watching: seven major trends in the clothing industry - Download attached](/img/c8/a205ddc2835c87efa38808cf31f59e.jpg)
[research materials] iResearch tide Watching: seven major trends in the clothing industry - Download attached

【无标题】
随机推荐
Simplified pinduoduo product data
[untitled]
GC垃圾回收
P2433 【深基1-2】小学数学 N 合一
事务隔离级别 gap锁 死锁
How to add transactions in JDBC
703. The k-th element in the data flow
JVM memory model
DDR4 test-2
Crunch简介、安装,使用Crunch制作密码字典
How to use console Log print text?
Linux下安装Redis,并配置环境
Interview question 1
Mo Tianlun salon | Tsinghua qiaojialin: Apache iotdb, originated from Tsinghua, builds an open source ecological road
[research materials] Huawei Technology ICT 2021: at the beginning of the "Yuan" year, the industry is "new" -- download attached
MySQl的基本使用
一个程序员如何快速成长
118. Yanghui triangle
Anaconda安装虚拟环境到指定路径
一文读懂C语言中的结构体