Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var RedisStore = require('connect-redis')(express);
- app.use(express.session({
- store: new RedisStore({
- host: cfg.redis.host,
- db: cfg.redis.db
- }),
- secret: 'meow'
- }));
- //after login:
- req.session.userid = user._id;
- sudo update-rc.d -f mongodb defaults
- update-rc.d: using dependency based boot sequencing
- insserv: warning: script 'K01redis_6379' missing LSB tags and overrides
- insserv: warning: script 'redis_6379' missing LSB tags and overrides
- # chkconfig: - 58 74
- # description: redis_6379 is the redis daemon.
- ### BEGIN INIT INFO
- # Provides: redis_6379
- # Required-Start: $network $remote_fs $local_fs
- # Required-Stop: $network $remote_fs $local_fs
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: start and stop redis_6379
- # Description: Redis daemon
- ### END INIT INFO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement