+ -
当前位置:首页 → 问答吧 → mpc Failed to resolve host name

mpc Failed to resolve host name

时间:2010-04-26

来源:互联网

我发现只要有线连接一断开,mpc就和mpd断开连接了,没法控制mpd播放了,
在终端运行提示
error:Failed to resolve host name
请问这该怎么解决

下面是mpd.conf

music_directory "~/music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"
pid_file "~/.mpd/mpd.pid"
state_file "~/.mpd/mpdstate"
user "ziyuan"
input {
plugin "curl"
# proxy "proxy.isp.com:8080"
# proxy_user "user"
# proxy_password "password"
}
audio_output {
type "alsa"
name "My ALSA Device"
## device "hw:0,0" # optional
## format "44100:16:2" # optional
## mixer_device "default" # optional
mixer_control "PCM" # optional
## mixer_index "0" # optional
}

作者: ulosggs   发布时间: 2010-04-26

...
user "ziyuan"
port "6600"
input {
...

作者: sightok   发布时间: 2010-04-29

引用:
作者: sightok
...
user "ziyuan"
port "6600"
input {
...
加上了这行,还是这样啊

作者: ulosggs   发布时间: 2010-04-29

...
user "ziyuan"
bind_to_address "localhost"
port "6600"
input {
...

/etc下有个示例文件mpd.conf.example,好好看一下

作者: Havanna   发布时间: 2010-04-30