aliyun install Discourse log
apt update
apt install wget
wget -qO- https://get.docker.com/ | sh
vim /etc/default/docker
DOCKER_OPTS="--registry-mirror=http://aad0405c.m.daocloud.io"
service docker restart
mkdir /var/discourse
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse
cp samples/standalone.yml containers/app.yml
vim containers/app.yml
templates:
- "templates/web.ratelimited.template.yml"
- "templates/web.china.template.yml"
## TODO: The domain name this Discourse instance will respond to
DISCOURSE_HOSTNAME: 'bbs.icoolpy.com'
## TODO: List of comma delimited emails that will be made admin and developer
## on initial signup example 'user1@example.com,user2@example.com'
DISCOURSE_DEVELOPER_EMAILS: 'admin@icoolpy.com'
## TODO: The SMTP mail server used to validate new accounts and send notifications
DISCOURSE_SMTP_ADDRESS: smtp.exmail.qq.com # required
DISCOURSE_SMTP_PORT: 25 # (optional, default 587)
DISCOURSE_SMTP_USER_NAME: admin@icoolpy.com # required
DISCOURSE_SMTP_PASSWORD: ****** # required, WARNING the char '#' in pw can cause problems!
DISCOURSE_SMTP_AUTHENTICATION: login
DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
#DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
//独立nginx配置
https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247
./launcher bootstrap app
./launcher start app
账号
cd /var/discourse
./launcher enter app
rake admin:create
登陆dissourse 设置-》必填-》notification email-》admin@icoolpy.com
Usage: launcher COMMAND CONFIG [--skip-prereqs] Commands: start: 启动/初始化容器 stop: 关闭运行中的容器 restart: 重启容器 destroy: 关闭并删除容器 enter: 使用 nsenter 进入容器 ssh: 在运行中的容器中启动 bash shell logs: 容器的 Docker 日志 mailtest: 测试容器中的邮件配置 bootstrap: 基于配置文件预设模板初始化容器 rebuild: 重建一个容器(删除老容器,初始化,启动新容器)
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· 展开说说关于C#中ORM框架的用法!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?