mirror of
https://github.com/kvazar-network/crawler.git
synced 2025-09-11 06:21:52 +00:00
KVAZAR Crawler
Kevacoin blockchain crawler with full-text index storage in shared Manticore database (based on Sphinx).
Compatible
Install
apt install git composer manticore php-fpm php-curl php-mbstring php-pdo php-bcmath
git clone https://github.com/kvazar-network/crawler.git
cd crawler
composer update
Setup
cp example/config.json config.json
crontab -e
:* * * * * php src/index.php
- drop index:
php src/index.php drop
- optimize index:
php src/index.php optimize
- drop index:
To prevent data lose on server failures, change default binlog flush strategy to binlog_flush = 1
kevacoind
Remote or local kevacoind
connection required as the data source for this crawler.
Requirements
- RAM: 1.5G+
- Disk: 2G+ (Kevacoin blockchain size in 2025)
kevacoin.conf
Before continue with examples, create new system user: useradd -m kevacoin
and copy kevacoind
compiled into its folder.
To accept RPC connections, create kevacoin.conf
:
#/home/kevacoin/.kevacoin/kevacoin.conf
rpcuser=USERNAME
rpcpassword=PASSWORD
- make sure
config.json
correspondsrpcuser
andrpcpassword
values!
systemd
#/etc/systemd/system/kevacoin.service
[Unit]
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=kevacoin
Group=kevacoin
ExecStart=/home/kevacoin/kevacoind -server
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
- applysystemd
changessystemctl enable kevacoin
- enable on system startupsystemctl start kevacoin
- launchkevacoind
Description
Languages
PHP
100%