How to run the redis by script, instead of manual start using "redis-server" ...
As described in Execute a Unix Command with Node.js:
var sys = require('util')
var exec = require('child_process').exec;
function puts(error, stdout, stderr) {
sys.puts(stdout)
}
exec("redis-server", puts);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With