We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
配合nonebot-plugin-memes-api插件实现多环境(bot)共用同一个meme-generator,省去重复维护工作
以下是我的环境
whereis systemd
meme-generator, 检查命令:
meme -h
cd /app/mobius/webapps # 以此地址为例,可以自行更改 git clone https://github.com/MeetWq/meme-generator
[server] host = "0.0.0.0" # web server 监听地址 port = 2233 # web server 端口
which meme # ~/.local/bin/meme 为例 ,熟悉linux的朋友此时应该已经知道绝对路径了 cd ~/.local/bin/ pwd # /app/mobius/.local/bin 为下文示例
python -V # 检查版本,旧版本linux不要使用到python2.7去了 which python # /usr/bin/python3 # 为下文示例
[Unit] Description=meme Service After=network.target [Service] User=mobius Group=root Type=simple ExecStart=/usr/bin/python3 -m meme_generator.app WorkingDirectory=/app/mobius/webapps/meme-generator Restart=on-failure [Install] WantedBy=multi-user.target
以下为旧版
ExecStart=/app/mobius/.local/bin/meme start WorkingDirectory=/
vi /usr/lib/systemd/system/meme.service # 将上文内容写入到此文件中,:wq保存 systemctl enable meme.service # 开机启动 systemctl start meme.service # 启动服务 systemctl stop meme.service # 停止服务 tail -100f /var/log/messages|grep meme # 查看日志
cd /app/mobius/webapps/meme-generator # 以此地址为例,应使用clone位置 git pull
systemctl restart meme.service # 重启服务
本issue为个人学习探索的总结记录,如有错误欢迎各位大佬指正
The text was updated successfully, but these errors were encountered:
No branches or pull requests
个人用途
配合nonebot-plugin-memes-api插件实现多环境(bot)共用同一个meme-generator,省去重复维护工作
准备工作
以下是我的环境
meme-generator, 检查命令:操作步骤
确认meme命令绝对路径,以下为旧版更新表情
systemctl restart meme.service # 重启服务
其他
本issue为个人学习探索的总结记录,如有错误欢迎各位大佬指正
The text was updated successfully, but these errors were encountered: