mirror of
https://gitee.com/lauix/HFish
synced 2025-05-10 11:58:01 +08:00
2.6.0脚本修改
This commit is contained in:
parent
5f8fb9cc81
commit
a4a88de23f
@ -6,7 +6,7 @@ initVar() {
|
|||||||
removeType='yum -y remove'
|
removeType='yum -y remove'
|
||||||
upgrade="yum -y update"
|
upgrade="yum -y update"
|
||||||
echoType='echo -e'
|
echoType='echo -e'
|
||||||
version='2.5.0'
|
version='2.6.0'
|
||||||
}
|
}
|
||||||
initVar
|
initVar
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
@ -49,9 +49,9 @@ menu() {
|
|||||||
echoContent green "HFish官网 https://hfish.io "
|
echoContent green "HFish官网 https://hfish.io "
|
||||||
echoContent red "\n==============================================================\n"
|
echoContent red "\n==============================================================\n"
|
||||||
echoContent skyBlue "-------------------------安装部署-----------------------------\n"
|
echoContent skyBlue "-------------------------安装部署-----------------------------\n"
|
||||||
echoContent yellow "1.安装并运行HFish单机版"
|
echoContent yellow "1.安装并运行HFish"
|
||||||
echoContent yellow "2.安装并运行HFish集群版控制端"
|
# echoContent yellow "2.安装并运行HFish集群版控制端"
|
||||||
echoContent yellow "3.退出安装"
|
echoContent yellow "2.退出安装"
|
||||||
# echoContent yellow "4.用Docker运行HFish控制端"
|
# echoContent yellow "4.用Docker运行HFish控制端"
|
||||||
# echoContent skyBlue "\n-------------------------配置管理-----------------------------\n"
|
# echoContent skyBlue "\n-------------------------配置管理-----------------------------\n"
|
||||||
# echoContent yellow "5.防火墙放通控制端端口(coming soon)"
|
# echoContent yellow "5.防火墙放通控制端端口(coming soon)"
|
||||||
@ -64,13 +64,10 @@ menu() {
|
|||||||
|
|
||||||
read -r -p "请选择:" selectMenuType
|
read -r -p "请选择:" selectMenuType
|
||||||
case ${selectMenuType} in
|
case ${selectMenuType} in
|
||||||
1):
|
1):
|
||||||
standaloneInstall
|
|
||||||
;;
|
|
||||||
2):
|
|
||||||
serverInstall
|
serverInstall
|
||||||
;;
|
;;
|
||||||
3)
|
2)
|
||||||
exitInstall
|
exitInstall
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -80,21 +77,21 @@ menu() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
standaloneInstall(){
|
#standaloneInstall(){
|
||||||
cd /opt
|
# cd /opt
|
||||||
if [ $(uname -s) = 'Linux' ] && [ $(uname -m) = 'x86_64' ] && [ $(getconf LONG_BIT) = '64' ]; then
|
# if [ $(uname -s) = 'Linux' ] && [ $(uname -m) = 'x86_64' ] && [ $(getconf LONG_BIT) = '64' ]; then
|
||||||
wget -N --no-check-certificate http://hfish.cn-bj.ufileos.com/hfish-standalone-${version}-linux-amd64.tar.gz
|
# wget -N --no-check-certificate http://hfish.cn-bj.ufileos.com/hfish-standalone-${version}-linux-amd64.tar.gz
|
||||||
elif [ $(uname -m) = 'aarch64' ] && [ $(getconf LONG_BIT) = '64' ]; then
|
# elif [ $(uname -m) = 'aarch64' ] && [ $(getconf LONG_BIT) = '64' ]; then
|
||||||
wget -N --no-check-certificate http://hfish.cn-bj.ufileos.com/hfish-standalone-${version}-linux-arm64.tar.gz
|
# wget -N --no-check-certificate http://hfish.cn-bj.ufileos.com/hfish-standalone-${version}-linux-arm64.tar.gz
|
||||||
else
|
# else
|
||||||
echoContent red "未检测到系统版本,请参阅 https://hfish.io 官网文档手动安装!\n" && exit 1
|
# echoContent red "未检测到系统版本,请参阅 https://hfish.io 官网文档手动安装!\n" && exit 1
|
||||||
fi
|
# fi
|
||||||
|
#
|
||||||
tar -zxvf /opt/hfish-standalone*.tar.gz
|
# tar -zxvf /opt/hfish-standalone*.tar.gz
|
||||||
cd /opt/hfish && nohup ./server &
|
# cd /opt/hfish && nohup ./server &
|
||||||
sleep 2
|
# sleep 2
|
||||||
cd /opt/hfish/client && nohup ./client &
|
# cd /opt/hfish/client && nohup ./client &
|
||||||
}
|
#}
|
||||||
|
|
||||||
serverInstall() {
|
serverInstall() {
|
||||||
cd /opt
|
cd /opt
|
||||||
|
Loading…
Reference in New Issue
Block a user