web spoon 中文切换

github 地址 : https://github.com/HiromuHota/pentaho-kettle

web 版本安装

image-20220928084838084

安装命令

docker run -d -p 8080:8080 hiromuhota/webspoon

image-20220928085112599

可以看到已经装好了

image-20220928085131288

页面访问,可以看到现在是英文的

image-20220928085234200

开始汉化

进入 webspoon 容器

# f4bb1f5f06e4 为容器id

docker exec -it -u 0 f4bb1f5f06e4 /bin/bash

image-20220928085406432

# 进入 Tomcat 的 bin目录 可以看到有一个 setenv.sh 的Tomcat 环境变量配置脚本
cd bin/

image-20220928085545842

安装vim

#编辑这个文件 发现 vi: command not found
root@f4bb1f5f06e4:/usr/local/tomcat/bin# vi setenv.sh
bash: vi: command not found
root@f4bb1f5f06e4:/usr/local/tomcat/bin# 

image-20220928085853964

执行命令1

# 清空/etc/apt/sources.list文件
 echo > /etc/apt/sources.list

image-20220928090219795

执行命令2

echo -e "deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib \ndeb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib \ndeb http://mirrors.aliyun.com/debian-security stretch/updates main \ndeb-src http://mirrors.aliyun.com/debian-security stretch/updates main \ndeb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib \ndeb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib \ndeb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib \ndeb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib" > /etc/apt/sources.list

image-20220928090306157

执行命令3

#更新软件列表 这个过程可能会有点慢 耐心等待
apt-get update

image-20220928090338885

执行命令4

apt-get install -y libtinfo5 --allow-remove-essential

image-20220928090636078

执行命令5

apt-get install -y vim

image-20220928090708762

再次编辑 setenv.sh

cd /usr/local/tomcat/bin
vim setenv.sh

image-20220928090807768

汉化配置

在文件末尾追加这两项配置 保存

CATALINA_OPTS="-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true"
JAVA_OPTS="-Duser.language=zh -Duser.region=CN -Dfile.encoding=UTF-8"

image-20220928091220593

image-20220928091247119

# 查看是否编辑成功
cat setenv.sh
# 退出容器
exit;

# 查看容器
docker ps

# 重启容器
docker restart f4bb1f5f06e4

image-20220928091410320

重启成功再次访问地址 汉化成功

image-20220928091459057

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐