我使用 ubuntu 12.10 作为我的 MPI(消息传递接口)配置 我在安装后安装了 mpd 我已经启动 mpd,它正常启动,没有错误消息显示,但是当我尝试运行命令“mpd &”时,它给出我的错误消息“无法绑定到'127.0.0.1:6600':地址已在使用中”我尝试了很多解决方案,但结果是相同的。
root@ub0:~# service mpd start
Starting Music Player Daemon mpd
[ OK ] root@ub0:~# service mpd restart
Stopping Music Player Daemon mpd
[ OK ] Starting Music Player Daemon mpd
[ OK ] root@ub0:~# mpd &
[1] 2881 root@ub0:~# Failed to bind to '127.0.0.1:6600': Address already in use
[1]+ Exit 1 mpd
答案1
您收到错误是因为它已经在运行:
[ OK ] Starting Music Player Daemon mpd
您不需要手动启动它(通过执行mpd &
),您的 init 系统会处理这个问题。