NodeBB Install on DigitalOcean Not Working
I dumped my dump.rdb file into the root folder of nodebb and configured it so /etc/redis/redis.conf looks for the dump.rdb there.
Whenever I run
redis-serverit works with the normal 'warning no config redis.conf found'.
However, when I add
redis-server /etc/redis/redis.confit gives me a blank line and does not seem to work.
I setup nodebb using
./nodebb setupand added the IP provided by D.O. in the url settings, and defaulted everything else.
But, when going to the IP, it does not load at all.
Any help would be great
redis-server /etc/redis/redis.confto no success
Edit: I zipped up my local files and deployed it onto the Ubuntu server. Is this a proper way to do it? I have not changed any core codes at all.
Hm, there shouldn't really be any need to interact with Redis at all during installation.
A basic DO droplet can set up Redis just by running
sudo apt-get install redis-server -y
Then it is automatically started, reads the default config file at
/etc/redis/redis.conf, and loads the database at
No need to move the database anywhere, really.
@julian Thanks Julian, I wasn't able to stop the redis-server manually for (redis-cli shutdown?). I changed the path to where my current dump.rdb file was in
/etc/redis/redis.confbut for some reason I could not reload it with
I ended up uninstalling redis-server via
sudo apt-get remove redis-serverand reinstalled it again via
sudo apt-get install redis-serverand it pointed to my new dump.rdb file.
I think I'm slowly getting the hang of this!
@Arindam-sarkar remember: you need open firewall config for default nodebb port
Assuming you kept the default port setting, you need to allow it through the firewall.
firewall-cmd --zone=public --add-port=4567/tcp --permanent