小编bei*_*ta2的帖子

systemd/init 绑定到端口

我在 Beaglebone Green 上启动 GPSD 时遇到问题。我收到套接字绑定错误:

root@BBG1:/etc/init# gpsd -D3 -n -N /dev/ttyUSB0
gpsd:INFO: launching (Version 3.16)
gpsd:ERROR: can't bind to IPv4 port gpsd, Address already in use
gpsd:ERROR: maybe gpsd is already running!
gpsd:ERROR: can't bind to IPv6 port gpsd, Address already in use
gpsd:ERROR: maybe gpsd is already running!
gpsd:INFO: command sockets creation failed, netlib errors -1, -1
Run Code Online (Sandbox Code Playgroud)

看起来这个问题在这些迷你开发板(包括 Raspberry Pi)上很常见,但似乎对大多数人来说解决问题的方法对我不起作用。据我所知,这是因为systemd/init正在击败 gspd。

root@BBG1:/etc/init# netstat -lnpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address …
Run Code Online (Sandbox Code Playgroud)

gps bind systemd

2
推荐指数
1
解决办法
9855
查看次数

标签 统计

bind ×1

gps ×1

systemd ×1