当前位置:网站首页>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
边栏推荐
- Class loading mechanism
- DDR4 test-2
- JS的Proxy
- Opencv video quality detection -- sharpness detection
- Interview questions for audio and video positions in Dachang -- today's headline
- Mo Tianlun salon | Tsinghua qiaojialin: Apache iotdb, originated from Tsinghua, builds an open source ecological road
- 事务隔离级别 gap锁 死锁
- ES6中的代理proxy
- 自定义插入页面标签以及实现类似通讯录的首字母搜索
- A brief understanding of white box encryption technology
猜你喜欢

Technology T3 domestic platform! Successfully equipped with "Yihui domestic real-time system sylixos"

HLS4ML报错The board_part definition was not found for tul.com.tw:pynq-z2:part0:1.0.

振弦采集模块测量振弦传感器的流程步骤

Optaplanner learning notes (I) case cloud balance

A brief understanding of white box encryption technology

How to correctly use vertx to operate redis (3.9.4 with source code analysis)

1592 例题1 国王(Sgu223 LOJ10170 LUOGU1896 提高+/省选-) 暴力思考 状压DP 01背包

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

Salesmartly has some tricks for Facebook chat!

GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
随机推荐
New window open page -window open
DTD modeling
How to configure webrtc video streaming format for easygbs, a new version of national standard gb28181 video platform?
Linux下安装Redis,并配置环境
JDBC中如何添加事务
振弦采集模塊測量振弦傳感器的流程步驟
Simplified pinduoduo product data
对金额进行求和
[SQL optimization] the difference between with as and temporary tables
【let var const】
wireshark报文分析tcp,ftp
Cookie和Session的相关概念
Why must we move from Devops to bizdevops?
【sql优化】with as 和 临时表的区别
墨天轮沙龙 | 清华乔嘉林:Apache IoTDB,源于清华,建设开源生态之路
ffmpeg 错误码
Leetcode 1380 lucky numbers in matrix [array] the leetcode path of heroding
Class loading mechanism
Collect Tiktok video
Mo Tianlun salon | Tsinghua qiaojialin: Apache iotdb, originated from Tsinghua, builds an open source ecological road