@
ghbai 端口被占用,但是两个实例启动配置文件是配的不同的端口, ip 都是 0.0.0.0,难道两个端口不能在一个 IP 上启动?
启动另一个就提示端口被占用,感觉配置文件的参数没有生效
目前只是测试用,不是为了生产
nsqd 配置部分代码如下,两个实在分别配置的 4150 、 4151 和 4250 、 4251
## enable verbose logging
verbose = false
## unique identifier (int) for this worker (will default to a hash of hostname)
id = 4150
## <addr>:<port> to listen on for TCP clients
tcp_address = "0.0.0.0:4150"
## <addr>:<port> to listen on for HTTP clients
http_address = "0.0.0.0:4151"
## <addr>:<port> to listen on for HTTPS clients
# https_address = "0.0.0.0:4152"
## address that will be registered with lookupd (defaults to the OS hostname)
# broadcast_address = ""
## cluster of nsqlookupd TCP addresses
nsqlookupd_tcp_addresses = [
"127.0.0.1:4160"
"127.0.0.1:4260"
]
...