Redis是否安装

1、Redis对否安装(安装好了会出现下面对应的代码)

1[lk@localhost /]$ whereis redis-cli 2redis-cli: /usr/local/bin/redis-cli 3[lk@localhost /]$ 4[lk@localhost /]$ whereis redis-server 5redis-server: /usr/local/bin/redis-server

说明已经安装好了,如果不知道怎么安装,告诉你一个简单的方法,一步就可以把php、php-redis拓展,redis-server,redis-cli这三个装起来。
参考链接:http://blog.csdn.net/zhezhebie/article/details/73325663

接着就把redis-server加入快捷键,谁都不想每次敲一长串地址:
参考链接:http://blog.csdn.net/zhezhebie/article/details/71641326
2、启动Redis 

输入代码

1redis-server & 2 3[lk@localhost /]$ redis-server & 4[1] 128054 5[lk@localhost /]$ 128054:C 28 Jul 16:36:41.387 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 6128054:M 28 Jul 16:36:41.388 # You requested maxclients of 10000 requiring at least 10032 max file descriptors. 7128054:M 28 Jul 16:36:41.389 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted. 8128054:M 28 Jul 16:36:41.389 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'. 9 _._ 10 _.-``__ ''-._ 11 _.-`` `. `_. ''-._ Redis 3.0.7 (00000000/0) 64 bit 12 .-`` .-```. ```\/ _.,_ ''-._ 13 ( ' , .-` | `, ) Running in standalone mode 14 |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 15 | `-._ `._ / _.-' | PID: 128054 16 `-._ `-._ `-./ _.-' _.-' 17 |`-._`-._ `-.__.-' _.-'_.-'| 18 | `-._`-._ _.-'_.-' | http://redis.io 19 `-._ `-._`-.__.-'_.-' _.-' 20 |`-._`-._ `-.__.-' _.-'_.-'| 21 | `-._`-._ _.-'_.-' | 22 `-._ `-._`-.__.-'_.-' _.-' 23 `-._ `-.__.-' _.-' 24 `-._ _.-' 25 `-.__.-' 26 27128054:M 28 Jul 16:36:41.391 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 28128054:M 28 Jul 16:36:41.391 # Server started, Redis version 3.0.7 29128054:M 28 Jul 16:36:41.392 # 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. 30128054:M 28 Jul 16:36:41.392 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. 31128054:M 28 Jul 16:36:41.392 * The server is now ready to accept connections on port 6379

 3.判断Redis是否启动

[root@localhost myredis]# redis-cli -p 6379
127.0.0.1:6379> ping
PONG
127.0.0.1:6379>

点赞
收藏

评论区

加载中...

相关推荐

MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1

文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s

Oracle 分组与拼接字符串同时使用

SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(

MySQL部分从库上面因为大量的临时表tmp_table造成慢查询

背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_

皕杰报表之UUID

​在我们用皕杰报表工具设计填报报表时,如何在新增行里自动增加id呢?能新增整数排序id吗?目前可以在新增行里自动增加id,但只能用uuid函数增加UUID编码,不能新增整数排序id。uuid函数说明:获取一个UUID,可以在填报表中用来创建数据ID语法:uuid()或uuid(sep)参数说明:sep布尔值,生成的uuid中是否包含分隔符'',缺省为

手写Java HashMap源码

HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22

2020年前端实用代码段,为你的工作保驾护航

有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )

Redis是否安装 - HelloWorld