- golang struct包含
- php trait
- ruby Mix-in(类包含模块)
机房迁移时,ES一个端口暴露在外网,导致数据被洗劫。
这样的bug,我们也可以搞点小破坏的,🙃
#####总结:
1.不要暴露不必要的服务到外网mysql,es,mongodb等
2.添加访问限制。ip,auth等
#####参考:
http://www.zdnet.com/article/first-came-mass-mongodb-ransacking-now-copycat-ransoms-hit-elasticsearch/
http://code972.com/blog/2017/01/107-dont-be-ransacked-securing-your-elasticsearch-cluster-properly
#####步骤
1. 使用IK默认的分词,对数据处理。
2. 人工审核,纠正。然后热更新,丰富ES词库
3. 循环1.2,可让ES正确处理网络用语
#####测试
#####参考
http://www.cnblogs.com/Hai--D/p/5751403.html
http://www.cnblogs.com/miao-zp/p/6008370.html
https://github.com/medcl/elasticsearch-analysis-ik
https://github.com/medcl/elasticsearch-analysis-ik/issues/256
http://weblee.leanote.com/post/ElasticSearch-ik%E4%B8%AD%E6%96%87%E5%88%86%E8%AF%8D
http://unpython.com/4/
http://mojijs.com/2016/10/220251/index.html
#####功能支持
1.路由直接响应微信事件处理
2.命令行后台操作(支持菜单配置,带参二维码生成)
区分测试,线上环境,默认测试
#####安装:
composer require overtrue/wechat:~3.1 -vvv
#####配置
路由:
Route::any(‘/wechat’, ‘WechatController@serve’);
过滤:(VerifyCsrfToken中间件)
protected $except = [
‘wechat’
];
#####事件处理流程
#####参考:
https://easywechat.org/
https://www.laravist.com/series/peak-into-wechat-development-using-laravel