企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
``` #!/usr/bin/env bash # nvm 设置 export NVM_DIR="/www/server/nvm" # shellcheck disable=SC1090 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm # shellcheck disable=SC1090 [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion # fcitx 输入法设置 export XMODIFIERS=@im=fcitx export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx # xfce4 设置 # shellcheck disable=SC2155 export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0 /usr/bin/xfsettingsd --sm-client-disable >/dev/null 2>&1 # 启动 supervisor if [ -f "/var/run/supervisor.sock" ]; then /www/server/panel/pyenv/bin/supervisorctl reload >/dev/null 2>&1 else /www/server/panel/pyenv/bin/supervisord >/dev/null 2>&1 fi echo -e "\033[32m Supervisor Start Successful!" # 启动宝塔 bt restart ```