Compare commits

...
3 Commits
Author SHA1 Message Date
Mr Chen 2fe17aefd9 Merge pull request #899 from midoks/dev
常规更新
2026-06-01 19:10:03 +08:00
dami acddca54cd update 2026-06-01 19:06:13 +08:00
dami 7d80fb31ce Update install.sh 2026-06-01 18:52:36 +08:00
8 changed files with 26 additions and 8 deletions
+19 -8
View File
@@ -25,14 +25,25 @@ sysName=$(uname | tr '[:upper:]' '[:lower:]')
ARCH=amd64 ARCH=amd64
get_arch() { get_arch() {
echo "package main # 使用 bash 来识别架构
import ( local arch=$(uname -m)
\"fmt\" case $arch in
\"runtime\" x86_64|amd64)
) ARCH=amd64
func main() { fmt.Println(runtime.GOARCH) }" > /tmp/go_arch.go ;;
aarch64|arm64)
ARCH=$(go run /tmp/go_arch.go) ARCH=arm64
;;
armv7l|armv7)
ARCH=armv7
;;
i686|i386)
ARCH=386
;;
*)
ARCH=amd64
;;
esac
echo "ARCH:${ARCH}" echo "ARCH:${ARCH}"
} }
+1
View File
@@ -23,6 +23,7 @@ yum install -y sshpass
yum install -y libzstd-devel yum install -y libzstd-devel
yum install -y postgresql-devel yum install -y postgresql-devel
yum install -y brotli-devel yum install -y brotli-devel
yum install -y vim-common
SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'` SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'`
if [ "$SSH_PORT" == "" ];then if [ "$SSH_PORT" == "" ];then
+1
View File
@@ -30,6 +30,7 @@ yum install -y numactl
yum install -y sshpass yum install -y sshpass
yum install -y libzstd-devel yum install -y libzstd-devel
yum install -y brotli-devel yum install -y brotli-devel
yum install -y vim-common
SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'` SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'`
if [ "$SSH_PORT" == "" ];then if [ "$SSH_PORT" == "" ];then
+1
View File
@@ -41,6 +41,7 @@ yum install -y sshpass
yum install -y libzstd-devel yum install -y libzstd-devel
yum install -y postgresql-devel yum install -y postgresql-devel
yum install -y brotli-devel yum install -y brotli-devel
yum install -y vim-common
# if [ -f /usr/sbin/iptables ];then # if [ -f /usr/sbin/iptables ];then
+1
View File
@@ -41,6 +41,7 @@ yum install -y sshpass
yum install -y libzstd-devel yum install -y libzstd-devel
yum install -y postgresql-devel yum install -y postgresql-devel
yum install -y brotli-devel yum install -y brotli-devel
yum install -y vim-common
# if [ -f /usr/sbin/iptables ];then # if [ -f /usr/sbin/iptables ];then
+1
View File
@@ -21,6 +21,7 @@ yum install -y sshpass
yum install -y libzstd-devel yum install -y libzstd-devel
yum install -y postgresql-devel yum install -y postgresql-devel
yum install -y brotli-devel yum install -y brotli-devel
yum install -y vim-common
dnf install crontabs -y dnf install crontabs -y
SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'` SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'`
+1
View File
@@ -47,6 +47,7 @@ $PKGMGR install -y sshpass
$PKGMGR install -y libzstd-devel $PKGMGR install -y libzstd-devel
$PKGMGR install -y postgresql-devel $PKGMGR install -y postgresql-devel
$PKGMGR install -y brotli-devel $PKGMGR install -y brotli-devel
$PKGMGR install -y vim-common
echo "install remi source" echo "install remi source"
if [ "$VERSION_ID" == "9" ];then if [ "$VERSION_ID" == "9" ];then
+1
View File
@@ -31,6 +31,7 @@ yum install -y sshpass
yum install -y libzstd-devel yum install -y libzstd-devel
yum install -y postgresql-devel yum install -y postgresql-devel
yum install -y brotli-devel yum install -y brotli-devel
yum install -y vim-common
if [ -f /usr/sbin/iptables ];then if [ -f /usr/sbin/iptables ];then