linux80端口启动访问项目

转载 2016年05月31日 10:24:10
<?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
 -->
<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
  <!-- Security listener. Documentation at /docs/config/listeners.html
  <Listener className="org.apache.catalina.security.SecurityListener" />
  -->
  <!--APR library loader. Documentation at /docs/apr.html -->
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  <Listener className="org.apache.catalina.core.JasperListener" />
  <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

  <!-- Global JNDI resources
       Documentation at /docs/jndi-resources-howto.html
  -->
  <GlobalNamingResources>
    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users
    -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

  <!-- A "Service" is a collection of one or more "Connectors" that share
       a single "Container" Note:  A "Service" is not itself a "Container",
       so you may not define subcomponents such as "Valves" at this level.
       Documentation at /docs/config/service.html
   -->
  <Service name="Catalina">

    <!--The connectors can use a shared executor, you can define one or more named thread pools-->
    <!--
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4"/>
    -->


    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080
    -->
    <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="200000"
               redirectPort="8443" URIEncoding="UTF-8" server="123"/>
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector URIEncoding="UTF-8" executor="tomcatThreadPool"
               port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    -->
    <!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the BIO implementation that requires the JSSE
         style configuration. When using the APR/native implementation, the
         OpenSSL style configuration is required as described in the APR/native
         documentation -->
    <!--
    <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
               maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />


    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host).
         Documentation at /docs/config/engine.html -->

    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
    -->
    <Engine name="Catalina" defaultHost="localhost">

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->

      <!-- Use the LockOutRealm to prevent attempts to guess user passwords
           via a brute-force attack -->
      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <!-- This Realm uses the UserDatabase configured in the global JNDI
             resources under the key "UserDatabase".  Any edits
             that are performed against this UserDatabase are immediately
             available for use by the Realm.  -->
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>

     <Host name="localhost" appBase="/home/nlkf/tomcat-forword-web/apache-tomcat-7.0.64/webapps/forward-flow-web"
            unpackWARs="true" autoDeploy="true">
  <!--<Host name="localhost" appBase="webapps"
            unpackWARs="true" autoDeploy="true">  -->

    <Context path="/" docBase="/home/nlkf/tomcat-forword-web/apache-tomcat-7.0.64/webapps/forward-flow-web" reloadable="true" allowLinking="true"></Context>

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

      </Host>
    </Engine>
  </Service>

</Server>



备注:

tomcat 要更改为80端口, linux启动tomcat必须要80端口

linux 1000以下的端口必须root权限启动,

sudo su root




 

linux打开80端口及80端口占用解决办法

80端口常用于WEB服务器了端口了,下面我来介绍linux防火墙打开80端口方法与在增加端口时碰到问题的解决办法,希望此方法对各位朋友有帮助。 linux打开80端口 ...
  • csdn265
  • csdn265
  • 2017年04月10日 09:41
  • 683

Linux下Tomcat使用80端口映射到8080端口

应用场景 很多情况下,我们在linux服务器上安装了tomcat或者nginx之类的软件.  当我们想用80端口的时候,如果不用root用户启动就会报错.    这是因为,对于linux系统而言,...
  • wangxiaopeng0329
  • wangxiaopeng0329
  • 2015年10月16日 15:20
  • 5729

php本地的端口运行方法,不用路径

我的电脑属性进->高级系统设置->环境变量->在下窗口找到path 尾部添加;E:\phpStudy\Apache;E:\phpStudy\MySQL\bin;E:\phpStudy\php54n保存...
  • qq_27229113
  • qq_27229113
  • 2017年04月13日 17:03
  • 257

nginx配置多端口访问多项目

最近刚开始上班,公司使用nginx服务器。本地开发测试时,一个localhost通过指向不同的端口来指向不同的项目路径。 比如localhost:80指向D:/WWW目录,localhost...
  • misakaqunianxiatian
  • misakaqunianxiatian
  • 2015年12月15日 16:40
  • 4019

tomcat 在eclipse中 启动后无法访问端口8080

大家都知道,Eclipse配置web服务器的时候是通过tomcat目录,然后建立一个虚拟的目录.在Eclipse中总是可以看到一个叫server的文件夹.里面存着一些tomcat服务器的配置信息,而且...
  • cx19910829
  • cx19910829
  • 2016年12月23日 10:59
  • 873

[Tomcat]配置默认访问端口及Tomcat默认访问项目

[Tomcat]配置默认访问端口及Tomcat默认访问项目
  • Konaji
  • Konaji
  • 2017年03月02日 16:17
  • 4166

在Web服务器搭建自己的Jetty服务器,并开启端口进行访问

在项目中,往往要手动设置一个Jetty服务器进行各种参数处理,比如之前在游戏公司,用的就是游戏服内部搭建Jetty服务器,然后方便外部访问. 主要用到这几块. 本身就是Web应用了,还用J...
  • u012055814
  • u012055814
  • 2016年04月15日 17:00
  • 3562

linux(kali)开启ssh端口服务

ssh链接可以远程管理linux设备,默认端口是22,安装好系统默认是不开启的,需要修改配置文件     1.修改/etc/ssh/sshd_config配置文件 1.找到#Passwor...
  • qq_37458055
  • qq_37458055
  • 2017年07月16日 15:39
  • 651

LINUX如何开启22好端口

LINUX如何开启22好端口 2011-05-25 12:22 提问者: 匿名 |浏览次数:8858次 LINUX如何开启22好端口 我来帮他解答 满意回答 2011-05...
  • yuanyuan_186
  • yuanyuan_186
  • 2013年01月14日 21:27
  • 2432

关于win7 64位系统安装apache的 教程 httpd2.4服务无法启动 443端口被占用问题

写出来 权当是给自己以后安装坐下记录  网上安装 记录很繁杂 而且很不全,整理了一下,并且 找到了一些新的方式,解决这个端口被占用的 问题, 首先从官网上下来apache2.2 (http://h...
  • Neo_2016
  • Neo_2016
  • 2016年04月28日 15:39
  • 6142
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:linux80端口启动访问项目
举报原因:
原因补充:

(最多只允许输入30个字)