Loading...
不同企业使用sync.Map全局变量进行记录,协程异步任务定时更新sync.Map数据到redis中package main import ( "fmt" "github.com/labstack/echo" "net/http" "time" //"net/...
package main import ( "fmt" "net/http" "github.com/labstack/echo" "sync" ) var m sync.Map // 判断管道有没有存满 func main() { e := echo...
http{keepalive_timeout 120s 120s;keepalive_requests 10000;}项目配置upstream activity { server 10.68.54.170:8080 max_fails=5 fail_timeout=60s; keepalive 300; #server 172.26.239.52:...
详情见 http://openresty.org/cn/linux-packages.html
使用mysql读写分离前应先配置mysql主从,参见下面文档配置主从wget https://archive.apache.org/dist/shardingsphere/5.0.0/apache-shardingsphere-5.0.0-shardingsphere-proxy-bin.tar.gz tar -zxvf apache-shardingsphere-5.0.0-sha...