Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 2nd, 2013  |  syntax: None  |  size: 0.83 KB  |  views: 29  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data