ケトル Web バージョン (ウェブスプーン) 中国語 デプロイ ケトル ページ編集 ケトルウェブ 中国語

ウェブスプーン チャイニーズスイッチ

githubアドレス:https://github.com/hiromuHota/pentaho-kettle

Web版のインストール

画像-20220928084838084

インストールコマンド

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

画像-20220928085112599

設置されていることがわかります

画像-20220928085131288

ページにアクセスすると、英語になっていることがわかります。

画像-20220928085234200

中国化を開始

ウェブスプーンの容器に入る

# f4bb1f5f06e4 为容器id

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

画像-20220928085406432

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

画像-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# 

画像-20220928085853964

コマンド1を実行

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

画像-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

画像-20220928090306157

コマンド3を実行

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

画像-20220928090338885

コマンド4を実行

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

画像-20220928090636078

コマンド5を実行

apt-get install -y vim

画像-20220928090708762

setenv.shを再度編集します

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

画像-20220928090807768

中国語構成

これら 2 つの構成保存をファイルの最後に追加します。

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

画像-20220928091220593

画像-20220928091247119

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

# 查看容器
docker ps

# 重启容器
docker restart f4bb1f5f06e4

画像-20220928091410320

再起動が成功し、アドレスが再び中国語になりました。

画像-20220928091459057

おすすめ

転載: blog.csdn.net/qq_37349379/article/details/127082840