; 1Panel → 创建守护进程(不要只拷 .conf,要用面板创建或保存为同目录 .ini) [program:WeChatGateway] ; 若是 bun 编译出的单文件用下面这行;若是 bun run start 则改成 /root/.bun/bin/bun run start command = /data/WeChatBot/weixin-ilink-gateway/server directory = /data/WeChatBot/weixin-ilink-gateway environment = TZ="Asia/Shanghai",PATH="/root/.bun/bin:/usr/local/bin:/usr/bin:/bin" autorestart = true startsecs = 3 stdout_logfile = /opt/1panel/tools/supervisord/log/WeChatGateway.out.log stderr_logfile = /opt/1panel/tools/supervisord/log/WeChatGateway.err.log stdout_logfile_maxbytes = 2MB stderr_logfile_maxbytes = 2MB user = root priority = 998 numprocs = 1 process_name = %(program_name)s_%(process_num)02d stopasgroup = true killasgroup = true