当前位置:网站首页>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 .
边栏推荐
- Children's unit of 2022 Paris fashion week ended successfully at Wuhan station on June 19
- MySQL tablespace parsing
- 【学习笔记】差分约束
- The maximum number of Rac open file descriptors, and the processing of hard check failure
- 开户券商怎么选择?网上开户是否安全么?
- Installing MySQL under Linux
- B_ QuRT_ User_ Guide(26)
- Eslint syntax monitoring off
- Study notes 22/1/11
- 抗洪救灾,共克时艰,城联优品捐赠10万元爱心物资驰援英德
猜你喜欢

Ambari (VII) --- ambari integrated hue4.2 document (valid for personal test)

Usage record of Xintang nuc980: self made development board (based on nuc980dk61yc)

Devops foundation chapter Jenkins deployment (II)

Do you know TCP protocol (2)?

匿名页的反向映射

MySQL tablespace parsing

Little artist huangxinyang was invited to participate in the Wuhan station of children's unit of Paris Fashion Week

sql分析(查询截取分析做sql优化)
![[JS] - [DFS, BFS application] - learning notes](/img/77/6f8d4ebe1d0b3ba036aea9358de793.png)
[JS] - [DFS, BFS application] - learning notes

B_QuRT_User_Guide(27)
随机推荐
B_QuRT_User_Guide(28)
Uvcgan: unt vision transformer cycle-consistent Gan for unpropared image-to-image translation
Study notes 22/1/19 and 22/1/20
LeetCode之三步问题
js取整的小技巧
Prometheus + grafana + MySQL master-slave replication + host monitoring
Oracle view all tablespaces in the current library
PC端隐藏滚动条
11grac turn off archive log
MySQL installation and environment variable configuration
图像翻译/Transformer:ITTR: Unpaired Image-to-Image Translation with Transformers用Transfor进行非配对图像对图像的转换
Soft exam -- software designer -- afternoon question data flow diagram DFD
Configuring multiple instances of MySQL under Linux
【尚品汇】项目笔记
JS rounding tips
Study notes 22/1/17
Hidden scroll bar on PC
Unity 获取当前物体正前方,一定角度、距离的坐标点
Explanation and application of instr() function in Oracle
The preliminary round of the sixth season of 2022 perfect children's model Foshan competition area came to a successful conclusion