# 宝塔nginx反代安装discourse 进入后台安装主题和插件不成功

**URL:** <https://www.isharkfly.com/t/nginx-discourse/16504>\
**Category:** Discourse\
**Tags:** discourse\
**Created:** [October 30, 2024, 2:38pm UTC](https://www.isharkfly.com/t/nginx-discourse/16504 "2024-10-30T14:38:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nero\_Z](https://www.isharkfly.com/user_avatar/www.isharkfly.com/nero_z/32/15794_2.png) [@Nero\_Z](https://www.isharkfly.com/u/Nero_Z)\
**Post date:** [October 30, 2024, 2:38pm UTC](https://www.isharkfly.com/t/nginx-discourse/16504/1 "2024-10-30T14:38:35Z")

</div>

提示git不能访问，有没有遇见这种问题的，如何解决呢 😭

---

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 30, 2024, 3:48pm UTC](https://www.isharkfly.com/t/nginx-discourse/16504/2 "2024-10-30T15:48:39Z")

</div>

应该是你的服务器尝试 Pull 代码的时候没有成功。

一般的思路是检查服务器有没有防火墙，如果有，关闭防火墙。

在服务器上装一个 Git，然后自己尝试用 Git 命令找一个临时文件夹随便 pull 下 GitHub 的代码。

如果不成功，那么说明 GitHub 访问不了。

那么就看能不能找一个 Github 的镜像或者代理了。

这种情况通常出现在国内的服务器上。

---

<div class="post-metadata">

**Author:** ![Nero\_Z](https://www.isharkfly.com/user_avatar/www.isharkfly.com/nero_z/32/15794_2.png) [@Nero\_Z](https://www.isharkfly.com/u/Nero_Z)\
**Post date:** [October 30, 2024, 2:25pm UTC](https://www.isharkfly.com/t/nginx-discourse/16504/3 "2024-10-30T14:25:13Z")

</div>

宝塔里 正常安装使用，有没有遇到后台安装主题和组件，提示不能访问git的情况

---

<div class="post-metadata">

**Author:** ![Nero\_Z](https://www.isharkfly.com/user_avatar/www.isharkfly.com/nero_z/32/15794_2.png) [@Nero\_Z](https://www.isharkfly.com/u/Nero_Z)\
**Post date:** [October 30, 2024, 3:50pm UTC](https://www.isharkfly.com/t/nginx-discourse/16504/4 "2024-10-30T15:50:10Z")

</div>

安装的使用要 clone git 成功了没事，没有防火墙，

---

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 30, 2024, 3:50pm UTC](https://www.isharkfly.com/t/nginx-discourse/16504/5 "2024-10-30T15:50:11Z")

</div>

> [@Nero\_Z](#):
>
> 提示不能访问git的情况

这个情况如上面所说，通常是网络的问题。

先排除下网络问题看看。
