문제

Wegoverman + Net_Gearman + GearManManager Windows 시스템 (2003 서버)에 설치하려고합니다.

현재 Java 버전의 Java 버전 (Java-Gearman 서비스), 설치 배 및 Net_Gearman 패키지를 올바르게 실행했습니다.

  • php.ini에 기어맨 라이브러리를 추가해야합니까?어떻게?
  • GearManmanager를 net_gearman에 "연결"하는 방법은 무엇입니까?ISE_GEARMAN (C : \ PHP \ PEAR \ NET \ GEARMAN)은 NET_GEARMAN (C : \ PHP \ PEAR \ Net \ Gearman)입니다.
  • 모든 것이 잘 작동하는지 어떻게 작동합니까?

    고마워, 나는 정말로 그걸로 잃어 버렸고 창문으로 일하는 것이 큰 핸디캡 : (

도움이 되었습니까?

해결책

GearmanManager won't work on Windows - so there's not much you can do there. It uses the pcntl extension in PHP, which is not available for Windows.

You do not need to add PHP_Gearman to the ini file, as it's a PEAR library. As long as it's installed as a regular PEAR package (in the directory configured in your php.ini by default), you're good to go. Otherwise you'll have to add the directory containing Net/ to your include_path.

You can test that everything is working fine by submitting a task to a gearman server by running your client from the CLI, and then seeing if your worker process gets any work to do. I don't know anything about the java-gearman-service, but the regular C-daemon can be put into a "more verbose" mode by adding -vvvv to the command line (I forget the number of v-s: more v's equals more verbose.

I know that this is an old question, but if anyone stumbles across this through the intarwebs..

다른 팁

I don't know too much about the PHP version, NET_Gearman, but I'm betting you'll get a faster response at the google group (http://groups.google.com/group/gearman). Given that it is a pure PHP implementation, I'm assuming it'll work under windows.

damn windows...

PS. I'm glad to see people are using the java-gearman-service :).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top