Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. var RedisStore = require('connect-redis')(express);
  2.  
  3. app.use(express.session({
  4. store: new RedisStore({
  5. host: cfg.redis.host,
  6. db: cfg.redis.db
  7. }),
  8. secret: 'meow'
  9. }));
  10.  
  11.  
  12. //after login:
  13. req.session.userid = user._id;
  14.  
  15. sudo update-rc.d -f mongodb defaults
  16. update-rc.d: using dependency based boot sequencing
  17. insserv: warning: script 'K01redis_6379' missing LSB tags and overrides
  18. insserv: warning: script 'redis_6379' missing LSB tags and overrides
  19.  
  20. # chkconfig: - 58 74
  21. # description: redis_6379 is the redis daemon.
  22. ### BEGIN INIT INFO
  23. # Provides: redis_6379
  24. # Required-Start: $network $remote_fs $local_fs
  25. # Required-Stop: $network $remote_fs $local_fs
  26. # Default-Start: 2 3 4 5
  27. # Default-Stop: 0 1 6
  28. # Short-Description: start and stop redis_6379
  29. # Description: Redis daemon
  30. ### END INIT INFO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement