nginx 详解
摘要:解析 Nginx核心配置文件 nginx.conf 下面配置文件中的几个关键点: (1)进程数与每个进程的最大连接数 ① nginx进程数,建议设置为和服务器cpu核数相等,或者是核数的两倍 ② 单个进程最大连接数,该服务器的最大连接数=连接数*进程数; 服务器支持最大并发数=(连接数*进程数) /
阅读全文
posted @
2018-09-20 16:55
断剑重铸之时
阅读(269)
推荐(0) 编辑
阿里云 消息队列mq
摘要:使用阿里云消息队列 控制台地址:http://ons.console.aliyun.com/#/home/topic Demo: 支付消息mq工厂类:
阅读全文
posted @
2018-09-20 15:41
断剑重铸之时
阅读(1645)
推荐(0) 编辑
redis demo
摘要:方法hset(String key,String field,String value),hmset(String key, Map<String,String> hash),hgetAll() hash结构(key value) 业务场景:当信物无感时间超过一定时间 就再次出现 实现: 用redi
阅读全文
posted @
2018-09-20 14:46
断剑重铸之时
阅读(169)
推荐(0) 编辑
导出CSV格式
摘要:import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.springframework.util.Collect
阅读全文
posted @
2018-09-18 15:53
断剑重铸之时
阅读(250)
推荐(0) 编辑
mongo聚合命令
摘要:db.getCollection('chat').aggregate([ { "$match": { "last": 1, "type": 0 } }, { $project:{giftId:1,text:1,userId:1,createAt:1} }, { $group:{ _id:'$gift
阅读全文
posted @
2018-09-10 11:34
断剑重铸之时
阅读(133)
推荐(0) 编辑
ssh文件 ip锁定
摘要:vi ~/.ssh/config Host web*hostname 115.29.242.1**user lian Host **hostname 192.168.1.**user dface
阅读全文
posted @
2018-09-03 15:12
断剑重铸之时
阅读(244)
推荐(0) 编辑