mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
Changes: Removed `cd/path/to/nodebb/install` as we haven't instructed how to create the directory before changing to it. The git pull will create the nodebb directory in their root/profile folder anyway, which is fine for most installs. Added sudo to the base stack install. Added command for checking Node.js version. The guide at the minute might seem a bit daunting for newer users, so if psychobunny doesn't mind, I could create a post over on the community for an up to date noobs guide on how to install using digital ocean as an example. Then if it helps, add it to the docs. (Also, changes in this github aren't showing up in docs.nodebb, the update to sudo apt-get update && sudo apt-get dist-upgrade aren't displayed. Hope this helps.
58 lines
1.2 KiB
ReStructuredText
58 lines
1.2 KiB
ReStructuredText
|
|
Ubuntu
|
|
--------------------
|
|
|
|
First, we install our base software stack:
|
|
|
|
.. code:: bash
|
|
|
|
$ sudo apt-get install git nodejs redis-server imagemagick npm
|
|
|
|
|
|
If you want to use MongoDB, LevelDB, or another database instead of Redis please look at the :doc:`Configuring Databases <../configuring/databases>` section.
|
|
|
|
**If your package manager only installed a version of Node.js that is less than 0.8 (e.g. Ubuntu 12.10, 13.04), use ``node --version`` to determine your version of Node.js:**
|
|
|
|
|
|
.. code:: bash
|
|
|
|
$ sudo add-apt-repository ppa:chris-lea/node.js
|
|
$ sudo apt-get update && sudo apt-get dist-upgrade
|
|
|
|
|
|
Next, clone this repository:
|
|
|
|
|
|
.. code:: bash
|
|
|
|
$ git clone git://github.com/NodeBB/NodeBB.git nodebb
|
|
|
|
|
|
Obtain all of the dependencies required by NodeBB:
|
|
|
|
.. code:: bash
|
|
|
|
$ cd nodebb
|
|
$ npm install
|
|
|
|
|
|
Initiate the setup script by running the app with the ``setup`` flag:
|
|
|
|
|
|
.. code:: bash
|
|
|
|
$ ./nodebb setup
|
|
|
|
|
|
The default settings are for a local server running on the default port, with a redis store on the same machine/port.
|
|
|
|
Lastly, we run the forum.
|
|
|
|
|
|
.. code:: bash
|
|
|
|
$ ./nodebb start
|
|
|
|
|
|
NodeBB can also be started with helper programs, such as ``supervisor`` and ``forever``. :doc:`Take a look at the options here <../../running/index>`.
|