Installing NodeBB with Mongo on CentOS 7
-
@scottalanmiller what would be the best method to launch nodebb on reboot?
I can think of a couple things to do, but what is "best practice" for something like this.
-
@JaredBusch said in Installing NodeBB with Mongo on CentOS 7:
@scottalanmiller what would be the best method to launch nodebb on reboot?
I can think of a couple things to do, but what is "best practice" for something like this.
I'm using the crontab, it's flexible and easy. Since there is no existing boot scripts for NodeBB and it happens after Nginx fires up.
Best practice would really be to write a start up script and add it to the systemctl system. But really, that just seems like overkill to me. Because the system (in my case) is dedicated to NodeBB and all NodeBB instances are listed in a single location, it's incredibly obvious and easy to manage.
-
@scottalanmiller said in Installing NodeBB with Mongo on CentOS 7:
I'm using the crontab, it's flexible and easy. Since there is no existing boot scripts for NodeBB and it happens after Nginx fires up.
what just something like this?
@reboot cd /opt/nodebb && ./nodebb start
@scottalanmiller said in Installing NodeBB with Mongo on CentOS 7:
Best practice would really be to write a start up script and add it to the systemctl system. But really, that just seems like overkill to me. Because the system (in my case) is dedicated to NodeBB and all NodeBB instances are listed in a single location, it's incredibly obvious and easy to manage.
I guess someone should document this process one of these days..
-
@JaredBusch said in Installing NodeBB with Mongo on CentOS 7:
@scottalanmiller said in Installing NodeBB with Mongo on CentOS 7:
I'm using the crontab, it's flexible and easy. Since there is no existing boot scripts for NodeBB and it happens after Nginx fires up.
what just something like this?
@reboot cd /opt/nodebb && ./nodebb start
@scottalanmiller said in Installing NodeBB with Mongo on CentOS 7:
Best practice would really be to write a start up script and add it to the systemctl system. But really, that just seems like overkill to me. Because the system (in my case) is dedicated to NodeBB and all NodeBB instances are listed in a single location, it's incredibly obvious and easy to manage.
I guess someone should document this process one of these days..
Yes, but on my system the folder is not /opt/nodebb but is /opt/sitename so that it is very clear what is starting and what the order is.
-
@scottalanmiller said in Installing NodeBB with Mongo on CentOS 7:
@JaredBusch said in Installing NodeBB with Mongo on CentOS 7:
@scottalanmiller said in Installing NodeBB with Mongo on CentOS 7:
I'm using the crontab, it's flexible and easy. Since there is no existing boot scripts for NodeBB and it happens after Nginx fires up.
what just something like this?
@reboot cd /opt/nodebb && ./nodebb start
@scottalanmiller said in Installing NodeBB with Mongo on CentOS 7:
Best practice would really be to write a start up script and add it to the systemctl system. But really, that just seems like overkill to me. Because the system (in my case) is dedicated to NodeBB and all NodeBB instances are listed in a single location, it's incredibly obvious and easy to manage.
I guess someone should document this process one of these days..
Yes, but on my system the folder is not /opt/nodebb but is /opt/sitename so that it is very clear what is starting and what the order is.
I was following the example listed in this thread. I used
/opt/nodebb
for the instructions -
Note, it apparently detects the previous install and updates with git anyway.
[root@daermabb ~]# curl https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 11329 100 11329 0 0 21219 0 --:--:-- --:--:-- --:--:-- 21255 => nvm is already installed in /root/.nvm, trying to update using git => => Compressing and cleaning up git repository Counting objects: 6072, done. Compressing objects: 100% (6034/6034), done. Writing objects: 100% (6072/6072), done. Total 6072 (delta 4010), reused 1867 (delta 0)
-
This guide does it this way
git clone git://github.com/creationix/nvm.git ~/.nvm printf "\n\n# NVM\nif [ -s ~/.nvm/nvm.sh ]; then\n\tNVM_DIR=~/.nvm\n\tsource ~/.nvm/nvm.sh\nfi" >> ~/.bashrc NVM_DIR=~/.nvm source ~/.nvm/nvm.sh
-
Guess I should update this one of these days
-
@jaredbusch said in Installing NodeBB with Mongo on CentOS 7:
Guess I should update this one of these days
Wow.. I need to write an updated guide...
-
It's a bit different, now.
-
@jaredbusch said in Installing NodeBB with Mongo on CentOS 7:
@jaredbusch said in Installing NodeBB with Mongo on CentOS 7:
Guess I should update this one of these days
Wow.. I need to write an updated guide...
Just remember mongodb and nodejs can be installed natively on Fedora.
https://developer.fedoraproject.org/tech/database/mongodb/about.html
https://developer.fedoraproject.org/tech/languages/nodejs/nodejs.html