ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Installing NodeBB with Mongo on CentOS 7

    IT Discussion
    nodebb centos 7 centos how-to nodebb 1.4
    3
    16
    8.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JaredBuschJ
      JaredBusch @scottalanmiller
      last edited by

      @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.

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @JaredBusch
        last edited by

        @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.

        JaredBuschJ 1 Reply Last reply Reply Quote 0
        • JaredBuschJ
          JaredBusch @scottalanmiller
          last edited by

          @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..

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @JaredBusch
            last edited by

            @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.

            JaredBuschJ 1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch @scottalanmiller
              last edited by

              @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

              1 Reply Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch
                last edited by

                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)
                
                1 Reply Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch
                  last edited by

                  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
                  
                  1 Reply Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch
                    last edited by

                    Guess I should update this one of these days

                    JaredBuschJ 1 Reply Last reply Reply Quote 1
                    • JaredBuschJ
                      JaredBusch @JaredBusch
                      last edited by

                      @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...

                      black3dynamiteB 1 Reply Last reply Reply Quote 1
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        It's a bit different, now.

                        1 Reply Last reply Reply Quote 0
                        • black3dynamiteB
                          black3dynamite @JaredBusch
                          last edited by

                          @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

                          1 Reply Last reply Reply Quote 2
                          • 1 / 1
                          • First post
                            Last post