How to install Discourse on Debian 9

Source: Internet
Author: User
Tags vps

Discourse is a modern, open-source discussion and forum system. Visit the official site to get a demonstration and decomposition of the current feature set. This tutorial will teach you how to use the Docker CE Setup dialog on Debian 9.

Create a new vultr VPS

1GB of memory is the minimum value, but it is recommended to use at least 2GB of memory.

Access vultr VPS as root user

Connect to the server through a terminal on your Mac or putty on Windows.

SSH [email protected]

Replace the with your server IP.

You are prompted to enter Yes or No to add the RSA thumbprint of the server to the list of known hosts. Enter Yes and press ENTER.

Set up swap (for 1GB installation only)

Create an empty swap file:

install -o root -g root -m 0600 /dev/null /swapfile

Write a 1GB file named Swapfile:

dd if=/dev/zero of=/swapfile bs=1k count=1024k

Tell Linux this is the swap file:

mkswap /swapfile

Activate it:

swapon /swapfile

Add it to the system table so that it is available after a reboot:

echo "/swapfile swap swap auto 0 0" | tee -a /etc/fstab

Set swappiness so that it is used only as an emergency buffer:

sysctl -w vm.swappiness=10


To install Docker CE, follow all the steps in this guide.

Install Git.

apt update
apt install git -y

Create a folder named Discourse in the/var directory:

mkdir /var/discourse

Clone the official discourse git repository in/var/discourse:

git clone /var/discourse

Enter the discourse directory:

cd /var/discourse

Start the Setup tool:


When prompted, answer the following questions:

This will generate a APP.YML configuration file on your behalf, and then start Bootstrap. If you need to change these settings after booting, you can run the./discourse-setup again (it will read your old values from the file) or edit the Container/app. Yml with the Nano and then run. /launcher to rebuild the app and let your changes take effect.

Note: You must have your email set up correctly to make your site work.

Congratulations, you now have your own instance of dialogue. To access it, simply type the host name ( that you configured in your Web browser and complete the configuration.

How to install Discourse on Debian 9

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.