# 图片未在 discourse 中填充

**URL:** <https://meta.discourse.org/t/images-are-not-being-populated-in-discourse/196269>\
**Category:** Self-hosting\
**Created:** [2021 年7 月 7 日 05:29 UTC](https://meta.discourse.org/t/images-are-not-being-populated-in-discourse/196269 "2021-07-07T05:29:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Ishita](https://avatars.discourse-cdn.com/v4/letter/i/8dc957/32.png) [@Ishita](https://meta.discourse.org/u/Ishita)\
发布日期： [2021 年7 月 7 日 05:29 UTC](https://meta.discourse.org/t/images-are-not-being-populated-in-discourse/196269/1 "2021-07-07T05:29:00Z")

</div>

我已通过以下链接安装了 Discourse：

> [@在 Ubuntu 或 Debian 上安装 Discourse 用于开发](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727):
>
> warning 本指南介绍的是在开发环境中安装 Discourse 的步骤。如需了解生产环境安装指南，请访问：[Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) 您想在 Ubuntu 或 Debian 上搭建 Discourse 以便进行开发和调试吗？ 我们将假设您是在本地工作，并且您的 Ubuntu 或 Debian 系统上尚未安装 Ruby/Rails/Postgres/Redis。让我们开始吧！ 系统要求 我们建议至少配备 4 GB 内存和 2 个 CPU 核心。 当前兼容性： 操作系统 兼容性 Debian 11white_check_markCrostini (ChromeOS 上的 Linux)white_check_markUbuntu 22.04 或更高版本white_check_mark安装 Discourse 依赖项 您的系统中需要安装以下软件包： [Git](http://git-scm.com/)[rbenv](https://github.com/sstephenson/rbenv) 或 [asdf](https://asdf-vm.com/guide/getting-started.html)[ruby-b…](https://github.com/sstephenson/ruby-build)

我需要为公司设置 Discourse，但似乎创建包含图片的新主题后，我们无法查看该图片。

加载资源失败：net::ERR\_CONNECTION\_REFUSED，来源为：  
[http://localhost:3000/uploads/default/optimized/1X/750808cfc87d096d4bc4002f2f1137a4b5fbbfc9\_2\_10x10.png](http://localhost:3000/uploads/default/optimized/1X/750808cfc87d096d4bc4002f2f1137a4b5fbbfc9_2_10x10.png)  
但我可以使用服务器 IP 地址代替 localhost 来获取 PNG 图片。

感谢所有提供帮助的朋友。

---

_[View the full topic](https://meta.discourse.org/t/images-are-not-being-populated-in-discourse/196269)._
