I followed instructions from http://www.saltwebsites.com/2012/how-run-redis-service-under-windows for running redis server.
- I downloaded Windows Redis port by Dušan Majkić and extracted to "C:\redisserver\redis\" I have runtest and redis.conf in this directory for example after extracting here.
- I downloaded Windows Redis service program by Konstantin Cherenkov and extracted to "C:\redisserver\redis-windows-service\" having readme.md and RedisService.sln files in it
- I also downloaded file from https://github.com/kcherenkov/redis-windows-service/downloads i.e RedisService_1.1.exe in "C:\redisserver\"
- After that I run command : sc create redis-instance binpath= "\"C:\redisserver\redis\RedisService_1.1.exe\" c:\redisserver\redis\redis.conf start= "auto" DisplayName= "Redis"
- I got message after running this command
- [SC] CreateService SUCCESS
- Now, when I run juggernaut I am getting the response:
C:\ruby_projects\sports>juggernautThe "sys" module is now called "util". It should have a similar interface.info - socket.io startedError: Redis connection to 127.0.0.1:6379 failed - connect EINVALhttps://gist.github.com/2118265 [My Gem list]Am I doing something wrong? How should I run juggernaut?
Hello,
Wasn't the instructions I provided before enough?
You don't need to run Redis as a service to actually use it.
> Now, when I run juggernaut I am getting the response:
>
> C:\ruby_projects\sports>juggernaut
> The "sys" module is now called "util". It should have a similar interface.
> info - socket.io started
> Error: Redis connection to 127.0.0.1:6379 failed - connect EINVAL
>
> https://gist.github.com/2118265 [My Gem list]
>
> Am I doing something wrong? How should I run juggernaut?
>
Mostly likely the redis instance you configured is not working.
Why you don't start it from the command line, pointing to the
configuration file and see if it works?
You should try to "walk" before "run" and don't follow blindly
tutorials on internet which most of the times just works in the user
system.
It is important you understand what you're doing first than copy and paste.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
I created server.js with the following code in it:var http = require('http');http.createServer(function (req, res) {res.writeHead(200, {'Content-Type': 'text/plain'});res.end('Hello World\n');}).listen(6379, "127.0.0.1");
After that I run command c:\node\>node server.jsand juggernaut from separate command window and I got the following output.
The "sys" module is now called "util". It should have a similar interface.info - socket.io started
Thanks and Regards,Does it mean it is running fine now?
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.