01.Redis安装
1.安装Redis
[wch@localhost Redis]$ lltotal 1248-rwxrwxr-x.1 wch wch 1276198Sep2023:31 redis-2.8.22.tar.gz[wch@localhost Redis]$ tar -zxvf redis-2.8.22.tar.gz
[wch@localhost Redis]$ lltotal 1252drwxrwxr-x.6 wch wch 4096Sep801:03 redis-2.8.22-rwxrwxr-x.1 wch wch 1276198Sep2023:31 redis-2.8.22.tar.gz[wch@localhost Redis]$ cd redis-2.8.22[wch@localhost redis-2.8.22]$ make PREFIX=/home/wch/InstallSoft/redis installcd src && make installmake[1]:Entering directory `/home/wch/SoftWare/Redis/redis-2.8.22/src'Hint: It's a good idea to run 'make test' ;)INSTALL installINSTALL installINSTALL installINSTALL installINSTALL installmake[1]: Leaving directory `/home/wch/SoftWare/Redis/redis-2.8.22/src'[wch@localhost redis-2.8.22]$
2.启动Redis服务
[wch@localhost bin]$ lltotal 15208-rwxr-xr-x.1 wch wch 4574611Oct104:39 redis-benchmark-rwxr-xr-x.1 wch wch 22201Oct104:39 redis-check-aof-rwxr-xr-x.1 wch wch 45411Oct104:39 redis-check-dump-rwxr-xr-x.1 wch wch 4676357Oct104:39 redis-clilrwxrwxrwx.1 wch wch 12Oct104:39 redis-sentinel -> redis-server-rwxr-xr-x.1 wch wch 6242453Oct104:39 redis-server[wch@localhost bin]$ ./redis-server[13745]01Oct04:45:05.889# Warning: no config file specified, using the default config. In order to specify a config file use ./redis-server /path/to/redis.conf[13745]01Oct04:45:05.890# You requested maxclients of 10000 requiring at least 10032 max file descriptors.[13745]01Oct04:45:05.890# Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.[13745]01Oct04:45:05.890# Current maximum open files is 1024. maxclients has been reduced to 992 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'._.__.-``__ ''-.__.-```. `_.''-._ Redis2.8.22(00000000/0)64 bit.-``.-```. ```\/ _.,_ ''-._(' , .-` | `, ) Running in stand alone mode|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379| `-._ `._ / _.-' | PID: 13745`-._ `-._ `-./ _.-' _.-'|`-._`-._ `-.__.-' _.-'_.-'|| `-._`-._ _.-'_.-' | http://redis.io`-._ `-._`-.__.-'_.-' _.-'|`-._`-._ `-.__.-' _.-'_.-'||`-._`-._ _.-'_.-'|`-._ `-._`-.__.-'_.-' _.-'`-._ `-.__.-' _.-'`-._ _.-'`-.__.-'[13745]01Oct04:45:05.900# Server started, Redis version 2.8.22[13745]01Oct04:45:05.900# WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.[13745]01Oct04:45:05.901# WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.[13745]01Oct04:45:05.901*The server is now ready to accept connections on port 6379
[wch@localhost bin]$ ./redis-cli127.0.0.1:6379> pingPONG127.0.0.1:6379>set name wchOK127.0.0.1:6379> get name"wch"127.0.0.1:6379>
01.Redis安装的更多相关文章
- Redis安装以及配置
下载 http://redis.io/download 解压 tar zxvf redis-2.8.17.tar.gz 编译并安装 1 2 3 4 cd redis-2.8.17 make cd sr ...
- 01 redis特点及安装使用
一:redis的特点 ()redis是一个开源,BSD许可高级的key-value存储系统.可以用来存储字符串,哈希结构,链表,集合,因此,常用来提供数据结构服务. 二:redis和memcached ...
- windows下和linux下 Redis 安装
Redis 是一个高性能的key-value数据库, 使用内存作为主存储,数据访问速度非常快,当然它也提供了两种机制支持数据持久化存储.比较遗憾的是,Redis项目不直接支持Windows,Windo ...
- redis安装方法
redis安装方法1.通过lnmp一键安装包,然后执行./addons.sh install redis2.yum -y install redis3.wget http://redis.google ...
- linux上redis安装配置及其防漏洞配置及其攻击方法
Linux上redis安装: 需先在服务器上安装yum(虚拟机可使用挂载的方式安装) 安装配置所需要的环境运行指令: yum -y install gcc 进入解压文件执行make 指令进行编译 执 ...
- redis安装、测试&集群的搭建&踩过的坑
1 redis的安装 1.1 安装redis 版本说明 本教程使用redis3.0版本.3.0版本主要增加了redis集群功能. 安装的前提条件: 需要安装gcc:yum install gcc- ...
- Redis安装步骤 - linux系统下
https://blog.csdn.net/lzj3462144/article/details/70973368 https://www.cnblogs.com/pyyu/p/9467279.htm ...
- redis安装及应用
Redis安装及主从配置 server2,3,4. 安装 tar zxf redis-4.0.1.tar.gz cd redis-4.0.1 yum install -y gcc make make ...
- centos7.x下环境搭建(四)—redis安装
redis介绍 redis是用C语言开发的一个开源的高性能键值对(key-value)数据库.它通过提供多种键值数据类型来适应不同场景下的存储需求,目前为止redis支持的键值数据类型如下字符串.列表 ...
随机推荐
- phpMyAdmin提示“Access denied for user 'root'@'localhost' (using password: NO)”的解决办法
一.错误内容 在用thinkPHP登陆phpMyAdmin时遇到以下错误 #1045 - Access denied for user 'root'@'localhost' (using passwo ...
- object在ie8与ie9中与下文多出几像素问题
今天发现一个很古怪的问题,object与下面文字部分的间隔超过了30个像素,关系是不管用padding还是margin都是一样的效果: 给其设置overflow:hidden属性依然没有任何效果,再设 ...
- thinkphp 字段静态验证$_validate中错误提醒多语言化写成{%LANGUATE}的原因
class UserModel extends Model{ protected $_validate = array( array('account', 'require', '{%LANGUAG ...
- Yii中使用PHPexcel获取excel中数据
1.view中代码如下: <form name="frmBatchSettle" id="" action="" method=&qu ...
- async/await的实质理解
async/await关键字能帮助开发者更容易地编写异步代码.但不少开发者对于这两个关键字的使用比较困惑,不知道该怎么使用.本文就async/await的实质作简单描述,以便大家能更清楚理解. 一.a ...
- 十天学会单片机Day3 D/A与A/D转换器
D/A转换器 1.二进制权电阻网络型D/A转换器 基准电压Vref 数据D(d3d2d1d0) 输出模拟电压V0 i0 = Vref/8R i1 = Vref/4R i2 = Vref/ ...
- android ptl
Gerrit android update sdk --no-uiadb logcat MyActivity:* *:S Connecting adb over Wi-Fiadb tcpip 5555 ...
- TETRIS 项目开发笔记
java学习一个月了,没有什么进展,期间又是复习Linux,又是看Android,瞻前顾后,感觉自己真的是贪得无厌, 学习的东西广而不精,所以写出的文章也就只能泛泛而谈.五一小长假,哪里都没有去,也不 ...
- vim命令收集(持续中)
保存: 按ESC键 跳到命令模式,然后: :w 保存文件但不退出vi:w file 将修改另外保存到file中,不退出vi:w! 强制保存,不推出vi:wq 保存文件并退出vi:wq! 强制保存文件, ...
- Linux 常见的进程调度算法
1.在介绍进程调度之前,先对进程的状态的概念应该有所了解,下面是关于进程状态的一些基本概念:进程的状态分为三种,分别为: 1).运行态:该状态表明进程在实际占用CPU 2).就绪态: 该状态下进程可以 ...