Rabu, 24 April 2019

How to install apache tomcat on Redhat PPC 7.3

  Tidak ada komentar
Change directory to opt and extract the installer file
[root@myhost ~]# cd /opt/
[root@myhost opt]# ls
apache-tomcat-7.0.86.tar.gz  rh
[root@myhost opt]#
[root@myhost opt]# tar -xzf apache-tomcat-7.0.86.tar.gz
[root@myhost opt]#
[root@myhost opt]# ls
apache-tomcat-7.0.86  apache-tomcat-7.0.86.tar.gz  rh
[root@myhost opt]#
Change directory to apache tomcat
[root@myhost opt]# cd apache-tomcat-7.0.86/
[root@myhost apache-tomcat-7.0.86]#
[root@myhost apache-tomcat-7.0.86]# ls
bin  conf  lib  LICENSE  logs  NOTICE  RELEASE-NOTES  RUNNING.txt  temp  webapps  work
[root@myhost apache-tomcat-7.0.86]#
[root@myhost apache-tomcat-7.0.86]# cd bin/
[root@myhost bin]# ls
bootstrap.jar       commons-daemon.jar            daemon.sh         setclasspath.sh  startup.sh            tool-wrapper.sh
catalina.bat        commons-daemon-native.tar.gz  digest.bat        shutdown.bat     tomcat-juli.jar       version.bat
catalina.sh         configtest.bat                digest.sh         shutdown.sh      tomcat-native.tar.gz  version.sh
catalina-tasks.xml  configtest.sh                 setclasspath.bat  startup.bat      tool-wrapper.bat
[root@myhost bin]#

Check the selinux status
[root@myhost bin]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28
[root@myhost bin]#


Disable the selinux
[root@myhost bin]# setenforce 0
[root@myhost bin]#
[root@myhost bin]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   permissive
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28
[root@myhost bin]#



Start the tomcat
[root@myhost bin]# ./startup.sh
Using CATALINA_BASE:   /opt/apache-tomcat-7.0.86
Using CATALINA_HOME:   /opt/apache-tomcat-7.0.86
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.86/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /opt/apache-tomcat-7.0.86/bin/bootstrap.jar:/opt/apache-tomcat-7.0.86/bin/tomcat-juli.jar
Tomcat started.
[root@myhost bin]#
[root@myhost bin]# netstat -ant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN
tcp        0      0 192.168.72.61:22        192.168.72.234:30930    ESTABLISHED
tcp        0     64 192.168.72.61:22        192.168.72.234:31762    ESTABLISHED
tcp        0      0 192.168.72.61:22        192.168.72.234:50764    ESTABLISHED
tcp        0      0 192.168.72.61:22        192.168.72.234:55573    ESTABLISHED
tcp        0      0 192.168.72.61:22        192.168.72.234:57338    ESTABLISHED
tcp        0      0 192.168.72.61:22        192.168.72.234:51059    ESTABLISHED
tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN
tcp6       0      0 :::8009                 :::*                    LISTEN
tcp6       0      0 :::111                  :::*                    LISTEN
tcp6       0      0 :::8080                 :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6       0      0 ::1:631                 :::*                    LISTEN
tcp6       0      0 ::1:25                  :::*                    LISTEN
tcp6       0      0 :::44127                :::*                    LISTEN
[root@myhost bin]#



Curl the port
[root@myhost bin]# curl localhost:8080

<!DOCTYPE html>


<html lang="en">
    <head>
        <title>Apache Tomcat/7.0.86</title>
        <link href="favicon.ico" rel="icon" type="image/x-icon" />
        <link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <link href="tomcat.css" rel="stylesheet" type="text/css" />
    </head>

    <body>
        <div id="wrapper">
            <div id="navigation" class="curved container">
                <span id="nav-home"><a href="http://tomcat.apache.org/">Home</a></span>
                <span id="nav-hosts"><a href="/docs/">Documentation</a></span>
                <span id="nav-config"><a href="/docs/config/">Configuration</a></span>
                <span id="nav-examples"><a href="/examples/">Examples</a></span>
                <span id="nav-wiki"><a href="http://wiki.apache.org/tomcat/FrontPage">Wiki</a></span>
                <span id="nav-lists"><a href="http://tomcat.apache.org/lists.html">Mailing Lists</a></span>
                <span id="nav-help"><a href="http://tomcat.apache.org/findhelp.html">Find Help</a></span>
                <br class="separator" />
            </div>
            <div id="asf-box">


Tidak ada komentar :

Posting Komentar