![]() If your working with a remote system then you would use ping to see if the server is up and a portscanner like nmap to discover the remote ports available.įollowing all this you would then initiate the connection by using: telnet 3000 What this does is reports the locally opened ports for either localhost:3000 or localhost:6379. ![]() These two commands would be executed in cmd.exe/powershell and under bash if your in a unix environment such as Linux, OSX, or BSD.Īn example of this would be exectuting the following: I did forget to state that the commands netstat, ping, and telnet can help one to debug which ports are open locally and what the service is returning to the application. Secret: "kqsdjfmlksdhfhzirzeoibrzecrbzuzefcuercazeafxzeokwdfzeijfxcerig", Var redis = require("redis").createClient() Īpp.set('port', || 3000) Ĭonsole.log('views', _dirname + '/views') Īpp.set('view engine', 'jade') //jade as template engine Var RedisStore = require('connect-redis')(express) In my server.js (only meaningful part): var express = require('express') I installed redis and connect-redis (they are referenced in package.json): npm install redis connect-redis -save ![]() I am following along a tutorial on node.js. On windows, there is a redis distribution, check out the following link: then start the server by launching "redis-server.exe" For those struggling with Redis, the Redis server has to be launched. ![]()
0 Comments
Leave a Reply. |