Redis runs by default under UNIX, Windows cannot run the official version directly. Here are a few solutions,
a) Windows Migration Edition . Fast startup speed, preferred recommended .
a) 2.6.12 is a stable version, I used 64-bit version of the development environment, a few months did not find important issues. : Https://github.com/MSOpenTech/redis/tree/2.6/bin/release
b) 2.8.4 is the latest version released in March 24, which temporarily consumes memory-sized hard disk space when it runs: https://github.com/MSOpenTech/redis/tree/2.8.4_msopen/bin/release
c) Source code: https://github.com/MSOpenTech/redis/
II) Virtual machine scenario . Advantages: can experience the latest version of Redis, the most stable operation, the use of hard disk less than 2.8.4. Cons: relatively slow, consuming more memory and CPU. There are 2 sub-scenarios.
A) using Vagrant, recommended , the disadvantage is that the boot time is a bit long. Fully scripted deployment for development teams (you can also configure environments such as Java Jre,resin). The configuration method is described in detail later in this article.
b) VMWare, I've tried to reinvent myself, super-trouble. But it runs faster. There are also some installed on the internet Ubuntu download, in short, the use is not good. This scenario is not recommended.
III) Redis client , choose to have, the general two are combined:
A) Redis Desktop Manager, Address: http://redisdesktop.com/. Advantages: support utf-8 Chinese display, easy to use, disadvantage: the EVAL directive is not supported,
b) Redis comes with the REDIS-CLI, which can be used in the above mentioned Windows transplant version, and Linux, the pros and cons exactly the same as the Redis Desktop Manager.
Detailed Vagrant Solution Installation method
A) installation VirtualBox, address: Http://download.virtualbox.org/virtualbox/4.3.10/VirtualBox-4.3.10-93012-Win.exe
II) installation of Vagrant, address: http://www.vagrantup.com/downloads.html. Be careful to restart to perform step fifth.
III) Download the configuration script package, address: http://pan.baidu.com/s/12CLHk
d) Unzip vagrant-redis.zip, download Http://files.vagrantup.com/precise64.box to the same directory, note that the file name remains unchanged Precise64.box. the file can be deleted or moved after the fifth step has completed successfully.
Five) run Setup.bat to configure, some slow machine may prompt connection timeout situation, if the final retry is unsuccessful, you can run Startup.bat to retry.
VI) Use the Redis client to connect to localhost with the default configuration.
Note The main points:
A) later use Startup.bat to start the virtual machine, Shutdown.bat shutdown , but sometimes not completely shut down, the port is still occupied, need to run the Oracle VM VirtualBox, select "Power Off" To exit the virtual machine. You cannot start with startup, you need to start with the Oracle VM VirtualBox, or the script will re-establish the environment.
II) REDIS data file Dump.rdb stored in /var/redis/6379/directory, configuration file in /etc/redis/6379.conf
III) Manual Redis instructions are: sudo/etc/init.d/redis_6379 start
Four) stop is: sudo/etc/init.d/redis_6379 stop
V) determine if Redis is started and can be used with Ps-e|grep Redis
In the future to maintain this virtual machine needs to use the SSH client, the recommended use of bitvise SSH clients, because the upload file is relatively convenient, can be automatically highlighted. You can also use Putty,git. git ssh can be compatible with vagrant SSH commands, but lacks the highlighting feature
Official installation version, personal use free:
Http://www.bitvise.com/ssh-client-download
Green version, version update not so fast:
http://tp.vbap.com.au/
bitvise SSH Client Connection on the vagrant configuration method, Note that the contents below {} need to be replaced by the situation
1. login page, user KeyPair Manager, import, select c:\users\{user name}\.vagrant.d\insecure_private_key, click the Import button Import complete, point accept and Save.
2. Login page configuration: host:localhost; port:2222; Username:vagrant; Initial Method:publickey-slot 1
3. Save the settings on the left side of the proposed point.
4. Click the left Login button to log in, the success will automatically jump out of the Xterm interface and file upload download interface.
Putty Connection on the vagrant configuration method, Note that the contents of the {} below need to be replaced by the situation
1. Download and run Puttygen.exe. Address: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
2. Click the Load button and select c:\users\{user name}\.vagrant.d\insecure_private_key import. (Note that the file type must be selected for all files, otherwise not shown)
3. Point save private key to the PPK file in putty format
4. Download and run Putty.exe. Address Ibid. Visible left is the configuration option.
5. Connection, SSH->auth->private key file for authentication, click the Browse button, select the PPK file you just saved
6. Session, Host Name: Enter localhost or 127.0.0.1, Port: Enter 2222
7. The session is usually saved for the next use, using the saved session function below.
8. Click the Open button to connect the activated virtual machine, enter vagrant as the user name to complete the login. You will need to enter the user name each time you enter.