Redis(1)Install redis on my system
1. windows7
find the installation file from this URL
https://github.com/dmajkic/redis/downloads
Download the latest file with this URL https://github.com/downloads/dmajkic/redis/redis-2.4.5-win32-win64.zip
Unzip and copy the directory to working directory:
The exe command file is under this directory D:\tool\redis-2.4.5-win32-win64\64bit, add this directory to my system path:
path=D:\tool\redis-2.4.5-win32-win64\64bit
run the command to start the server
>redis-server.exe
run the command to start the client side
>redis-cli.exe
redis 127.0.0.1:6379>
redis 127.0.0.1:6379>
redis 127.0.0.1:6379> exit
exit command can exit the client
2. Ubuntu 12.04 Installation
add the URL to my repository
>cd /etc/apt/sources.list.d/
>sudo vi dotdeb.org.list
deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all
import the public key
>sudo wget -q -o - http://www.dotdeb.org/dotdeb.gpg
>sudo apt-key add dotdeb.gpg
update the resource and install
>sudo apt-get update
>sudo apt-get install redis-server
>sudo /etc/init.d/redis-server status
redis-server is running
>redis-cli -h
I want to use windows to connect to my ubuntu server. But I got these error message:
C:\Users\Digby>redis-cli.exe -h 192.168.56.101
Could not connect to Redis at 192.168.56.101:6379: Unknown error
I open the configuration file under ubuntu
>cd /etc/redis
>sudo vi redis.conf
change the line to
from
bind 127.0.0.1
to
bind 0.0.0.0
>sudo /etc/init.d/redis-server restart
It is ok now.
3. Install Redis on Redhat
>wget http://redis.googlecode.com/files/redis-2.4.14.tar.gz
>tar zxvf redis-2.4.14.tar.gz
>cd redis-2.4.14
>sudo make
>cd src
>mkdir /opt/tools/redis
>cp redis-server /opt/tools/redis/
>cp redis-benchmark /opt/tools/redis/
>cp redis-cli /opt/tools/redis/
>cd ..
>cp redis.conf /opt/tools/redis/
>cd /opt/tools/redis/
Start the redis server:
>./redis-server redis.conf
references:
http://krams915.blogspot.com/search/label/Redis
https://github.com/krams915/spring-redis-tutorial.git
http://redis.io/download
http://zheng12tian.iteye.com/blog/1471726
http://ajava.org/article-1137-1.html
分享到:
相关推荐
nsExec::Exec 'cmd /c $INSTDIR\mysql\bin\mysqld.exe" -install Mysql --defaults-file="$INSTDIR\\mysql\\my.ini' detailprint "install mysql Service success..." detailprint "--------------------------...
Chapter 1, Getting Started (The Baby Steps), shows you how to install Redis and how to use redis-cli, the default Redis command-line interface. It also shows you how to install Node.js and goes ...
This first short book on databases starts with some of my favourites: LevelDB, Redis and CouchDB. Table of Contents Chapter 1. The source code Chapter 2. Introduction Chapter 3. An embedded database...
Create database exam_system default character set utf8; Django 使用pip install Django==2.1.4 进行安装。 安装虚拟环境 运行以下命令 pip install virtualenv cd 到Exam\venv\Scripts中 运行 activate 然后...
HTTP通知系统描述HTTP通知系统表中的内容系统设置您的系统将需要安装以下软件:安装步骤1:克隆存储库git clone < repo>cd 步骤2:安装NPM套件npm install步骤3:启动发布服务器npm run publisher_server步骤4:启动...
These tests were done on a HP ML120G6 system with 12Gb Ram, 10k raid disk drives running Windows 2008 Server R2 64 bit. For a measure of relative performance to RaptorDb v1 I have included a 20 ...
1.本地 适用于未安装docker的情况 通过从项目根目录在shell中运行以下内容来安装依赖项 npm install 开始Redis brew services start redis 导航到项目中的客户端目录并启动订户 cd client && npm start 打开一个...
OpenEthereumPool信用删除器删除不必要的积分材料。 根据选项设置,将创建一个可以恢复已删除的积分数据...npm install redis$ npm install system-sleep$ npm install isnumber设定档$ vi config.json$$ {$ "coin": "e
React引擎 React引擎是一种微服务,用于记录actors产生的actions ,然后执行由一组rules确定的reaction 。... brew install redis redis-server 启动React引擎 bundle exec foreman start 测试 rake spec rspec spec
Redis的6.2 安装 克隆存储库 git clone https://github.com/afifialaa/chat-system/tree/master/app 安装Gemfile中指定的依赖项 bundle install 创建和设置数据库 rails db:create rails db:migrate 启动本地服务器...
安装: 转到项目文件夹运行pipenv install 在config文件夹下创建.env根据.env.example模板3.1提供凭据。 请参阅其他资源部分以设置/获取更多信息。 运行python manage.py migrate 然后使用python manage.py ...
将此仓库克隆到目录中: git clone https://github.com/xisiot/lora-system.git --recursive cd lora-system 通过npm install安装所有Node.js依赖项。 从config_template.json复制本地config.json : cp config_...
入门安装依赖PostgreSQL# Start your PostgreSQL instance & create a new databasecreatedb order-management-system 雷迪斯# Run your Redis instancesudo apt install redis-serversudo systemctl r
密码网密码字符生成器,用于自定义设置提供一个网站和API,允许Cypher System RPG的GM创建设置,然后玩家可以用来创建1级角色。地方发展配置Python 运行以下命令来设置您的Python环境。 python -m venv venvpip ...
yarn install ``` - 开发模式运行 ``` yarn run serve ``` - 编译项目 ``` yarn run build ``` - Lints and fixes files ``` yarn run lint ``` Docker 镜像使用 ---- ``` # 1.修改前端项目的后台域名 .env....
mmtax-admin :系统管理后台端主要代码,包括系统管理后台前后端代码 mmtax-common:公共工具模块 mmtax-framework:系统配置模块 mmtax-generator:代码生成模块 mmtax-quartz:定时任务模块 mmtax-system:service...
Redis memcached(已弃用) 设置Python虚拟环境 您可能需要更改您的pypi源 # using pip install pipenv # enter project directory cd xxx # install dependencies pipenv install -r requirement.txt # activate...
npm install 设置.env文件 您还需要设置环境配置。 为此,如果您仅在目录中创建一个名为.env的文件并设置如下所示的值,则该应用程序将正常运行: .env文件 # # config # HOST= ' localhost ' PORT=3000 STATIC_...
Redis任意新版本即可 Django版本2.1.4 ## 安装步骤 ### python 3.8.3 - 加入环境变量 ### MySQL - cd 到mysql/bin目录下 - 执行以下命令连接数据库 - mysql -uroot -p - 输入密码 - 创建数据库: ...
该应用程序与Redis服务器和Express Session一起运行,以实现用户的安全性和验证。 技术栈服务器端节点JS 快速框架 安装安装Node JS 。 在此处克隆存储库[ cd ]进入项目目录的根目录。 在终端上运行yarn install以...