当前位置:网站首页>Linux安装Redis
Linux安装Redis
2022-07-05 02:41:00 【一个正在努力的菜鸡】
1.安装前准备
- yum install centos-release-scl scl-utils-build
- yum list all --enablerepo=‘centos-sclo-rh’
- yum install -y devtoolset-8-toolchain
- scl enable devtoolset-8 bash
- gcc --version
2.下载,解压,重命名
- cd /usr/local
- wget https://download.redis.io/releases/redis-6.2.6.tar.gz
- tar -xvf redis-6.2.6.tar.gz
- mv redis-6.2.6 redis626
3.安装redis
- cd /usr/local/redis626
- make && make install
4.启动redis
- cd /usr/local/redis626/utils
- ./install_server.sh
- 报错
- 解决
- 再次启动
- 启动成功
5.查看启动情况
- systemctl status redis_6379.service
- 未启动则重启:systemctl restart redis_6379.service
6.启动⾃带的 redis-cli 客户端
7.设置允许远程连接
- vim /etc/redis/6379.conf
- systemctl restart redis_6379.service
边栏推荐
- 【LeetCode】106. Construct binary tree from middle order and post order traversal sequence (wrong question 2)
- Process scheduling and termination
- Avoid material "minefields"! Play with super high conversion rate
- The most powerful new household god card of Bank of communications. Apply to earn 2100 yuan. Hurry up if you haven't applied!
- Start the remedial work. Print the contents of the array using the pointer
- Spoon inserts and updates the Oracle database, and some prompts are inserted with errors. Assertion botch: negative time
- Single line function*
- Design and implementation of high availability website architecture
- Apache build web host
- Chinese natural language processing, medical, legal and other public data sets, sorting and sharing
猜你喜欢
Spoon inserts and updates the Oracle database, and some prompts are inserted with errors. Assertion botch: negative time
Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 1)
Acwing第 58 场周赛【完结】
Open source SPL optimized report application coping endlessly
Practical case of SQL optimization: speed up your database
Application and Optimization Practice of redis in vivo push platform
Chinese natural language processing, medical, legal and other public data sets, sorting and sharing
Master Fur
TCP security of network security foundation
Design and implementation of community hospital information system
随机推荐
Some query constructors in laravel (2)
GFS分布式文件系统
Cut! 39 year old Ali P9, saved 150million
Exploration of short text analysis in the field of medical and health (I)
ASP. Net core 6 framework unveiling example demonstration [01]: initial programming experience
2021 Li Hongyi machine learning (2): pytorch
Using druid to connect to MySQL database reports the wrong type
Yolov5 model training and detection
STL container
Elfk deployment
[micro service SCG] 33 usages of filters
From task Run get return value - getting return value from task Run
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
Scientific research: are women better than men?
College Students' innovation project management system
Design and implementation of campus epidemic prevention and control system based on SSM
Apache build web host
openresty ngx_lua执行阶段
使用druid连接MySQL数据库报类型错误
Marubeni Baidu applet detailed configuration tutorial, approved.