2014-04-22 2 views
5

내 laravel 응용 프로그램의 대기열 드라이버로 beanstalkd을 사용하려고합니다. 큐에 뭔가를 푸시하려고 할 때이 오류가 발생합니다.laravel 응용 프로그램에서 beanstalkd 드라이버 구성 오류가 발생했습니다.

Pheanstalk_Exception_ConnectionException 
Socket error 111: Connection refused (connecting to localhost:11300) 

점에서 '를 queue.php'유의하시기 바랍니다 난 그냥 'beanstalkd'에 기본 드라이버를 변경했지만 드라이버 설정을 변경되지 않았습니다. 드라이버 설정은 다음과 같습니다.

'beanstalkd' => array(
      'driver' => 'beanstalkd', 
      'host' => 'localhost', 
      'queue' => 'default', 
     ), 

제발 도와주세요.

답변

0

대답이 올바른지 -이 두 가지나요 -

$ sudo vim /etc/default/beanstalkd 
> START yes  # uncomment 

$ sudo service beanstalkd start 
# Alternatively: /etc/init.d/beanstalkd start 

이 링크에서 알았어요. Beanstalkd가 실행 중이 아니기 때문에 오류가 발생합니다. 그것을 고치려면 beanstalkd를 시작해야합니다. MacOS의 경우이 스크립트 https://gist.github.com/finger-berlin/1942295을 사용하십시오.

  • 다운로드 및 script.sh
  • 로 저장합니다 그것을 실행 : chmod a+x script.sh
  • 실행 ./script.sh start 당신은 내 일을 저장
관련 문제