Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
46c1fb94
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
46c1fb94
编写于
5月 24, 2022
作者:
wafwerar
提交者:
GitHub
5月 24, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #12911 from taosdata/fix/ZhiqiangWang/TD-15533-fix-package-client-error
fix(os): fix package client error
上级
65ba238e
a3c15992
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
40 addition
and
27 deletion
+40
-27
packaging/tools/install_client.sh
packaging/tools/install_client.sh
+40
-27
未找到文件。
packaging/tools/install_client.sh
浏览文件 @
46c1fb94
...
...
@@ -17,6 +17,7 @@ serverName="taosd"
clientName
=
"taos"
uninstallScript
=
"rmtaos"
configFile
=
"taos.cfg"
tarName
=
"taos.tar.gz"
osType
=
Linux
pagMode
=
full
...
...
@@ -242,6 +243,11 @@ function install_examples() {
function
update_TDengine
()
{
# Start to update
if
[
!
-e
${
tarName
}
]
;
then
echo
"File
${
tarName
}
does not exist"
exit
1
fi
tar
-zxf
${
tarName
}
echo
-e
"
${
GREEN
}
Start to update
${
productName
}
client...
${
NC
}
"
# Stop the client shell if running
if
pidof
${
clientName
}
&> /dev/null
;
then
...
...
@@ -264,42 +270,49 @@ function update_TDengine() {
echo
echo
-e
"
\0
33[44;32;1m
${
productName
}
client is updated successfully!
${
NC
}
"
rm
-rf
$(
tar
-tf
${
tarName
}
)
}
function
install_TDengine
()
{
# Start to install
echo
-e
"
${
GREEN
}
Start to install
${
productName
}
client...
${
NC
}
"
install_main_path
install_log
install_header
install_lib
install_jemalloc
if
[
"
$verMode
"
==
"cluster"
]
;
then
install_connector
fi
install_examples
install_bin
install_config
# Start to install
if
[
!
-e
${
tarName
}
]
;
then
echo
"File
${
tarName
}
does not exist"
exit
1
fi
tar
-zxf
${
tarName
}
echo
-e
"
${
GREEN
}
Start to install
${
productName
}
client...
${
NC
}
"
echo
echo
-e
"
\0
33[44;32;1m
${
productName
}
client is installed successfully!
${
NC
}
"
install_main_path
install_log
install_header
install_lib
install_jemalloc
if
[
"
$verMode
"
==
"cluster"
]
;
then
install_connector
fi
install_examples
install_bin
install_config
echo
echo
-e
"
\0
33[44;32;1m
${
productName
}
client is installed successfully!
${
NC
}
"
rm
-rf
$(
tar
-tf
${
tarName
}
)
rm
-rf
$(
tar
-tf
${
tarName
}
)
}
## ==============================Main program starts from here============================
# Install or updata client and client
# if server is already install, don't install client
if
[
-e
${
bin_dir
}
/
${
serverName
}
]
;
then
echo
-e
"
\0
33[44;32;1mThere are already installed
${
productName
}
server, so don't need install client!
${
NC
}
"
exit
0
fi
if
[
-e
${
bin_dir
}
/
${
serverName
}
]
;
then
echo
-e
"
\0
33[44;32;1mThere are already installed
${
productName
}
server, so don't need install client!
${
NC
}
"
exit
0
fi
if
[
-x
${
bin_dir
}
/
${
clientName
}
]
;
then
update_flag
=
1
update_TDengine
else
install_TDengine
fi
if
[
-x
${
bin_dir
}
/
${
clientName
}
]
;
then
update_flag
=
1
update_TDengine
else
install_TDengine
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录