May 2020
M T W T F S S
« Mar    
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

WordPress Quotes

History is a relentless master. It has no present, only the past rushing into the future. To try to hold fast is to be swept aside.
John F. Kennedy
May 2020
M T W T F S S
« Mar    
 123
45678910
11121314151617
18192021222324
25262728293031

Short Cuts

2012 SERVER (64)
2016 windows (9)
AIX (13)
Amazon (40)
Ansibile (19)
Apache (135)
Asterisk (2)
cassandra (2)
Centos (211)
Centos RHEL 7 (270)
centos8 (3)
chef (3)
cloud (2)
cluster (3)
Coherence (1)
DB2 (5)
DISK (25)
DNS (9)
Docker (30)
Eassy (11)
ELKS (1)
EXCHANGE (3)
Fedora (6)
ftp (5)
GIT (3)
GOD (2)
Grub (1)
Hacking (10)
Hadoop (6)
health (2)
horoscope (23)
Hyper-V (10)
IIS (15)
IPTABLES (15)
JAVA (7)
JBOSS (32)
jenkins (1)
Kubernetes (7)
Ldap (5)
Linux (188)
Linux Commands (166)
Load balancer (5)
mariadb (14)
Mongodb (4)
MQ Server (24)
MYSQL (84)
Nagios (5)
NaturalOil (13)
Nginx (35)
Ngix (1)
openldap (1)
Openstack (6)
Oracle (35)
Perl (3)
Postfix (19)
Postgresql (1)
PowerShell (2)
Python (3)
qmail (36)
Redis (12)
RHCE (28)
SCALEIO (1)
Security on Centos (29)
SFTP (1)
Shell (64)
Solaris (58)
Sql Server 2012 (4)
squid (3)
SSH (10)
SSL (14)
Storage (1)
swap (3)
TIPS on Linux (28)
tomcat (62)
Ubuntu (1)
Uncategorized (30)
Veritas (2)
vfabric (1)
VMware (28)
Weblogic (38)
Websphere (71)
Windows (19)
Windows Software (2)
wordpress (1)
ZIMBRA (17)

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

Who's Online

0 visitors online now
0 guests, 0 bots, 0 members

Hit Counter provided by dental implants orange county

Install tomcat and Apache centos 7

yum install gcc-c++

yum install openssl-devel.x86_64

cd /usr/local/src

wget http://mirror.nus.edu.sg/apache//httpd/httpd-2.4.18.tar.gz
wget http://ftp.ps.pl/pub/apache//apr/apr-1.5.2.tar.gz
wget http://ftp.ps.pl/pub/apache//apr/apr-util-1.5.4.tar.gz

tar xvfz apr-1.5.1.tar.gz

tar xvfz apr-util-1.5.3.tar.gz

tar xvfz httpd-2.4.18.tar.gz

tar xvf pcre-8.35.tar.bz2

cd /usr/local/src/apr-1.5.1

./configure –prefix=/usr/local/apr

make

make install

cd /usr/local/src/apr-util-1.5.3

./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr

make

make install

cd /usr/local/src/pcre-8.35

./configure –prefix=/usr/local

make

make install

cd /usr/local/src/httpd-2.4.18

./configure  –prefix=/usr/local/apache \

–enable-rule=SHARED_CORE  \

–enable-so  \

–enable-rewrite  \

–enable-vhost-alias  \

–enable-ssl  \

–enable-proxy  \

–enable-shared=max  \

–enable-modules=shared  \

–enable-mods-shared=all  \

–with-apr=/usr/local/apr  \

–with-charset=utf-8  \

–with-mpm=prefork \

–with-apr-util=/usr/local/apr-util

make

make install

wget http://apache.mirror.cdnetworks.com/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.40-src.tar.gz -O connector.tar.gz

tar -zxvf connector.tar.gz

cd tomcat-connectors-1.2.40-src/native/

./configure –with-apxs=/usr/local/apache/bin/apxs

make && make install

cd /usr/local/apache/conf/

vi workers.properties

worker.list=pem

worker.pem.port=8009

worker.pem.host=localhost

worker.pem.type=ajp13

vi /usr/local/apache2/conf/httpd.conf

#LoadModule slotmem_shm_module modules/mod_slotmem_shm.so

LoadModule slotmem_shm_module modules/mod_slotmem_shm.so

LoadModule jk_module modules/mod_jk.so

<IfModule jk_module>

JkWorkersFile conf/workers.properties

JkLogFile logs/mod_jk.log

JkLogLevel error

</IfModule>

#Include conf/extra/httpd-vhosts.conf

Include conf/extra/httpd-vhosts.conf

#Listen 9090

vi /usr/local/apache/conf/extra/httpd-vhosts.conf

Listen 9090

<VirtualHost *:9090>

ServerAdmin rmohan@rmohan.com

DocumentRoot /data/test/webapp

ServerName www.rmohan.com

ErrorLog “logs/dummy-host.example.com-error_log”

CustomLog “logs/dummy-host.example.com-access_log” common

JkMount  /*.jsp          pem

JkMount  /*.phyjax      pem

JkMount  /*.phy        pem

JkMount  /*.phyin        pem

JkMount /               pem

JkMount /j_spring_security_logout pem

JkMount /j_spring_security_check pem

<Directory “/home/test/webapp”>

Options Indexes FollowSymLinks

AllowOverride None

Order allow,deny

Allow from all

Require all granted

</Directory>

</VirtualHost>

chown apache:apache -R /usr/local/apache

cd /usr/local/apache/bin

chmod +s httpd

vi /usr/lib/systemd/system/apache.service

[Unit]

Description=apache2 Service
After=syslog.target
After=network.target

[Service]

Type=forking

ExecStart=/usr/local/apache/bin/apachectl start

ExecStop=/usr/loacal/apache/bin/apachectl graceful-stop

ExecReload=/usr/local/apache/bin/apachectl graceful

PrivateTmp=true

LimitNOFILE=infinity

[Install]
WantedBy=multi-user.target

systemctl enable apache

 

 

 
Centos 7  tomcat  ( systemclt )

# vi /usr/lib/systemd/system/tomcat.service

tomcat.service

[Unit]
Description=Tomcat7 Service
After=syslog.target
After=network.target

[Service]
Type=forking
ExecStart=/usr/tomcat/bin/catalina.sh start
ExecStop=/usr/tomcat/bin/catalina.sh stop

[Install]
WantedBy=multi-user.target

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

Blue Captcha Image
Refresh

*

Protected by WP Anti Spam