Linux系统一键更改IP脚本 两种方法
1.代码更改(比较适合搭建)sed -i "s/源码IP/自己服务器IP/g" `grep 源码IP -rl /data/`/data/是要修改目录
2.(比较适合做源码)
链接:https://pan.xunlei.com/s/VOhTNENTDKC66Vu1-NgudKIjA1
提取码:zpzg
https://drive.uc.cn/s/2b81c8f391dd4
把ip.sh上传服务器
脚本代码
cd /data && ./ip.sh
/data是ip.sh位置(可以根据实际上传到其他目录)
下面是要修改文件(根据源码修改ip.sh)
/www/wwwroot/game/ClientVersion.json
/www/wwwroot/game/gm.html
/www/wwwroot/game/gm.php
/www/wwwroot/game/mg/patch/query.json
/www/wwwroot/game/mg/server/navigation.json
页:
[1]