当前位置:网站首页>Redis deployment under Linux & redis startup
Redis deployment under Linux & redis startup
2022-06-28 08:15:00 【Record】
Linux Next redis Deploy &&redis Boot up
(1) Create an application directory , And enter /home/redis/ Catalog
[[email protected] /]# mkdir /home/redis && cd /home/redis
(2) Upload redis-4.0.11.tar.gz To the server /home/redis On the path
(3) decompression redis-4.0.11.tar.gz To the server /home/redis On the path
[[email protected] redis]# tar -xzvf redis-4.0.11.tar.gz
(4) View the unzipped folder
[[email protected] redis]# ls
redis-4.0.11 redis-4.0.11.tar.gz
(5) Get into redis-4.0.11 Folder
[[email protected] redis]# cd ./redis-4.0.11/
(6) compile
[[email protected] redis-4.0.11]# make
(7) install
[[email protected] redis-4.0.11]# make install
(8) Copy redis Configuration file to /etc/redis.conf
[[email protected] redis-4.0.11]# cp ./redis.conf /etc/redis.conf
(9) modify /etc/redis.conf The configuration file
[[email protected] redis-4.0.11]# vi /etc/redis.conf
type i Enter the edit mode to modify parameters
daemonize yes
port 6379
requirepass [email protected]
# bind 127.0.0.1
Press ECS, type :wq!, Save and exit .
(10)Redis Service startup
[[email protected] redis-4.0.11]# redis-server /etc/redis.conf
(11)Redis Service closing
[[email protected] redis-4.0.11]# redis-cli -a fnjt shutdown
Warning: Using a password with ‘-a’ option on the command line interface may not be safe.
among -a Followed by the configuration file /etc/redis.conf in requirepass Password for item settings .
(12) see redis Whether the service starts
Redis Service usage 6379 port , Check whether the service is started by checking the usage of the port
[[email protected] redis-4.0.11]# lsof -i:6379
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
redis-ser 7680 root 6u IPv6 1640645 0t0 TCP *:6379 (LISTEN)
redis-ser 7680 root 7u IPv4 1640646 0t0 TCP *:6379 (LISTEN)
Port usage is listen, The service is turned on .
(13) Set up redis Service starts automatically
Set up redis Service starts automatically , Can be found in /etc/rc.d/rc.local Add the program script that needs to be started at the end of the file , modify /etc/redis.conf The configuration file
[[email protected] redis-4.0.11]# vi /etc/rc.d/rc.local
type i Enter edit mode , Add the following sentence at the end of the text
/usr/local/bin/redis-server /etc/redis.conf
Press ECS, type wq, Save and exit .
边栏推荐
- 城联优品向英德捐赠抗洪救灾爱心物资
- sql主從複制搭建
- Leetcode摆动序列系列
- Airflow2.1.1 ultra detailed installation document
- B_QuRT_User_Guide(27)
- Ambari (IX) --- use expect to realize no interaction in ambri server setup phase (valid for personal test)
- Eslint syntax monitoring off
- 开户券商怎么选择?网上开户是否安全么?
- Unity 获取当前物体正前方,一定角度、距离的坐标点
- Little artist huangxinyang was invited to participate in the Wuhan station of children's unit of Paris Fashion Week
猜你喜欢

Do you know TCP protocol (1)?

MySQL two table connection principle (understand join buf)

Children's unit of 2022 Paris fashion week ended successfully at Wuhan station on June 19

B_QuRT_User_Guide(28)

Prometheus + grafana + MySQL master-slave replication + host monitoring

Two tips for block level elements

设置网页的标题部分的图标

Vagrant installation

MySQL tablespace parsing

Image translation /transformer:ittr: unpaired image to image translation with transformers
随机推荐
Why MySQL cannot insert Chinese data in CMD
Buffer pool in MySQL
Uvcgan: unt vision transformer cycle-consistent Gan for unpropared image-to-image translation
Chenglian premium products donated love materials for flood fighting and disaster relief to Yingde
Doris学习笔记之介绍、编译安装与部署
B_QuRT_User_Guide(26)
Is it reliable for securities companies to register and open accounts? Is it safe?
Airflow2.x distributed deployment DAG execution failure log cannot be obtained normally
【学习笔记】线性基
22/02/14 study notes
B_ QuRT_ User_ Guide(29)
Set the icon for the title section of the page
Trigonometric transformation formula
B_QuRT_User_Guide(27)
SQL analysis (query interception analysis for SQL optimization)
Generation and verification of JWT token
Prometheus deployment alarm docking QQ mailbox
Jenkins' common build trigger and hook services (V)
Software testing and quality final review
MySQL single table access method