简体   繁体   中英

how to use httpd user to run tomcat6 on redhat6?

  1. on redhat6 I installed httpd2.2 & tomcat6.
  2. the httpd's user is "apache".
  3. the tomcat6's user is "tomcat".
  4. now I want use "apache" run both httpd & tomcat.
  5. how to config tomcat ?

Why I ask this: 1. now I have a legacy system, php on front and java on background. 2. the system have a config import function. 3. when I upload config file on php UI, the php will great a tmp file in /tmp/ * 4. but the java can not read the tmp file, because the tomcat user is "tomcat" and the httpd user is "apache".

so I want to run tomcat as "apache"

You need to install mod_jk to connect Apache and Tomcat.

You can download mod_jk from here . You have to choose appropriate version.

Explanation and install guide is shown here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM