在命令行使用mpd时出现以下的:
~ $ mpd
cannot setgid for user "mpd" at line 36: Operation not permitted
在/etc/mpd。conf里面把user "mpd"注释掉好像也没用。
用mpc的时候出现以下的:
~ $ mpc
MPD_HOST and/or MPD_PORT environment variables are not set
error: host "localhost" not found: Name or service not known
在/etc/mpd。conf里面设置的是:
# The address and port to listen on.
39 #
40 bind_to_address "any"
41 port "6600"
42 #
如何解决啊?
~ $ sudo /etc/init.d/mpd start
* Loading ALSA modules ... [ ok ]
* Restoring Mixer Levels ...
* No mixer config in /var/lib/alsa/asound.state, you have to unmute you [ ok ]
* Starting Music Player Daemon ... [ ok ]
然后
~ $ mpc play 12
MPD_HOST and/or MPD_PORT environment variables are not set
error: host "localhost" not found: Name or service not known
还是不行啊。,。
~ # mpc play 2
MPD_HOST and/or MPD_PORT environment variables are not set
error: timeout in attempting to get a response from "localhost" on port 6600