nginx单个IP的请求频率限制、并发连接限制

全局配置 ### nginx.conf
        limit_req_zone $binary_remote_addr zone=global_req_limit:10m rate=20r/s;         limit_req zone=global_req_limit burst=100 nodelay;
        limit_conn_zone $binary_remote_addr zone=global_conn_limit:10m;         limit_conn global_conn_limit 500;

        limit_conn_zone $binary_remote_addr zone=my_conn_limit:10m;


单个服务配置
看情况限制最大并发数, 比如websock长链接
### xxx.com.conf         
location /faye {             limit_conn my_conn_limit 12;  }


mysql用户权限设置


查看某个人的权限 show grants for ‘zhengwenlong’@’%’;

—————-
移除用户权限
revoke select on *.* from ‘zhengwenlong’@’%’;

用户至少会拥有usage权限,并且无法移出。但其实基本上为0权限,他只可以连接数据库,查看information_schema以及修改密码。
如果用户确认不再使用,可以考虑直接删除用户。
—————-
创建用户 create user ‘zhengwenlong’@’%’ identified by ‘abcd1234888’;

react相关资料

react

React is a JavaScript library for building user interfaces.

官网地址: https://reactjs.org/

GitHub仓库: https://github.com/facebook/react

中文版文档: https://www.reactjscn.com/

react-router

Declarative routing for React

官网地址: https://reacttraining.com/react-router/

GitHub仓库: https://github.com/ReactTraining/react-router

中文版文档: http://react-guide.github.io/react-router-cn/

redux

Predictable state container for JavaScript apps

官网地址: https://redux.js.org/

GitHub仓库: https://github.com/reduxjs/redux

中文版文档: https://www.redux.org.cn/

react-redux

Official React bindings for Redux

官网地址: https://react-redux.js.org/

GitHub仓库: https://github.com/reduxjs/react-redux

create-react-app

Create React apps with no build configuration.

官网地址: https://create-react-app.dev/

GItHub仓库: https://github.com/facebook/create-react-app