1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Why cannot mpc work?

Discussion in 'Installation and Maintenance of Ports or Packages' started by sw2wolf, Apr 30, 2012.

  1. sw2wolf

    sw2wolf Member

    Messages:
    245
    Thanks Received:
    1
    The musicpd has started successfully:
    Code:
    >ps -aux | grep music
    sw2wolf  1251   0.0  3.3  64008  16524  ??  Is    8:50上午  0:00.00 musicpd musicpd.conf
    
    >sockstat | grep music
    sw2wolf  musicpd    1251  4  stream /home/sw2wolf/music/.mpd/socket
    


    However, the mpc can never connect to musicpd.
    Code:
    >mpc listall
    error: Connection refused
    >mpc ls
    error: Connection refused
    


    How to fix such a problem? Thanks!

    Adding bind_to_address and port in /usr/local//usr/local/etc/musicpd.conf, it works now!