admin 发布的文章

RIVET
https://rivet.cloud/
Visit website to get API key

Alchemy
https://alchemyapi.io
Visit website to get API key

Infura
https://infura.io
Visit website to get API key

Moralis
https://moralis.io
Visit website to get API key

Flashbots Protect
https://flashbots.net5
https://rpc.flashbots.net

Cloudflare
https://cloudflare-eth.com

LinkPool
https://linkpool.io

QuickNode
https://quicknode.com

MyEtherWallet
https://myetherwallet.com

Ankr
https://ankr.com

MyCrypto
https://mycrypto.com

ArchiveNode
https://archivenode.io

Chainstack
https://chainstack.com/
Visit website to get API key

Flux
https://runonflux.io/
https://ethereumnodelight.app.runonflux.io

Omnia
https://omniatech.io/
Visit website to get API key

wget https://nodejs.org/dist/v16.16.0/node-v16.16.0-linux-x64.tar.xz


xz -d node-v16.16.0-linux-x64.tar.xz

tar xf node-v16.16.0-linux-x64.tar

mv node-v16.16.0-linux-x64 /usr/local/node-v16.16.0

ln -s /usr/local/node-v16.16.0/bin/node /usr/local/bin/node
ln -s /usr/local/node-v16.16.0/bin/npm /usr/local/bin/npm

vi /etc/profile


export NODEJS=/usr/local/node-v16.16.0
export PATH=$PATH:$NODEJS/bin

source /etc/profile

laravel 任务调度 出现 no scheduled commands are ready to run
在尝试后发现是因为定时任务中添加了withoutOverlapping()这个方法,不能重复执行。而在执行过程中强行中断任务,导致的任务锁没有被释放,导致下次不能正常执行。

最暴力的解决办法是删除 /storage/farmework/chache 文件夹下面的缓存就可以了,如果缓存用的是Redis等,则需要删除其对应的缓存。

npm 的 redis库已经升级了,npm默认的是4版本,我用的默认安装,一直连接不上redis,只好指定安装3版本。
npm install redis@3.1.2

安装依赖

npm install jquery
npm install jsdom

示例

const fs = require('fs');
const { JSDOM } = require('jsdom');
const jquery = require('jquery');

function get(url, callback) {
    try {
        JSDOM.fromURL(url).then(jsenv => {
            const $ = jquery(jsenv.window);
            const id_html = $('#dom_id').html();
            callback(result);
        });
    } catch (e) {
        console.log(e);
    }
}
get('https://www.xxxx.com/xxx')