node-schedule


https://senecajs.org/getting-started/


consul
一个提供服务发现，健康检测，K/V 存储，支持分布式高可用多数据中心

To start hashicorp/tap/consul now and restart at login:
  brew services start hashicorp/tap/consul
Or, if you don't want/need a background service you can just run:
  /usr/local/opt/consul/bin/consul agent -dev -bind 127.0.0.1
==> Summary
🍺  /usr/local/Cellar/consul/1.17.1: 5 files, 165.4MB, built in 6 seconds
==> Running `brew cleanup consul`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).


faibo
简单配置能够让 consul 部署的应用快速支持 http 的负载均衡路由

在 Node.js 中，您可以使用 http-proxy 软件包简单地代理对特定服务的请求，也可以使用更多丰富功能的 express-gateway 来创建 API 网关。

查找端口
netstat -aon|findstr "3002"
结束端口
taskkill -pid 20300 -f

consul agent -server -ui -bind 192.168.31.8 -client 0.0.0.0 -bootstrap-expect=1

consul agent -dev -ui

consul 中文文档：
https://kingfree.gitbook.io/consul/getting-started/ui


apiEndpoints 上接收 API 请求，然后将它们代理到下游微服务 serviceEndpoints 指定的 URL

osascript -e 'tell application "Terminal" to do script "npm -v"'