Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
8e410b8a
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
Star
22018
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看板
提交
8e410b8a
编写于
7月 28, 2020
作者:
H
Hui Li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-1017]
上级
bfceaf20
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
49 addition
and
4 deletion
+49
-4
packaging/tools/install.sh
packaging/tools/install.sh
+49
-4
未找到文件。
packaging/tools/install.sh
浏览文件 @
8e410b8a
...
...
@@ -99,6 +99,44 @@ else
os_type
=
1
fi
# ============================= get input parameters =================================================
# install.sh -v [server | client] -e [yes | no] -i [systemd | service | ...]
# set parameters by default value
interactiveFqdn
=
yes
# [yes | no]
verType
=
server
# [server | client]
initType
=
systemd
# [systemd | service | ...]
while
getopts
"hv:e:i:"
arg
do
case
$arg
in
e
)
#echo "interactiveFqdn=$OPTARG"
interactiveFqdn
=
$(
echo
$OPTARG
)
;;
v
)
#echo "verType=$OPTARG"
verType
=
$(
echo
$OPTARG
)
;;
i
)
#echo "initType=$OPTARG"
initType
=
$(
echo
$OPTARG
)
;;
h
)
echo
"Usage:
`
basename
$0
`
-v [server | client] -e [yes | no]"
exit
0
;;
?
)
#unknow option
echo
"unkonw argument"
exit
1
;;
esac
done
echo
"verType=
${
verType
}
interactiveFqdn=
${
interactiveFqdn
}
"
function
kill_taosd
()
{
pid
=
$(
ps
-ef
|
grep
"taosd"
|
grep
-v
"grep"
|
awk
'{print $2}'
)
if
[
-n
"
$pid
"
]
;
then
...
...
@@ -191,6 +229,10 @@ function install_config() {
if
((
${
update_flag
}
==
1
))
;
then
return
0
fi
if
[
"
$interactiveFqdn
"
==
"no"
]
;
then
return
0
fi
#FQDN_FORMAT="(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"
#FQDN_FORMAT="(:[1-6][0-9][0-9][0-9][0-9]$)"
...
...
@@ -653,8 +695,8 @@ function install_TDengine() {
echo
-e
"
${
GREEN_DARK
}
To access TDengine
${
NC
}
: use
${
GREEN_UNDERLINE
}
taos
${
NC
}
in shell OR from
${
GREEN_UNDERLINE
}
http://127.0.0.1:
${
nginx_port
}${
NC
}
"
else
echo
-e
"
${
GREEN_DARK
}
To access TDengine
${
NC
}
: use
${
GREEN_UNDERLINE
}
taos
${
NC
}
in shell
${
NC
}
"
fi
else
fi
else
echo
-e
"
${
GREEN_DARK
}
To access TDengine
${
NC
}
: use
${
GREEN_UNDERLINE
}
taos
${
NC
}
in shell
${
NC
}
"
fi
...
...
@@ -673,7 +715,7 @@ function install_TDengine() {
## ==============================Main program starts from here============================
if
[
-z
$1
]
;
then
if
[
"
$verType
"
==
"server"
]
;
then
# Install server and client
if
[
-x
${
bin_dir
}
/taosd
]
;
then
update_flag
=
1
...
...
@@ -681,7 +723,8 @@ if [ -z $1 ]; then
else
install_TDengine
fi
else
elif
[
"
$verType
"
==
"client"
]
;
then
interactiveFqdn
=
no
# Only install client
if
[
-x
${
bin_dir
}
/taos
]
;
then
update_flag
=
1
...
...
@@ -689,4 +732,6 @@ else
else
install_TDengine client
fi
else
echo
"please input correct verType"
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录