IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Apache Discussion :

qu'est ce que global server pour JkWorkersFile ?


Sujet :

Apache

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé Avatar de POKOU
    Homme Profil pro
    developpeur
    Inscrit en
    Décembre 2008
    Messages
    121
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 63
    Localisation : France, Finistère (Bretagne)

    Informations professionnelles :
    Activité : developpeur

    Informations forums :
    Inscription : Décembre 2008
    Messages : 121
    Par défaut qu'est ce que global server pour JkWorkersFile ?
    Bonjour
    voila je débute

    ma config :
    ubuntu 11.10 32bits type server, php5, mysql, apache2, tomcat6, module JK

    quand je start apache2, qui est couplé avec tomcat, j'ai le message d'erreur :

    /etc/init.d/apache2 start
    * Starting web server apache2
    Syntax error on line 23 of /etc/apache2/mods-enabled/jk.conf:
    JkWorkersFile only allowed once
    Action 'start' failed.
    The Apache error log may have more information.
    voici la ligne 23 de /etc/apache2/mods-enabled/jk.conf

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
        <IfModule jk_module>
        # We need a workers file exactly once
        # and in the global server
        JkWorkersFile /etc/apache2/workers.properties
    
    et voici le fichier /etc/apache2/workers.properties

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
        workers.tomcat_home=/etc/tomcat6
        workers.java_home=$(JAVA_HOME)
        ps=/
        workers.list=worker1
        workers.worker1.port=8009
     
        workers.worker1.host=localhost
     
        workers.worker1.type=ajp13
     
        workers.worker1.lbfactor=50
     
        workers.worker1.cachesize=10
     
        workers.worker1.cache_timeout=600
     
        workers.worker1.socket_keepalive=1
     
        workers.worker1.socket_timeout=300
    voici la liste des processus en cours

    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    root 1 0.0 0.2 3068 1508 ? Ss Apr02 0:02 /sbin/init
    root 2 0.0 0.0 0 0 ? S Apr02 0:00 [kthreadd]
    root 3 0.0 0.0 0 0 ? S Apr02 0:03 [ksoftirqd/0]
    root 4 0.0 0.0 0 0 ? S Apr02 0:00 [kworker/0:0]
    root 5 0.0 0.0 0 0 ? S Apr02 0:00 [kworker/u:0]
    root 6 0.0 0.0 0 0 ? S Apr02 0:00 [migration/0]
    root 40 0.0 0.0 0 0 ? S< Apr02 0:00 [cpuset]
    root 41 0.0 0.0 0 0 ? S< Apr02 0:00 [khelper]
    root 42 0.0 0.0 0 0 ? S Apr02 0:00 [kworker/u:1]
    root 47 0.0 0.0 0 0 ? S< Apr02 0:00 [netns]
    root 50 0.0 0.0 0 0 ? S Apr02 0:00 [xenwatch]
    root 51 0.0 0.0 0 0 ? S Apr02 0:00 [xenbus]
    root 117 0.0 0.0 0 0 ? S Apr02 0:02 [sync_supers]
    root 119 0.0 0.0 0 0 ? S Apr02 0:00 [bdi-default]
    root 121 0.0 0.0 0 0 ? S< Apr02 0:00 [kblockd]
    root 126 0.0 0.0 0 0 ? S Apr02 0:00 [kseriod]
    root 129 0.0 0.0 0 0 ? S Apr02 0:42 [kworker/0:1]
    root 231 0.0 0.0 0 0 ? S Apr02 0:00 [kswapd0]
    root 232 0.0 0.0 0 0 ? SN Apr02 0:00 [ksmd]
    root 233 0.0 0.0 0 0 ? S Apr02 0:00 [fsnotify_mark]
    root 234 0.0 0.0 0 0 ? S< Apr02 0:00 [aio]
    root 235 0.0 0.0 0 0 ? S< Apr02 0:00 [crypto]
    root 278 0.0 0.0 0 0 ? S Apr02 0:00 [khvcd]
    root 330 0.0 0.0 0 0 ? S< Apr02 0:00 [krxrpcd]
    root 336 0.0 0.0 0 0 ? S Apr02 0:08 [jbd2/xvda1-8]
    root 337 0.0 0.0 0 0 ? S< Apr02 0:00 [ext4-dio-unwrit]
    root 365 0.0 0.1 2652 560 ? S Apr02 0:00 upstart-udev-bridge --daemon
    root 622 0.0 0.0 2652 336 ? S Apr02 0:00 upstart-socket-bridge --daemon
    syslog 939 0.0 0.3 28672 1704 ? Sl Apr02 0:03 rsyslogd -c5
    root 1042 0.0 0.1 2432 792 ? Ss Apr02 0:01 cron
    root 1104 0.0 0.0 1972 476 hvc0 Ss+ Apr02 0:00 /sbin/getty -8 38400 hvc0
    root 1109 0.0 0.0 1972 480 ? Ss Apr02 0:00 /sbin/getty -8 38400 tty0
    root 1255 0.0 0.3 6428 1588 ? Ss Apr02 0:04 /usr/sbin/sshd -D
    root 1260 0.0 0.1 2640 948 ? Ss Apr04 0:00 udevd --daemon
    root 1319 0.0 0.1 2180 560 ? Ss Apr02 0:00 /usr/sbin/inetd
    root 1329 0.0 0.0 1972 476 tty1 Ss+ Apr02 0:00 /sbin/getty -8 38400 tty1
    root 2058 0.0 0.0 0 0 ? S Apr03 0:06 [flush-202:1]
    root 5475 0.0 0.6 9764 3108 ? Ss 14:25 0:00 sshd: admin [priv]
    admin 5489 0.0 0.3 9764 1656 ? S 14:25 0:00 sshd: admin@pts/1
    admin 5490 0.0 0.3 3648 1976 pts/1 Ss 14:25 0:00 -bash
    tomcat6 5595 0.4 8.7 265272 45124 ? Sl 14:43 0:01 /usr/lib/jvm/jdk1.6.0_31/bin/java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/loggi
    admin 5692 0.0 0.1 2684 1012 pts/1 R+ 14:49 0:00 ps aux
    mysql 11987 0.0 3.6 137580 18484 ? Ssl Apr03 3:07 /usr/sbin/mysqld
    admin 21115 0.0 2.7 21476 14036 ? S Apr03 0:01 Xvfb :1 -screen 5 1024x768x8

    je ne vois pas ce qui va pas
    si vous avez une petite piste

  2. #2
    Rédacteur
    Avatar de _Mac_
    Profil pro
    Inscrit en
    Août 2005
    Messages
    9 601
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 9 601
    Par défaut
    La méthode la plus radicale c'est de rechercher tous les fichiers Apache qui contiennent le mot JkWorkersFile :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    cd /etc/apache2
    grep -Rl "JkWorkersFile" *
    et tu regardes pourquoi Apache considère que le mot JkWorkersFile apparaît plus d'une fois.

  3. #3
    Membre confirmé Avatar de POKOU
    Homme Profil pro
    developpeur
    Inscrit en
    Décembre 2008
    Messages
    121
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 63
    Localisation : France, Finistère (Bretagne)

    Informations professionnelles :
    Activité : developpeur

    Informations forums :
    Inscription : Décembre 2008
    Messages : 121
    Par défaut
    merci
    donc j'ai retiré la configuration VH de httpd.conf.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Qu'est ce que vous utilisez pour réaliser vos installation
    Par le-roy_a dans le forum Windows Forms
    Réponses: 5
    Dernier message: 06/01/2019, 05h08
  2. Qu'est-ce-que MySQL Server 5.1?
    Par stpaul04 dans le forum Installation
    Réponses: 1
    Dernier message: 27/02/2010, 23h19
  3. Réponses: 12
    Dernier message: 11/02/2009, 14h15
  4. l'applet Jain Sip est ce que ca marche pour vous ?
    Par mirc00 dans le forum Applets
    Réponses: 2
    Dernier message: 17/04/2007, 20h01

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo