LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 887|回复: 3

mpc Failed to resolve host name

[复制链接]
发表于 2010-4-26 12:16:59 | 显示全部楼层 |阅读模式
我发现只要有线连接一断开,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        "CM"                # optional
##        mixer_index        "0"                # optional
}
发表于 2010-4-29 14:14:41 | 显示全部楼层

set port

...
user "ziyuan"
port                "6600"
input {
...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-4-29 15:58:00 | 显示全部楼层
Post by sightok;2086519
...
user "ziyuan"
port                "6600"
input {
...


加上了这行,还是这样啊
回复 支持 反对

使用道具 举报

发表于 2010-4-30 08:11:20 | 显示全部楼层
...
user "ziyuan"
bind_to_address "localhost"
port         "6600"
input {
...

/etc下有个示例文件mpd.conf.example,好好看一下
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表