Author Archives: Heath Chyi

docker asf挂卡/命令/farm/command

install docker

install docker
install docker-compose

安装asf

ASF Github

创建asf配置文件目录,config文件写到该目录, 在线生成config

IPC

配置文件asf/IPC.config

{
  "Kestrel": {
    "Endpoints": {
      "HTTP": {
        "Url": "http://*:1242"
      }
    }
  }
}

nginx代理IPC

https://github.com/JustArchiNET/ArchiSteamFarm/wiki/IPC#can-i-use-asfs-ipc-behind-a-reverse-proxy-such-as-apache-or-nginx

运行docker

docker pull justarchi/archisteamfarm
docker run -it -p 1242:1242 -v /path_2_local_asf_folder/asf:/app/config justarchi/archisteamfarm -d

asf command

https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Commands

手机令牌二次验证

ASF.json中允许headless命令

input chyi TwoFactorAuthentication xxxxx

mqtt &

mqtt是一种基于订阅/发布(subscribe/publish)的机制运行的应用层协议

mqtt文档

mqtt中文翻译

docker-compose安装rabbitmq

Official github download docker-compose.yml

version: "3.2"
services:
  rabbitmq:
    image: rabbitmq:3.9.5-management
    container_name: 'rabbitmq'
    ports:
        - 5672:5672
        - 15672:15672
    volumes:
        - ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
        - ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
    networks:
        - rabbitmq_net

networks:
  rabbitmq_net:
    driver: bridge

启用插件

rabbitmq-plugins enable rabbitmq_management

ls

rabbitmq-plugins list

##相关文档 协议介绍

Linux进程守护

crontab

service

edit /etc/systemd/system/x.service

[Unit]
Description=ServerStatus.chyi.org
After=network.service

[Service]
Type=simple
ExecStart=/usr/bin/python2.7 /root/Git/serverstatus/client-linux.py
Restart=on-failure

[Install]
WantedBy=multi-user.target

start and enable

systemctl start x
systemctl enable x

reload to update

systemctl daemon-reload
systemctl start x
systemctl status x
systemctl restart x
systemctl stop x

supervisor

install

apt-get install supervisor
pip3 install supervisor
yum install supervisor

WordPress备忘录

 

主题

精简主题,Arke

 

图床

sm.ms、imgur、upload.cc

mac下上传工具:uPic

 

图片插件

尝试过国内对象存储,设置到最后发现最早用的域名备案到期了,图床怕跑路&暂时不想自建图床

图片压缩插件,https://wordpress.org/plugins/tiny-compress-images/

对比&使用教程:

https://themeforwp.net/archives/best-image-compression-plugin/

https://themeforwp.net/archives/compress-jpeg-png-images/