🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
``` #!/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 ```