> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lwops.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 部署环境变更指引

## 1. 将脚本文件 ip\_update\_community.sh 上传到平台终端

点击下载：[ip\_update\_community.sh](https://pan.baidu.com/s/1HbJDVfZ0cp5TXaRG-Y9QRg?pwd=nkwy)

## 2. 为脚本文件添加权限：

`chmod +x ip_update_community`

## 3. 更换 IP

**（1）方式一，自动获取当前机器 IP 并更新**<br />`./ip_date.sh`<br />系统会将所有配置替换为你指定的 IP 地址。<br />**（2）方式二，手动指定新 IP**<br />`./ip_update_community.sh x.x.x.x（输入新 IP 地址）`<br />系统会将所有配置替换为你指定的 IP 地址。

## 4. 进入/itops/nginx/html/lwjk\_app/.env 修改对应 IP

将原有 IP（或者 localhost）修改为新的 IP

## 5. 执行以下命令，输入现 IP: [http://x.x.x.x:8081](http://x.x.x.x:8081)

`php /itops/nginx/html/lwjk_app/bin/manager init/sw`

## 6. 回到平台，刷新即可
