当前位置:网站首页>1. Install redis in CentOS 7
1. Install redis in CentOS 7
2022-07-27 06:41:00 【Heartbreaking blog】
root The user login
Preparation :
1.gcc verification
# gcc --version2.gcc install
You can verify whether there is , Verifying the displayed version information can skip the preliminary preparation .
# yum -y install gccGet to the point :
1. wget Go to download
# wget http://download.redis.io/redis-stable.tar.gz2. tar xzf decompression
# tar xzf redis-stable.tar.gz3. mv Move the extracted directory
# mv redis-stable /usr/local/redis4. cd Get into redis
# cd /usr/local/redis
5. make install
# make6. make After execution ,redis Of src The directory appears after compilation redis Service program redis-server, Tested client program redis-cil
# cd src
# ls Partial screenshots :
7. start-up redis service
# ./redis-server8. test redis service
Open another terminal
# cd /usr/local/redis/src
# ./redis-cli
6379 > set string hello
ok
6379 > get string
"hello"
6379 > exit
#
exit Exit client
The client can shutdown ( close ) Connect
9. Ctrl + C sign out redis service
10. Delete redis
# cd /usr/local
# rm -rf redis
边栏推荐
猜你喜欢
随机推荐
ArcGIS for JS API (1) get all field names of FeatureLayer
Network troubleshooting: Ping and tracert commands
关于testng相关标签的使用
shell脚本循环
[first blog - outlook]
shell的编程规范and重定向与管道操作
Selenium knowledge points
Installation, configuration and use of gradle
shell函数
Shell programming specification and redirection and pipeline operation
Basic file operation of cmder
pycharm在虚拟环境下跑jupyter notebook问题记录
系统安全与应用
FTP服务简介与配置
PXE高效批量网络装机
数组及下标索引
System security and Application
ArcGIS for JS API (2) get the ID set of element services
win10 添加虚拟网卡,配置op路由
KVM command set management virtual machine









