echo-e"${GREEN_DARK}To access TDengine ${NC}: use ${GREEN_UNDERLINE}taos -h $serverFqdn${NC} in shell OR from ${GREEN_UNDERLINE}http://127.0.0.1:${nginx_port}${NC}"
echo-e"${GREEN_DARK}To access ${productName}${NC}: use ${GREEN_UNDERLINE}${clientName} -h $serverFqdn${NC} in shell OR from ${GREEN_UNDERLINE}http://127.0.0.1:${nginx_port}${NC}"
else
else
echo-e"${GREEN_DARK}To access TDengine ${NC}: use ${GREEN_UNDERLINE}taos -h $serverFqdn${NC} in shell${NC}"
echo-e"${GREEN_DARK}To access ${productName}${NC}: use ${GREEN_UNDERLINE}${clientName} -h $serverFqdn${NC} in shell${NC}"
fi
fi
if((${prompt_force}== 1));then
if((${prompt_force}== 1));then
echo""
echo""
echo-e"${RED}Please run 'taosd --force-keep-file' at first time for the exist TDengine$exist_version!${NC}"
echo-e"${RED}Please run '${serverName} --force-keep-file' at first time for the exist ${productName}$exist_version!${NC}"
fi
fi
echo
echo
echo-e"\033[44;32;1mTDengine is updated successfully!${NC}"
echo-e"\033[44;32;1m${productName} is updated successfully!${NC}"
else
else
install_bin
install_bin
install_config
install_config
echo
echo
echo-e"\033[44;32;1mTDengine client is updated successfully!${NC}"
echo-e"\033[44;32;1m${productName} client is updated successfully!${NC}"
fi
fi
rm-rf$(tar-tftaos.tar.gz)
rm-rf$(tar-tf${tarName})
}
}
function install_TDengine(){
function install_TDengine(){
# Start to install
# Start to install
if[!-etaos.tar.gz];then
if[!-e${tarName}];then
echo"File taos.tar.gz does not exist"
echo"File ${tarName} does not exist"
exit 1
exit 1
fi
fi
tar-zxftaos.tar.gz
tar-zxf${tarName}
echo-e"${GREEN}Start to install TDengine...${NC}"
echo-e"${GREEN}Start to install ${productName}...${NC}"
install_main_path
install_main_path
...
@@ -898,10 +899,10 @@ function install_TDengine() {
...
@@ -898,10 +899,10 @@ function install_TDengine() {
# Check if nginx is installed successfully
# Check if nginx is installed successfully
if type curl &>/dev/null;then
if type curl &>/dev/null;then
if curl -sSf http://127.0.0.1:${nginx_port} &>/dev/null;then
if curl -sSf http://127.0.0.1:${nginx_port} &>/dev/null;then
echo-e"\033[44;32;1mNginx for TDengine is installed successfully!${NC}"
echo-e"\033[44;32;1mNginx for ${productName} is installed successfully!${NC}"
openresty_work=true
openresty_work=true
else
else
echo-e"\033[44;31;5mNginx for TDengine does not work! Please try again!\033[0m"
echo-e"\033[44;31;5mNginx for ${productName} does not work! Please try again!\033[0m"
fi
fi
fi
fi
fi
fi
...
@@ -910,15 +911,15 @@ function install_TDengine() {
...
@@ -910,15 +911,15 @@ function install_TDengine() {