feat: translate chinese to english (#402)

* Checkpoint before follow-up message

Co-authored-by: anzhengchao <anzhengchao@gmail.com>

* Translate project documentation and comments from Chinese to English

Co-authored-by: anzhengchao <anzhengchao@gmail.com>

* Fix typo: "unparseable" to "unparsable" in version test comment

Co-authored-by: anzhengchao <anzhengchao@gmail.com>

* Refactor compression test code with minor syntax improvements

Co-authored-by: anzhengchao <anzhengchao@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
安正超
2025-08-14 00:19:01 +08:00
committed by GitHub
parent 581607da6a
commit d552210b59
24 changed files with 307 additions and 361 deletions
+10 -10
View File
@@ -14,32 +14,32 @@
# limitations under the License.
# 脚本名称:scp_to_servers.sh
# Script name: scp_to_servers.sh
rm ./target/x86_64-unknown-linux-gnu/release/rustfs.zip
# 压缩./target/x86_64-unknown-linux-gnu/release/rustfs
# Compress ./target/x86_64-unknown-linux-gnu/release/rustfs
zip -j ./target/x86_64-unknown-linux-gnu/release/rustfs.zip ./target/x86_64-unknown-linux-gnu/release/rustfs
# 上传到服务器
# Upload to server
LOCAL_FILE="./target/x86_64-unknown-linux-gnu/release/rustfs.zip"
REMOTE_PATH="~"
# 必须传入IP参数,否则报错退出
# IP parameter must be provided, otherwise exit with error
if [ -z "$1" ]; then
echo "用法: $0 <server_ip>"
echo "请传入目标服务器IP地址"
echo "Usage: $0 <server_ip>"
echo "Please provide target server IP address"
exit 1
fi
SERVER_LIST=("root@$1")
# 遍历服务器列表
# Iterate through server list
for SERVER in "${SERVER_LIST[@]}"; do
echo "正在将文件复制到服务器:$SERVER 目标路径:$REMOTE_PATH"
echo "Copying file to server: $SERVER target path: $REMOTE_PATH"
scp "$LOCAL_FILE" "${SERVER}:${REMOTE_PATH}"
if [ $? -eq 0 ]; then
echo "成功复制到 $SERVER"
echo "Successfully copied to $SERVER"
else
echo "复制到 $SERVER 失败"
echo "Failed to copy to $SERVER"
fi
done