markdown zeronet auto make seed

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown zeronet auto make seed相关的知识,希望对你有一定的参考价值。

Become a Seeder:
If you have a spare node (like a Raspberry PI with external HDD), you can setup a ZeroNet node here, which can automatically download and seen each new site published here.

Script to download new sites:


```#!/bin/sh

ZERO_DIR=~/ZeroNet-master
ZERO_HOST=127.0.0.1
APP_ID=1LtvsjbtQ2tY7SCtCZzC4KhErqEK3bXD4n

NEW_SITES=`sqlite3 $ZERO_DIR/data/$APP_ID/data/zerosites.db "select address from sites order by added desc limit 5;"`
for SITE in $NEW_SITES; do
    echo Check site $SITE
    curl --silent http://$ZERO_HOST:43110/$SITE > /dev/null
done
```

Cron setup:

```*/5 * * * * /home/zeronode/autoseed.sh```

以上是关于markdown zeronet auto make seed的主要内容,如果未能解决你的问题,请参考以下文章

markdown Git Auto Deplay

markdown Lambda Auto-Deployer

markdown 配置代理auto-config服务器

markdown 将Windows服务设置为delayed-auto,并在失败时重新启动

markdown auto-prepend-jira-id-to-git-commit-msg.md

mak iso