2.福气林浇水 [x2]
3.答答星球 [x1]
4.广告合作商扫福卡 [x3]
找到拥有花花卡和敬业福的朋友,将他们其他福全部发走,只剩花花卡或者敬业福。点击我的福卡,点击沾福卡,选择刚才的那为好友,点击复制好友的福卡(只剩下一个花花卡或者敬业福),即可复制好友的花花卡或者敬业福(有一定概率自测75%左右,在没有这种卡的情况下)
1. 用电脑连接你的光猫 确认你可以打开光猫的登录界面
2. 打开网址 http://192.168.1.1/cgi-bin/telnetenable.cgi?telnetenable=1 开启telnet 服务
3. 打开命令行 输入telnet 192.168.1.1 进入 telnet服务 用户名 root 密码 hg2x0
4. 查看这个文件的内容 cat /flash/cfg/agentconf/factory.conf,第一行和第二行 就是用户名和密码了
master.js
var childprocess = require('child_process');
var worker = childprocess.fork('./worker.js');
console.log('pid in master:', process.pid);
//监听事件
worker.on('message', function(msg) {
console.log('1:', msg);
})
process.on('message', function(msg) {
console.log('2:', msg);
})
worker.send('---');
//触发事件 message
process.emit('message', '------');
worker.js
console.log('pid in worker:', process.pid);
process.on('message', function(msg) {
console.log('3:', msg);
});
process.send('===');
proce
使用 Sharded cluster 时,通常是要解决如下2个问题
- 存储容量受单机限制,即磁盘资源遭遇瓶颈。
- 读写能力受单机限制(读能力也可以在复制集里加 secondary 节点来扩展),可能是 CPU、内存或者网卡等资源遭遇瓶颈,导致读写能力无法扩展。
docker run -d -p 40001:40001 --privileged=true -v cnf40001:/data/db --name cnf_c1 mongo:latest --configsvr --port 40001 --dbpath /data/db --replSet crs
docker run -d -p 40002:40002 --privileged=true -v cnf40002:/data/db --name cnf_c2 mongo:latest --configsvr --port 40002 --dbpath /data/db --replSet crs
docker run -d -p 40003:40003 --privil