winserver安装redis
原文:
https://www.cnblogs.com/xuzhiwei/p/4569315.html
1.Redis本身不支持windows,但是有另外的团队在维护着一个windows下的版本
2、下载地址:
https://github.com/MSOpenTech/redis #下载zip版
2.8的版本在源码里面已经不包含windows下的执行文件,都移动到release里面去了,所以点击release去下载。
3、下载解压后
4、安装很简单,Windows Service Documentation.docx有详细说明。
1)安装服务:
redis-server --service-install redis.windows.conf --loglevel verbose
2)卸载服务:
redis-server --service-uninstall
3)启动服务:
redis-server --service-start
注意:在windows 7 64位机器下,启动如果报错(其他环境下没试过)
这个的解决方案是redis.windows.conf中加入:
maxheap 1gb
具体原因不知道为什么,可能跟我机器环境有关系(我设置成2gb和4gb都会报错)
4)、停止服务:
redis-server --service-stop
5、指定服务名和端口号的安装:
1)安装:redis-server --service-install --service-name redisService1 --port 10001
注意:上面这种方式安装服务会,启动会出错(Redis service failed to start),所以安装的时候指定配置文件:
redis-server --service-install redis.windows.conf --loglevel verbose --service-name redisService1 --port 10001
2)卸载:
redis-server --service-uninstall --service-name redisService1 --port 10001
3)启动服务:
方式1:
redis-server --service-start --service-name redisService1
方式2:
services.msc
找到redis 右键启动
4)停止服务:
redis-server --service-stop --service-name redisService1
winserver安装redis的更多相关文章
- Ubuntu安装redis并配置远程、密码以及开启php扩展
一.前言 redis是当前流行的nosql数据库,很多网站都用它来做缓存,今天我们来安装并配置下redis 二.安装并配置redis 1.安装redis sudo apt-get install re ...
- CentOS 7 下安装redis步骤
1. 从redis官网下载redis源码,本例安装在/usr/opt下 [root@localhost opt]# pwd /usr/opt [root@localhost opt]# wget ht ...
- 安装redis以windows服务形式
安装redis以windows服务形式 安装redis以windows服务形式 redis windows windows 服务 以前跑redis,老是要开一个命令行窗口,一旦关闭,redis服务就挂 ...
- Mac Pro 编译安装 Redis 的 PHP 客户端 phpredis
1.去官网下载 redis 扩展源码包 https://github.com/phpredis/phpredis 2.安装 redis 扩展 /usr/local/src/mac-sdk/source ...
- 编译安装PHP7并安装Redis扩展Swoole扩展
编译安装PHP7并安装Redis扩展Swoole扩展 在编译php7的机器上已经有编译安装过php5.3以上的版本,从而依赖库都有了 本php7是编译成fpm-php 使用的, 如果是apache那么 ...
- 【安装Redis】CentOS7 下安装NodeJs+Express+MongoDB+Redis
Redis,V3.2,官网l官方链接:http://www.redis.io/download,参考:http://blog.csdn.net/mlks_2008/article/details/19 ...
- centos7.0 安装redis集群
生产环境下redis基本上都是用的集群,毕竟单机版随时都可能挂掉,风险太大.这里我就来搭建一个基本的redis集群,功能够用但是还需要完善,当然如果有钱可以去阿里云买云数据库Redis版的,那个还是很 ...
- Linux(Centos)之安装Redis及注意事项
1.redis简单说明 a.在前面我简单的说过redis封装成共用类的实现,地址如下:http://www.cnblogs.com/hanyinglong/p/Redis.html. b.redis是 ...
- centos上如何安装redis?|centos傻瓜式安装redis教程
本文介绍centos安装redis,请不要安装2.4.3,是有问题的. 首先安装gcc yum -y install gcc yum -y install gcc-c++ yum install ma ...
随机推荐
- PHP安装-centos7
下载地址:https://www.php.net/downloads.php 1.wget下载php源码至/usr/local/src 下 wget https://www.php.net/distr ...
- vue-wacth监听事件
2019-08-05 0:20 Vue.js 监听属性 watch,我们可以通过 watch 来响应数据的变化. 以下实例通过使用 watch 实现计数器:(此时我就想了一下,好像绑定点击事件,也 ...
- python实现压缩文件成zip格式
实现代码如下: #压缩文件 import time,zipfile class zip: def get_zip(self,files,zip_name): zp=zipfile.ZipFile(zi ...
- selenium向IE的输入框中输入字符时特别慢
selenium向IE的输入框中输入字符时特别慢,需要去selenium官网下载32位的iedriver,替换掉64位的,即可解决.
- Learning OSG programing---osgAnimation(1)
osg::AnimationPath* createAnimationPath(const osg::Vec3& center,float radius,double looptime) { ...
- MFC---导出 Excel 方法
本方法通过Excel驱动写入 请添加头文件 #include"afxdb.h" 第一步创建Excel文件 安装驱动 CString FileName = L"first. ...
- Communications link failure mysql自动停止 连接拒绝 mysqld dead but sub。。。
服务器环境中 JAVA 连接数据库 Communications link failure, Contection refused 网上很多这种情况,解决基本上是将127.0.0.1换成localho ...
- Python : Polymorphism
class Animal: def __init__(self, name): # Constructor of the class self.name = name def talk(self): ...
- java绘制带姓的圆
public class ImageGenerator { private static final Color[] colors = new Color[] { new Color(129, 198 ...
- lodash throttle和debounce
https://lodash.com/docs#debounce throttle(又称节流)和debounce(又称防抖)其实都是函数调用频率的控制器 throttle:将一个函数的调用频率限制在一 ...