V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ghbai  ›  全部回复第 1 页 / 共 2 页
回复总数  23
1  2  
2021-08-31 18:14:40 +08:00
回复了 niub 创建的主题 知乎 如果不考虑现实,你最想学习什么技术?
AI 编程、手机摄影
为啥不用 Ping++?
2018-09-12 09:08:07 +08:00
回复了 Godaigo 创建的主题 程序员 如何看待 code review 中同事给出的建议全部都是注释上的
是 code review 而不是 comment review
大部分 bug 就是注释(想要做的)和代码(实际做的)不一致导致的啊
2018-03-21 18:02:44 +08:00
回复了 xiaochengxu 创建的主题 问与答 考车牌,科目一用一个星期用功,能考过吗?
一天足够,99 分
2018-02-06 22:23:06 +08:00
回复了 XinLake 创建的主题 程序员 听说浏览器不好用,给你们看看 Chrome
PC chrome
移动端 夸克
2017-12-23 19:16:00 +08:00
回复了 amoia50 创建的主题 求职 被一家企业坑惨了,嫩嫩的应届生来求职
地点:无锡东站,职位:服务端开发,感兴趣的话发简历到 [email protected]
2017-07-25 09:33:38 +08:00
回复了 Technetiumer 创建的主题 程序员 安卓上什么浏览器干净好用无广告?
夸克、海外版的 UC、海外版的猎豹
2017-06-07 12:32:10 +08:00
回复了 lucky215 创建的主题 Go 编程语言 大家正式写 golang 之前都是写什么语言的?
c++
去内推网找人内推吧,你这基础还可以,但是简历确实不太好。
2017-03-31 18:36:27 +08:00
回复了 ijiami 创建的主题 推广 程序员,你亮了!(有福利,手慢无)
试试运气。。。
2017-03-31 14:27:22 +08:00
回复了 cod 创建的主题 程序员 Rust 和 go 哪个更有前途?
rust 语言 github 上 star 大于 10 的项目数:2139 ( https://github.com/search?l=rust&o=desc&q=stars%3A%3E10&s=updated&type=Repositories
go 语言 github 上 star 大于 10 的项目数:12318 ( https://github.com/search?l=go&o=desc&q=stars%3A%3E10&s=updated&type=Repositories)
2017-03-21 12:44:15 +08:00
回复了 weiweiwitch 创建的主题 Go 编程语言 go 的 channel 的一个疑问
@weiweiwitch 对,是不能保证有序的。
2017-03-21 08:38:42 +08:00
回复了 weiweiwitch 创建的主题 Go 编程语言 go 的 channel 的一个疑问
gocrawl(开源爬虫类库)的一种方案
https://github.com/PuerkitoBio/gocrawl/blob/master/popchannel.go

```
type popChannel chan []*URLContext
// The stack function ensures the specified URLs are added to the pop channel
// with minimal blocking (since the channel is stacked, it is virtually equivalent
// to an infinitely buffered channel).
func (pc popChannel) stack(cmd ...*URLContext) {
toStack := cmd
for {
select {
case pc <- toStack:
return
case old := <-pc:
// Content of the channel got emptied and is now in old, so append whatever
// is in toStack to it, so that it can either be inserted in the channel,
// or appended to some other content that got through in the meantime.
toStack = append(old, toStack...)
}
}
}
```
2016-11-04 17:17:48 +08:00
回复了 depress 创建的主题 微信 突然在想一个问题,微信当初是怎么推广的?
对微信早期印象是摇一摇、约炮,但是后来身边人越来越多都在用就开始用了。
错误提示是 FATAL: --data-path=/usr/local/bin/nsq in use (possibly by another instance of nsqd)
你要为这两个实例指定不同的 data_path 参数,不是监听端口的问题
我 QQ 号 951644384,加 QQ 聊吧,我帮你看下。
再加上一个 nsqlookupd 也是可以的,没有关系。
我自己试了下是可以的哇
nsqd 的两个配置文件分别为
/*nsqd.4150.cfg*/
id = 1
tcp_address = "0.0.0.0:4150"
http_address = "0.0.0.0:4151"
data_path = "./data1"
nsqlookupd_tcp_addresses = [
"127.0.0.1:4160"
]

/*nsqd.4250.cfg*/
id = 2
tcp_address = "0.0.0.0:4250"
http_address = "0.0.0.0:4251"
data_path = "./data2"
nsqlookupd_tcp_addresses = [
"127.0.0.1:4160"
]
你看下启动失败的错误提示然后找原因就可以了啊。
ps:单台机器部署 cluster 是没有意义的。
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1975 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 42ms · UTC 01:23 · PVG 09:23 · LAX 18:23 · JFK 21:23
Developed with CodeLauncher
♥ Do have faith in what you're doing.