当前位置:网站首页>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
边栏推荐
- Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?
- 118. Yanghui triangle
- Regular expression =regex=regular expression
- MySQl的基本使用
- tensorflow报错Could not load dynamic library ‘libcudnn.so.8
- A brief understanding of white box encryption technology
- Ffmpeg audio related commands
- 再回顾集合容器
- Basic use of MySQL
- ffmpeg 错误码
猜你喜欢

Image acquisition and playback of coaxpress high speed camera based on pxie interface
Use the uni app demo provided by Huanxin to quickly realize one-on-one chat
![P2433 [deep foundation 1-2] primary school mathematics n in one](/img/28/e5eab8927694ea002b536202a1b5ea.png)
P2433 [deep foundation 1-2] primary school mathematics n in one

Interview question 1
![Leetcode 1380 lucky numbers in matrix [array] the leetcode path of heroding](/img/56/0c7f39406814b5bf92eca5f6670e10.jpg)
Leetcode 1380 lucky numbers in matrix [array] the leetcode path of heroding

安装sharp报错

GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速

A brief understanding of white box encryption technology

AAAI2020: Real-time Scene Text Detection with Differentiable Binarization

振弦采集模塊測量振弦傳感器的流程步驟
随机推荐
采集抖音视频
H264编码profile & level控制
Why has instagram changed from a content sharing platform to a marketing tool? How do independent sellers use this tool?
Nat penetration of gb28181
【无标题】
HLS4ML进入方法
DTD modeling
Linux下安装Redis,并配置环境
振弦采集模块测量振弦传感器的流程步骤
pickle. Load error [attributeerror: can't get attribute 'volatile' on < module '\u main']
JDBC中如何添加事务
Bao, what if the O & M 100+ server is a headache? Use Xingyun housekeeper!
类加载机制
windows环境 redis安装和启动(后台启动)
Image acquisition and playback of coaxpress high speed camera based on pxie interface
Actual combat of flutter - fast implementation of audio and video call application
Using win7 vulnerability to crack the system login password
Audio and video, encoding and decoding related e-books, gadgets, packaged for free!
Oracle physical architecture
新增订单如何防止重复提交