进入服务器内以Root执行以下命令,然后按提示操作即可
root=root; if [ -f $root/smell.sh ]; then rm -f $root/smell.sh; fi; cd $root; wget https://raw.githubusercontent.com/Charles-Hello/Study_Shell/master/smell.sh; bash smell.sh;
首先进入docker容器内执行以下命令,然后按提示操作即可
if [ -d "/jd" ]; then root=/jd; else root=/ql;if [ -f $root/diybot.sh ]; then rm -f $root/diybot.sh; fi; cd $root; wget https://raw.githubusercontent.com/Charles-Hello/Study_Shell/master/diybot.sh; bash diybot.sh; fi
🐶都会
- 重启程序
if [ -d '/jd' ]; then cd /jd/jbot; pm2 start ecosystem.config.js; cd /jd; pm2 restart jbot; else cd /ql/data ; ps -ef | grep 'python3 -m jbot' | grep -v grep | awk '{print $1}' | xargs kill -9 2>/dev/null; nohup python3 -m jbot >/ql/data/log/bot/bot.log 2>&1 & fi
ql repo https://github.com/Charles-Hello/study_shell.git "miao_" "linux" "sh"