- 下载新版本对应你的系统的二进制版本zip文件,并解压;
- 停止正在运行的TeaWeb服务,可以在原有目录下运行
bin/teaweb stop; - 将 除configs/ 目录外的所有文件拷贝到原有目录下,并替换原有文件;
- 使用命令
bin/teaweb restart重启服务,升级完成。
在Linux环境下,可以使用自带的upgrade.sh进行升级,分成两个步骤:
- 在官网上下载最新版本的TeaWeb,传至服务器的某个目录,比如叫
/root/目录下,然后使用unzip解压,比如解压后的目录是/root/teaweb-v0.1.6 - 在 老版本 的安装目录下运行:
./upgrade.sh /root/teaweb-v0.1.6即可。其中/root/teaweb-v0.1.6换成你自己解压的新版本的TeaWeb目录。
从 v0.1.3开始,将先前根目录下的很多目录合并到web/目录下,以下是新旧对比:
v0.1.2及以前:
根目录/
bin/
configs/
logs/
plugins/
scripts/
installers/
libs/
public/
resources/
tmp/
upgrade/
views/
v0.1.3以后:
根目录/
bin/
configs/
logs/
plugins/
scripts/
web/
installers/
libs/
public/
resources/
tmp/
upgrade/
views/