一个Twitter盒子
JDK
>= 7 、 Git
、MongoDB
、FFMpeg
反向代理自己的域名到本地端口,然后在启动时输入。
Nginx 模板 : ntt.conf Bot 函数表 : functions.txt
git clone https://github.com/HiedaNaKan/NTTools /usr/local/ntt
cd /usr/local/ntt
bash rebuild.sh && bash start.sh
注 : 每次都会自动更新编译启动
注 : 使用service 必须将项目clone在 /usr/local/ntt 或者请手动修改ntt.service
另 : 必须手动启动 start.sh 并配置之后才可以使用service启动
/bin/cp -rf /usr/local/ntt/ntt.service /etc/systemd/system/ntt.service # 创建服务
systemctl daemon-reload # 重载服务
systemctl start ntt # 启动服务
systemctl enable ntt # 开机启动
journalctl -u ntt -f # 实时日志
service ntt restart && journalctl -u ntt -f # 更新并立即滚动日志