已部署
This commit is contained in:
@@ -441,6 +441,10 @@ docker compose --env-file .env.prod -f docker-compose.prod.yml up -d --build fro
|
|||||||
sudo cp deploy/nginx-ipport.conf /etc/nginx/sites-available/qingye-ipport.conf && sudo ln -sf /etc/nginx/sites-available/qingye-ipport.conf /etc/nginx/sites-enabled/ && sudo nginx -t && sudo systemctl reload nginx && sudo ufw allow 8088/tcp
|
sudo cp deploy/nginx-ipport.conf /etc/nginx/sites-available/qingye-ipport.conf && sudo ln -sf /etc/nginx/sites-available/qingye-ipport.conf /etc/nginx/sites-enabled/ && sudo nginx -t && sudo systemctl reload nginx && sudo ufw allow 8088/tcp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> **若 `nginx -t` 通过、但 8088 仍不监听**:说明这台 nginx 只加载 `conf.d`(被 v2ray 等改过 `nginx.conf`、不含 `sites-enabled`)。把配置改放到 conf.d 即可:
|
||||||
|
> `sudo cp deploy/nginx-ipport.conf /etc/nginx/conf.d/qingye-ipport.conf && sudo rm -f /etc/nginx/sites-enabled/qingye-ipport.conf && sudo nginx -t && sudo systemctl reload nginx`
|
||||||
|
> 用 `sudo nginx -T 2>/dev/null | grep include` 可查看 nginx 实际加载哪些目录。
|
||||||
|
|
||||||
随后浏览器打开 `http://103.170.72.162:8088`。前端域名无关(同源 `/api/v1`、按页面协议推导 `ws://`),HTTP 下照常工作;浏览器提示「不安全」属正常。
|
随后浏览器打开 `http://103.170.72.162:8088`。前端域名无关(同源 `/api/v1`、按页面协议推导 `ws://`),HTTP 下照常工作;浏览器提示「不安全」属正常。
|
||||||
|
|
||||||
> **换端口**:把 `nginx-ipport.conf` 里唯一的 `listen 8088` 与 `ufw allow 8088/tcp` 中的 `8088` 一并改掉即可。
|
> **换端口**:把 `nginx-ipport.conf` 里唯一的 `listen 8088` 与 `ufw allow 8088/tcp` 中的 `8088` 一并改掉即可。
|
||||||
|
|||||||
@@ -3,3 +3,8 @@
|
|||||||
之后,生成一个md文件,告知如何在VPS中执行部署命令。VPS的OS是Ubuntu 20.04。安装了nginx,但其他必要的软件包未安装。
|
之后,生成一个md文件,告知如何在VPS中执行部署命令。VPS的OS是Ubuntu 20.04。安装了nginx,但其他必要的软件包未安装。
|
||||||
|
|
||||||
本地自测通过了。但这个VPS之前申请过证书,并且域名www.e4s.world可能被占用了。所以我计划直接用IP地址和端口的形式部署这个qingye的服务。请修改相关设置,并给出后续部署的命令。
|
本地自测通过了。但这个VPS之前申请过证书,并且域名www.e4s.world可能被占用了。所以我计划直接用IP地址和端口的形式部署这个qingye的服务。请修改相关设置,并给出后续部署的命令。
|
||||||
|
|
||||||
|
root@willing-shame:/opt/qingye/chat# curl -I http://127.0.0.1:8088
|
||||||
|
curl: (7) Failed to connect to 127.0.0.1 port 8088: Connection refused
|
||||||
|
|
||||||
|
打开 http://103.170.72.162:8088,返回error 503
|
||||||
Reference in New Issue
Block a user