-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the BeetleRunBackEnd wiki!
You can find the docker-compose file of koishi and napcat at those pages.
The blog at:How to use koishi build a qq robot.
http://:6099
token:1266b8fbe9ed
path at :/home/beetlerun/napcat
powered by docker-compose
cd /home/beetlerun/napcat
docker-compose up -dcd /home/beetlerun/napcat
docker-compose restartcd /home/beetlerun/napcat
update_app.shI do write a crontab work to auto update this service at every 3 A.M. which means you can not except this guys until the service crashed.
docker logs napcathttp://:5140
path at :/home/beetlerun/koishi
powered by docker-compose
start/restart as the same as napcat.
At first, you need the id of container. You can get the id with docker ps | grep koishi.
The output just like:
49104d5a515d koishijs/koishi:latest "/entrypoint.sh yarn…" 2 hours ago Up 2 hours 0.0.0.0:5140->5140/tcp, [::]:5140->5140/tcp koishi
The first row is the id of koishi container. You just need the front of the id, like 49104. And then catch the log by:
docker logs 49104What's more, this service without updating.
http://:8000
path at :/home/beetlerun/BeetleRunBackEnd
powered by python
systemctl start beetleRunBk.servicesystemctl restart beetleRunBk.servicejournalctl -u beetleRunBk.service | lessYou can input G to move to the end of the file, input gg to the front of the file. And use j go down, use k move up, use Ctrl-F down page, use Ctrl-B up page.
There is a proxy for this compute by zhywyt. If this proxy is useless one day, you need config a new proxy for this two things:
- system proxy : without systemc proxy, you can not update apt package.
- docker proxy : without docker proxy, you can not update napcat docker iamge.
Config this guy at the file:~/.bashrc, you can find the row like those:
m_proxy="http://<ip>:<port>"
exprot http_proxy=$m_proxy
exprot https_proxy=$m_proxy
exprot ftp_proxy=$m_proxy
exprot no_proxy="localhost"You need to change the value of m_proxy. After changed this file, you should update you config by run code:source ~/.bashrc.
I create a script to fast change the proxy of docker which site at /home/beetlerun/docker_proxy.sh. You can use it like:
Warnning! This command will restart all of your docker service. Be carful!
bash docker_proxy.sh http://<ip>:<port>Tips: you can find the docker_proxy.sh file at page
docker proxy.