修改了启动脚本,从欢迎信息由go程序打印

This commit is contained in:
Pan Qiancheng 2025-04-13 17:00:17 +08:00
parent 0d67b1acae
commit 605519fde0
4 changed files with 5 additions and 29 deletions

Binary file not shown.

Binary file not shown.

4
config/config.yaml Normal file
View File

@ -0,0 +1,4 @@
machine_registry:
endpoint: "http://localhost:9900"
log:
level: OFF

View File

@ -1,36 +1,8 @@
#!/bin/bash
# 定义颜色变量
RED='\033[1;31m'
GREEN='\033[1;32m'
YELLOW='\033[1;33m'
BLUE='\033[1;34m'
MAGENTA='\033[1;35m'
CYAN='\033[1;36m'
WHITE='\033[1;37m'
RESET='\033[0m'
clear # 清屏,提升体验
echo -e "${CYAN}=============================================${RESET}"
echo -e "${BLUE} ██████ ████ ████ ████████ ██ ██ ██ ██ ██████ ██ ${RESET}"
echo -e "${BLUE}░█░░░░██ ░██░██ ██░██ ░░░░░░██ ░██░██ ░██░██ ██░░░░██░██ ${RESET}"
echo -e "${BLUE}░█ ░██ ░██░░██ ██ ░██ ██ ░██░██ ░██░██ ██ ░░ ░██ ${RESET}"
echo -e "${BLUE}░██████ ░██ ░░███ ░██ █████ ██ ░██░██ ░██░██░██ ░██ ${RESET}"
echo -e "${BLUE}░█░░░░ ██░██ ░░█ ░██░░░░░ ██ ░██░██ ░██░██░██ ░██ ${RESET}"
echo -e "${BLUE}░█ ░██░██ ░ ░██ ██ ██ ░██░██ ░██░██░░██ ██░██ ${RESET}"
echo -e "${BLUE}░███████ ░██ ░██ ████████░░█████ ░░███████ ░██ ░░██████ ░██ ${RESET}"
echo -e "${BLUE}░░░░░░░ ░░ ░░ ░░░░░░░░ ░░░░░ ░░░░░░░ ░░ ░░░░░░ ░░ ${RESET}"
echo -e "${MAGENTA} bm.zjuici.com${RESET}"
echo -e "${CYAN}=============================================${RESET}"
echo -e "${GREEN}欢迎来到${MAGENTA}北冥智算${RESET}"
echo -e "${YELLOW}您正在使用的GPU厂商为【${RED}沐曦${YELLOW}${RESET}"
echo -e "${CYAN}您可以使用${WHITE} mx-smi ${CYAN}命令查看GPU使用情况。${RESET}"
echo -e "${BLUE}如有问题,请访问北冥论坛: ${WHITE}https://beiming.cloud/forum${RESET}"
echo -e "${GREEN}愿你在这里畅享计算的乐趣!${RESET}"
echo -e "${CYAN}=============================================${RESET}"
/home/qcqcqc/workspace/bash_go_service/main # 启动go程序
HOOK_EXEC_PATH=/tmp/exec_hook/intercept.so
CONFIG_PATH=/tmp/exec_hook/config