preload preload preload preload

Compiler le connecteur Tomcat mod_jk sous RedHat/CentOS


Le vendredi 15 avril 2011 par madpellzo Tomcat, RedHat / CentOS 19 commentaires

Le module JK permet la communication entre Apache et Tomcat. A l'instar de Debian/ubuntu, ceconnecteur ne figure pas dans les repositories de packages des distriution RedHat/CentOS

1) Télécharger les sources ici : http://tomcat.apache.org/download-connectors.cgi

2) Installer les package suivants :  gcc, gcc-c++ et httpd -devel

# yum install gcc gcc-c++ httpd-devel

3) Désarchiver les source

# tar zxvf /var/tmp/tomcat-connectors-1.2.31-src.tar.gz

4) Compilation

# cd /var/tmp/tomcat-connectors-1.2.31-src/native
# ./configure --with-apxs=/usr/sbin/apxs
# make

5) Installation

Suivant la version d'Apache:

# cp apache-<version>/mod_jk.so /etc/httpd/modules/

6) Configuration

Editer /etc/httpd/conf/httpd.conf et ajouter ceci:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkShmFile     /var/log/httpd/mod_jk.shm
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

Créer le fichier workers.properties (exemple):

# vi /etc/httpd/conf/workers.properties

worker.list=tomcat

worker.tomcat.type=ajp13
worker.tomcat.host=localhost
worker.tomcat.port=8009
worker.tomcat.socket_keepalive=1
worker.tomcat.cachesize=20

Puis dans le VirtualHost correspondant à votre application:

JkMount /votreappli/* tomcat

Redémarrer Apache:

# service httpd restart

Mots clés : tomcat, mod_jk

  • Commentaires

  • Avatar Gravatar
     Https://Www.Sewabus.Org/
     #1 Le 27 février 2018

    Hey very nice blog!

  • Avatar Gravatar
     Backlink Pbn
     #2 Le 05 avril 2018

    Thanks for sharing your info. I really appreciate your efforts and I will
    be waiting for your next post thanks once again.

  • Avatar Gravatar
     Bernd
     #3 Le 08 avril 2018

    Thanks for sһaring your thoughts. I realⅼy
    appreciate your efforts ɑnd I am waiting for your further post tһank you once again.

  • Avatar Gravatar
     Daftar Judi Poker Online
     #4 Le 09 avril 2018

    I’m not that much of a internet reader to be honest but your sites
    really nice, keep it up! I'll go ahead and bookmark your website to come
    back down the road. Cheers

  • Avatar Gravatar
     live skor bola
     #5 Le 23 mai 2018

    Ι wаnt to to thank you for this greаt read!! І absoⅼutely enjoyed еvery bit of it.

    I have got you book-markeԁ to check out new stuff
    үou post…

  • Avatar Gravatar
     Bandar judi Online terpercaya
     #6 Le 08 juin 2018

    Highly descriptive post, I enjoyed that bit.
    Will there be a part 2?

  • Avatar Gravatar
     Domino qq
     #7 Le 29 juin 2018

    Thanks in support of sharing such a fastidious opinion,
    article is nice, thats why i have read it entirely

  • Avatar Gravatar
     AGUNGQQ
     #8 Le 29 juin 2018

    Riight hee is the riught site for anyone
    who wants to understand this topic. You understand so much its almost
    hard to argue with you (not that I personally would want to…HaHa).

    You definitely putt a fresh spin on a topic that has bbeen written about
    for ages. Wonderful stuff, just excellent!

  • Avatar Gravatar
     BandarQ
     #9 Le 01 juillet 2018

    Very good blog you have here but I was curious
    if you knew of any user discussion forums that cover the same topics talked about iin this article?

    I'd really love to be a part of online community where I can get feedback from other experienced people that share the
    same interest. If you have any recommendations, please let
    mme know. Kudos!

  • Avatar Gravatar
     Agen Bola SBOBET
     #10 Le 02 juillet 2018

    I think the admin of this web page is really
    working hard for his web page, for the reason that here
    every material is quality based material.

  • Avatar Gravatar
     castelletto.info
     #11 Le 03 juillet 2018

    Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.

    You obvioujsly know what youre talking about, why waste your
    intelligence on just posting videos to your blog when you cokuld be giving us something enlightening to read?

  • Avatar Gravatar
     Bandar Poker
     #12 Le 26 juillet 2018

    I do not even know how I finished up right here, however I thought this put up used to be
    good. I don't know who you might be but certainly you're going
    to a well-known blogger in the event you aren't already.
    Cheers!

  • Avatar Gravatar
     dominoqq
     #13 Le 27 juillet 2018

    This information is priceless. When can I find out more?

  • Avatar Gravatar
     Poker Online
     #14 Le 29 juillet 2018

    Heya i am for the first time here. I found this board and I find It really
    helpful & it helped me out a lot. I'm hoping to offer one thing back
    and aid others such as you helped me.

  • Avatar Gravatar
     hasil Togel Singapore
     #15 Le 29 juillet 2018

    Good day very cool web site!! Man .. Beautiful .. Superb ..

    I'll bookmark your web site and take the feeds also? I am
    happy to search out so many helpful information right here in the publish, we need develop
    more techniques on this regard, thank you for sharing.
    . . . . .

  • Avatar Gravatar
     poker Online
     #16 Le 29 juillet 2018

    Thanks for a marvelous posting! I certainly enjoyed reading it, you will
    be a great author.I will make sure to bookmark your blog and will
    come back from now on. I want to encourage
    that you continue your great writing, have a nice weekend!

  • Avatar Gravatar
     qq Online
     #17 Le 02 août 2018

    Today, I went to the beach front with my children. I found a sea shell
    and gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She put the shell to her ear and screamed.
    There was a hermit crab inside and it pinched her ear. She never wants to
    go back! LoL I know this is totally off topic but I had to tell someone!

  • Avatar Gravatar
     Situs domino
     #18 Le 05 août 2018

    ԝebsite Ꮲoker Online Domino QQ dan Sakong — MakmurQQ
    kalau andа tambah mencarі seleksi web judi рoker terbаik оnline terpercaya, maka sаlah
    satu opsі rekomendasi paling Ьaik yցg dapat kamu pilih yaitu website poker online.

    Inii yaitu salah satu website paⅼing baik yang sangguр memuѕakakan sebagian playernya permainan yg seru dan menyenangkan. tidak hɑnya itu bersama main-main dіsana,
    ada kenyamanan yg dapat anda temukan sebab
    banyаk fitur mengunggut yg sedia disana. lebiһlebih bersumber segi bayaran serta ada tidak sedikit sekali sumur penghasilan yg daрat didapatkɑn buкаn hanya mulai sejak kegemilɑngan namun sertа permulɑan upaһ yang
    diberikan.

    satu buah situs sanggup dikatakan terbaik
    dan terpегcaya bilа memang mempunyai banyak keistimewaan dan surplus
    dgn kata lain sanggup dukatаҝan bahwa satu buah weƄ duta bisa dikataқan sbg
    salaһ satu yang palіng baik apabila ada beberapa faktor yg menghɑsilkan tidak sedikit bettor mewariskan sematan itu.
    title paⅼing baik dan terpercaүa itu benar-benar harus ⅾibuktikɑn bеrsaama bukti nyata yg selama іni sudah tidak ѕedikit
    didapɑtkan dan diraѕakan oleh banyak bеttor.



    kebijaksanaan website Poker dan Domino Ⅿakmur365
    kamu harus tahu bɑhwa ada Ƅanyak ѕeҝali keistimewaan dan maslahat yg mampu didapatkan apabilɑ anda memvonis berasimilasi bersama ѡeb domino.
    Apa saja elemen yang bermanfaat dan sangɡup anda dapatkan itu?
    kira kira banyak yang belum mengetahuinya dan oleh sebab itu disini bakal
    diulaѕ beberapa kelebihan yang mampu kɑmu dapatkan disana, diantaranya aԁaⅼaһ:

    1. Game kartu yang Lengkap — ada tidak sedikit permainan yg ditawarkan disana dіantaranya merupakan poker
    online, domino qq, bandarq, bandar ⲣoker, aduq, bandar66,
    capsa susun, sakong dan yang lain sebab game-nya lumayan kumplit maka kemudian kamu
    mampu bermain kapan ѕaja pas dengan apa yg kamu inginkan.

    2. Deposit kurang gampang dan cepɑt — dari segi deposit, anda pula
    sanggup memperoleh Ьanyak kegunaan dan kebaikan dibanding dgn yang
    lainnyɑ real anda cuma perlu butuh 25 ribu saja pada sanggup main di situs delegasi termuat tanpa harus keluarkan aset
    besar tіdak cuma itu prosesnya tengah mampu sangat langsung dan mudah dengan transfer melaⅼui iBanking saja.


    3. upah caѕhback dan ցaji besar — kemudian kepada anda yg terpesona kepаdɑ рembeeгian web peгutusan ini lumaүan lսmayan alamat segi սpah anda bakal mendapati balasan cashback turnovesr amat akbar yaitu 0,5%.
    malagan buat obat lelah anda bakal sanggup dapatкan komрensasi referɑl yang memang besarаnnya cukuр
    gedxe ialah кamu akan mampu dapatkan 20% yg kemudian sahih segolongan hidup.



    Apa yang disebutkan ddi atas benar-benar mampu amat sangat
    bagus dan menjanjikan ѕekali sebenarnya jadi bersama begitu tidazk
    ada salahnya kalau кamu memang dapɑt memperoleh seⅼuruhnya faedah yg dimaksud terselip silаkan kamu pahami ɗengan baik bagaimanaқah kmu dapat meraih semua manfaat bermula Makmur365 termᥙat
    gabung lalu saϳa, dan baca keѕepakatan dan syaгatnya disana

  • Avatar Gravatar
     Capsa Susun
     #19 Le 06 août 2018

    What's up i am kavin, its my first occasion to commenting anyplace,
    when i read this article i thought i could also
    make comment due to this brilliant article.

  • Ecrire un commentaire








    Quelle est la première lettre du mot ntnsxt ?