分类
公众号「0加1」

discouse-pi


title: discouse-pi

更换清华大学镜像源

  • 先备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
  • 使用清华大学镜像源替换source.list中的内容
sudo chmod 777 /etc/apt/sources.list


sudo cat >/etc/apt/sources.list<<EOF
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-proposed main restricted universe multiverse
EOF

cat /etc/apt/sources.list
sudo chmod 644 /etc/apt/sources.list

安装Git

sudo apt update -y
sudo apt install git -y

安装netcat

sudo apt install netcat -y

ubuntu安装netcat

获取Discourse源码仓库, 并填写邮件服务SMTP相关信息

git clone https://github.com/discourse/discourse_docker.git /opt/discourse

discourse

# 进入目录
cd /opt/discourse
# 复制配置文件
sudo cp /opt/discourse/samples/standalone.yml     /opt/discourse/containers/app.yml
# 修改配置文件
vim /opt/discourse/containers/app.yml

本文永久更新地址(欢迎来读留言,写评论):

https://www.v2fy.com/p/2021-11-05-discouse-pi-1636120009000

发表评论

电子邮件地址不会被公开。


The maximum upload file size: 2 MB.
You can upload: image, audio, video, document, spreadsheet, interactive, text, archive, code, other.
Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded.