博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Redis
阅读量:7029 次
发布时间:2019-06-28

本文共 1438 字,大约阅读时间需要 4 分钟。

Redis------>nosql数据库,KV数据库,缓存数据库

redis支持永存数据

1.安装redis

yum -y install gcc

cd /root/lnmp_soft

tar -xf redis-3.0.6.tar.gz

cd redis-3.0.6

make && make install

问题:配置文件,PATH,启动脚本# ./utils/install_server.sh //初始化

Welcome to the redis service installer
This script will help you easily set up a running redis server
Please select the redis port for this instance: [6379] //设置端口号,默认即可
Selecting default: 6379
Please select the redis config file name [/etc/redis/6379.conf] //配置文件
Selected default - /etc/redis/6379.conf
Please select the redis log file name [/var/log/redis_6379.log] //日志文件
Selected default - /var/log/redis_6379.log
Please select the data directory for this instance [/var/lib/redis/6379]
//数据目录
Selected default - /var/lib/redis/6379
Please select the redis executable path [/usr/local/bin/redis-server]
//Redis服务器软件存储路径
Selected config:
Port : 6379
Config file : /etc/redis/6379.conf
Log file : /var/log/redis_6379.log
Data dir : /var/lib/redis/6379
Executable : /usr/local/bin/redis-server
Cli Executable : /usr/local/bin/redis-cli
Is this ok? Then press ENTER to go on or Ctrl-C to abort.
//确认信息是否正确,回车确认即可
Copied /tmp/6379.conf => /etc/init.d/redis_6379
Installing service...
Successfully added to chkconfig!
Successfully added to runlevels 345!
Starting Redis server...
Installation successful!
[root@svr5 ~]# ls /etc/init.d/redis_6379 //查看启动脚本

redis服务器

服务器程序
redis-server
客户端程序
redis-cli
主配置文件 /etc/redis/redis_portnumber

转载地址:http://wwwal.baihongyu.com/

你可能感兴趣的文章
cisco常用命令详解
查看>>
谁在追踪谁?
查看>>
HTTP请求返回状态码详解
查看>>
句柄类
查看>>
GitLab
查看>>
【常用配置】Spring框架web.xml通用配置
查看>>
[leetcode 240]Search a 2D Matrix II
查看>>
域名指的是这一级目录
查看>>
[Angular] Creating an Observable Store with Rx
查看>>
[转]Porting to Oracle with Entity Framework NLog
查看>>
chmod更改文件的权限
查看>>
oracle 10g/11g RAC 启停归档模式
查看>>
poj3461 Oulipo
查看>>
OAuth2.0学习(1-12)开源的OAuth2.0项目和比较
查看>>
Gitlab,这也就O了???
查看>>
2014 百度之星 1003 题解 Xor Sum
查看>>
Linux中在主机上实现对备机上文件夹及文件的操作的C代码实现
查看>>
iOS 块的简单理解
查看>>
idea中如何配置git以及在idea中初始化git
查看>>
关于JQuery Class选择器的一点
查看>>