在阿里云上Create Discourse forum 论坛

本文详细介绍了如何在阿里云ECS上创建一个Discourse论坛。首先通过Putty登录ECS,检查Ubuntu版本并安装git,然后从GitHub下载Discourse Docker镜像。在安装过程中遇到缺少git的问题,更新apt源后成功安装。接下来,找到验证用户的电子邮件服务器,如Mailgun,并配置SMTP设置。将域名或子域名指向阿里云ECS服务器,确保解析正确。最后,安装Discourse论坛时出现访问GitHub的问题导致安装失败。
摘要由CSDN通过智能技术生成

Putty login Aliyun ECS

Step 1: Check the Linux Ubuntu version

root@iZ2ze472xetukni84zf7l3Z:~# uname -a
Linux iZ2ze472xetukni84zf7l3Z 5.4.0-92-generic #103-Ubuntu SMP Fri Nov 26 16:13:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
root@iZ2ze472xetukni84zf7l3Z:~#


Step 2: Install git.

root@iZ2ze472xetukni84zf7l3Z:~# sudo apt install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package git is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'git' has no installation candidate
root@iZ2ze472xetukni84zf7l3Z:~#

Failed to install git

Update the apt in system, and then install the git.

root@iZ2ze472xetukni84zf7l3Z:~# sudo apt update
Get:1 http://mirrors.cloud.aliyuncs.com/ubuntu focal InRelease [265 kB]
Get:2 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://mirrors.cloud.aliyuncs.com/ubuntu focal-backports InRelease [108 kB]
Get:4 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security InRelease [114 kB]
Get:5 http://mirrors.cloud.aliyuncs.com/ubuntu focal/multiverse Sources [174 kB]
Get:6 http://mirrors.cloud.aliyuncs.com/ubuntu focal/restricted Sources [6,472 B]
Get:7 http://mirrors.cloud.aliyuncs.com/ubuntu focal/universe Sources [9,707 kB]
Get:8 http://mirrors.cloud.aliyuncs.com/ubuntu focal/main Sources [847 kB]
Get:9 http://mirrors.cloud.aliyuncs.com/ubuntu focal/main i386 Packages [718 kB]
Get:10 http://mirrors.cloud.aliyuncs.com/ubuntu focal/main amd64 Packages [970 kB]
Get:11 http://mirrors.cloud.aliyuncs.com/ubuntu focal/main Translation-en [506 kB]
Get:12 http://mirrors.cloud.aliyuncs.com/ubuntu focal/main amd64 c-n-f Metadata [29.5 kB]
Get:13 http://mirrors.cloud.aliyuncs.com/ubuntu focal/restricted amd64 Packages [22.0 kB]
Get:14 http://mirrors.cloud.aliyuncs.com/ubuntu focal/restricted i386 Packages [8,112 B]
Get:15 http://mirrors.cloud.aliyuncs.com/ubuntu focal/restricted Translation-en [6,212 B]
Get:16 http://mirrors.cloud.aliyuncs.com/ubuntu focal/restricted amd64 c-n-f Metadata [392 B]
Get:17 http://mirrors.cloud.aliyuncs.com/ubuntu focal/universe amd64 Packages [8,628 kB]
Get:18 http://mirrors.cloud.aliyuncs.com/ubuntu focal/universe i386 Packages [4,642 kB]
Get:19 http://mirrors.cloud.aliyuncs.com/ubuntu focal/universe Translation-en [5,124 kB]
Get:20 http://mirrors.cloud.aliyuncs.com/ubuntu focal/universe amd64 c-n-f Metadata [265 kB]
Get:21 http://mirrors.cloud.aliyuncs.com/ubuntu focal/multiverse amd64 Packages [144 kB]
Get:22 http://mirrors.cloud.aliyuncs.com/ubuntu focal/multiverse i386 Packages [74.7 kB]
Get:23 http://mirrors.cloud.aliyuncs.com/ubuntu focal/multiverse Translation-en [104 kB]
Get:24 http://mirrors.cloud.aliyuncs.com/ubuntu focal/multiverse amd64 c-n-f Metadata [9,136 B]
Get:25 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/main Sources [460 kB]
Get:26 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/multiverse Sources [19.0 kB]
Get:27 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/restricted Sources [32.1 kB]
Get:28 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/universe Sources [216 kB]
Get:29 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/main amd64 Packages [1,510 kB]
Get:30 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/main i386 Packages [592 kB]
Get:31 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/main Translation-en [296 kB]
Get:32 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/main amd64 c-n-f Metadata [14.7 kB]
Get:33 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/restricted amd64 Packages [736 kB]
Get:34 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/restricted i386 Packages [21.8 kB]
Get:35 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/restricted Translation-en [105 kB]
Get:36 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [532 B]
Get:37 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/universe i386 Packages [664 kB]
Get:38 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/universe amd64 Packages [894 kB]
Get:39 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/universe Translation-en [196 kB]
Get:40 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [20.0 kB]
Get:41 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/multiverse amd64 Packages [24.8 kB]
Get:42 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/multiverse i386 Packages [8,432 B]
Get:43 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/multiverse Translation-en [6,928 B]
Get:44 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [620 B]
Get:45 http://mirrors.cloud.aliyuncs.com/ubuntu focal-backports/universe Sources [5,968 B]
Get:46 http://mirrors.cloud.aliyuncs.com/ubuntu focal-backports/main Sources [6,584 B]
Get:47 http://mirrors.cloud.aliyuncs.com/ubuntu focal-backports/main i386 Packages [34.5 kB]
Get:48 http://mirrors.cloud.aliyuncs.com/ubuntu focal-backports/main amd64 Packages [42.0 kB]
Get:49 http://mirrors.cloud.aliyuncs.com/ubuntu focal-backports/main Translation-en [10.0 kB]
Get:50 http://mirrors.cloud.aliyuncs.com/ubuntu focal-backports/main amd64 c-n-f Metadata [864 B]
Get:51 http://mirrors.cloud.aliyuncs.com/ubuntu focal-backports/restricted amd64 c-n-f Metadata [116 B]
Get:52 http://mirrors.cloud.aliyuncs.com/ubuntu focal-backports/universe i386 Packages [11.1 kB]
Get:53 http://mirrors.cloud.aliyuncs.com/ubuntu focal-backports/universe amd64 Packages [19.5 kB]
Get:54 http://mirrors.cloud.aliyuncs.com/ubuntu focal-backports/universe Translation-en [13.4 kB]
Get:55 http://mirrors.cloud.aliyuncs.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [672 B]
Get:56 http://mirrors.cloud.aliyuncs.com/ubuntu focal-backports/multiverse amd64 c-n-f Metadata [116 B]
Get:57 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/main Sources [198 kB]
Get:58 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/universe Sources [83.1 kB]
Get:59 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/restricted Sources [32.1 kB]
Get:60 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/main amd64 Packages [1,178 kB]
Get:61 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/main i386 Packages [363 kB]
Get:62 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/main Translation-en [210 kB]
Get:63 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/main amd64 c-n-f Metadata [9,132 B]
Get:64 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/restricted i386 Packages [20.5 kB]
Get:65 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/restricted amd64 Packages [686 kB]
Get:66 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/restricted Translation-en [97.9 kB]
Get:67 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [536 B]
Get:68 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/universe amd64 Packages [676 kB]
Get:69 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/universe i386 Packages [532 kB]
Get:70 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/universe Translation-en [115 kB]
Get:71 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security/universe amd64 c-n-f Metadata [13.0 kB]
Fetched 42.8 MB in 7s (6,257 kB/s)
Reading package lists... 7%
Reading package lists... 99%
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree
Reading state information... Done
18 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@iZ2ze472xetukni84zf7l3Z:~#
root@iZ2ze472xetukni84zf7l3Z:~#
root@iZ2ze472xetukni84zf7l3Z:~#
root@iZ2ze472xetukni84zf7l3Z:~# sudo apt install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  git-man libcurl3-gnutls liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man libcurl3-gnutls liberror-perl
0 upgraded, 4 newly installed, 0 to remove and 18 not upgraded.
Need to get 5,697 kB of archives.
After this operation, 39.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.7 [232 kB]
Get:2 http://mirrors.cloud.aliyuncs.com/ubuntu focal/main amd64 liberror-perl all 0.17029-1 [26.5 kB]
Get:3 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/main amd64 git-man all 1:2.25.1-1ubuntu3.2 [884 kB]
Get:4 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates/main amd64 git amd64 1:2.25.1-1ubuntu3.2 [4,554 kB]
Fetched 5,697 kB in 0s (12.4 MB/s)
Selecting previously unselected package libcurl3-gnutls:amd64.
(Reading database ... 113731 files and directories curren
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值