cont.
16及以上
if ($http_user_agent ~* "googlebot|Mediapartners-Google|bingbot|google-structured-data-testing-tool|baiduspider|360Spider|Sogou Spider|Yahoo! Slurp China|^quot;) {#判断如果是网络爬虫,转发到node服务器下 proxy_pass http://www.test.com:3000; break; }
// 依赖 npm install npm install pm2 -g node node_modules/puppeteer/install.js // 安装无头浏览器,可能会缺依赖,可参见https://www.cnblogs.com/ilizhu/p/14504049.html // 启动服务 pm2 start index.js
config中修改redis地址端口、node服务端口、以及转发host
PupTester
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
SeoServer
node版本
16及以上
ng配置
依赖安装、运行
配置
config中修改redis地址端口、node服务端口、以及转发host