免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5527 | 回复: 12
打印 上一主题 下一主题

[90%原创]Linux不完全攻略 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-01-15 15:43 |只看该作者 |倒序浏览
[90%原创]Linux不完全攻略

安装Linux
版本:2004-08-28-01
http://bbs.chinaunix.net/forum/4/20040618/349971.html

[VMware]“借鸡生蛋”之拟实况录象
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=41000&highlight=

基本调校
版本:2004-08-28-01
http://bbs.chinaunix.net/forum/4/20040618/349972.html

更多了解
版本:2004-08-28-01
http://bbs.chinaunix.net/forum/4/20040618/350690.html

安装软件
版本:2004-08-28-01
http://bbs.chinaunix.net/forum/4/20040623/353041.html

实战准备
版本:2004-08-28-01
http://bbs.chinaunix.net/forum/4/20040623/353566.html

数据库服务器
版本:2004-08-27-01->;>;>;
http://bbs.chinaunix.net/forum/4/20040827/395753.html

J2SDK
版本:2004-08-20-01->;>;>;
http://bbs.chinaunix.net/forum/4/20040820/391365.html

Web服务器
JSP服务器
正规的JSP服务器
数据库服务器
http://bbs.chinaunix.net/forum/4/20040628/355853.html
  1. 安装了FreeWRL。独立运行成功,和Konqueror集成也OK了。
  2. 下回FreeWRL,编译、安装后,我发现“/usr/lib/mozilla-1.3/plugins”目录里多出以下3个文件:“libnullplugin.so”、“npfreewrl.so”和“vrml.jar”。也许你没有“/usr/lib/mozilla-1.3/plugins”这个目录,但是后来我发现,在FreeWRL的编译目录下也生成了着3个文件。
  3. Konqueror看起来是基于Netscape的,用的是Netscape插件。我把它们复制到一个Netscape插件目录里,然后让Konqueror重新扫描插件。
  4. 关掉Konqueror,再启动Konqueror,嘿嘿,好了。
复制代码

东西收集到这里后,每次看到重复的问题就不必花大力气重新写回复,直接复制粘贴即可,大大提高效率。

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2003-01-15 15:46 |只看该作者

[90%原创]Linux不完全攻略

干什么呀,为什么发这么多呀,一下子N篇~~~~~~~

论坛徽章:
0
3 [报告]
发表于 2003-01-15 15:47 |只看该作者

[90%原创]Linux不完全攻略

版本:2004-09-10-02

大家都很忙,能抽出时间来都不容易,但是有些问题说起来也有点长,谁有空谁帮忙吧。

我不清楚怎样使用Tomcat的连接池。不知道哪位能给个例子,或做个详细指导。

因为有些改动可能关联性很强,我说说的测试站点布署状况。在Linux下画图还是有点困难,请在看这篇文章的时候试着把所说的目录结构图画出来,这样也许更容易看懂。如果你有空,就仔细点吧。

Apache-httpd-2.0.49,负责主要的http处理,所有JSP、Severlet的东西通过“mod_jk2.so”从8009端口发给Jakata-tomcat-4.1.30处理。

Jakata-tomcat-4.1.30,安装目录为“/opt/prog/m/Jakata-tomcat-4.1.30”,链接为“/opt/prog/m/Tomcat”。

“/opt/prog/m/Tomcat”下的目录有:
  1. [typhoon@TFW-RFL40 Tomcat]$ ls -l
  2. total 128
  3. drwxr-xr-x    2 root     root         4096  9月  9 00:35 bin
  4. drwxr-xr-x    5 root     root         4096  1月 25  2004 common
  5. drwxr-xr-x    3 root     root         4096  9月  9 19:06 conf
  6. drwxr-xr-x    2 root     root         4096  9月  9 00:49 conf.install
  7. -rw-r--r--    1 root     root         4569  1月 25  2004 LICENSE
  8. drwxr-xr-x    2 root     root         4096  9月  9 18:30 logs
  9. -rw-r--r--    1 root     root         3150  1月 25  2004 README.txt
  10. -rw-r--r--    1 root     root        49207  1月 25  2004 RELEASE-NOTES-4.1.txt
  11. -rw-r--r--    1 root     root         5149  1月 25  2004 RELEASE-PLAN-4.1.txt
  12. -rw-r--r--    1 root     root         6701  1月 25  2004 RUNNING.txt
  13. drwxr-xr-x    5 root     root         4096  1月 25  2004 server
  14. drwxr-xr-x    4 root     root         4096  1月 25  2004 shared
  15. drwxr-xr-x    2 root     root         4096  9月  9 00:50 temp
  16. drwxr-xr-x    6 root     root         4096  9月  9 00:35 webapps
  17. drwxr-xr-x    3 root     root         4096  9月  9 00:38 work
复制代码
其中,“conf.install”里是刚安装好时的配置文件的备份,“conf”里
现在是正用着的配置文件。

默认状况下,存放Web应用的根目录是“/opt/prog/m/Tomcat/webapps”,但是我不愿意把网站的内容放在软件的安装目录里;我也发现“/opt/prog/m/Webapps/examples”里有太多的例子,这里面做开发实在不方便,想另外有几个针对不同项目的目录。所以我通过修改“/opt/prog/m/Tomcat/conf/server.xml”重新指定了存放Web应用的根目录“/opt/prog/m/Webapps”。“server.xml”相关修改部分:
  1. ......
  2. <!--TFW: Model
  3.       <Host name="localhost" debug="0" appBase="webapps"
  4.        unpackWARs="true" autoDeploy="true">;
  5. -->;
  6. <!--TFW: Really use-->;
  7.       <Host name="localhost" debug="0" appBase="/opt/prog/m/Webapps"
  8.        unpackWARs="true" autoDeploy="true">;
  9. ......
  10. <!--TFW: Model
  11.         <Context path="/examples" docBase="examples" debug="0"
  12.                  reloadable="true" crossContext="true">;
  13. -->;
  14. <!--TFW: Really use-->;
  15.         <Context path="/" docBase="/opt/prog/m/Webapps" debug="0"
  16.                  reloadable="true" crossContext="true">;
  17. <!--TFW: Really use END-->;
  18. ......
复制代码
其中注释掉的部分是原文,没注释的是现在使用的项。为了测试方便,我把装例子的目录“examples”也复制到“/opt/prog/m/Webapps”里,访问“localhost:8080/examples”的时候却失败了。几经周折,我发现,把“/opt/prog/m/Tomcat/conf/web.xml”移出来,替代“/opt/prog/m/Webapps/examples/WEB-INF/web.xml”,再访问都成功了。我又在“/opt/prog/m/Webapps”下为另外几个测试项目分别创建了目录,JSP和bean等东西布署进去后,访问也都成功了。通过Apache访问也没有问题。

PostgreSQL-7.3.4通过JDBC供Tomcat访问。目前供测试的数据库为“test_d_1”,这个数据库内部允许用户“test_u_1”全权访问,用户口令为“test_p_1”。

非常感谢你能看到这里,希望你对我的测试站点结构有点了解,解决问题可能需要知道这个。不清楚的地方请用QQ联系“自由狼-台风”,或者发邮件到typhoon_wolf@sina.com。

论坛徽章:
0
4 [报告]
发表于 2003-01-15 15:48 |只看该作者

[90%原创]Linux不完全攻略

附“/opt/prog/m/Tomcat/conf/server.xml”:
  1. <!-- Example Server Configuration File -->;
  2. <!-- Note that component elements are nested corresponding to their
  3.      parent-child relationships with each other -->;
  4. <!-- A "Server" is a singleton element that represents the entire JVM,
  5.      which may contain one or more "Service" instances.  The Server
  6.      listens for a shutdown command on the indicated port.
  7.      Note:  A "Server" is not itself a "Container", so you may not
  8.      define subcomponents such as "Valves" or "Loggers" at this level.
  9. -->;
  10. <Server port="8005" shutdown="SHUTDOWN" debug="0">;
  11.   <!-- Comment these entries out to disable JMX MBeans support -->;
  12.   <!-- You may also configure custom components (e.g. Valves/Realms) by
  13.        including your own mbean-descriptor file(s), and setting the
  14.        "descriptors" attribute to point to a '';'' seperated list of paths
  15.        (in the ClassLoader sense) of files to add to the default list.
  16.        e.g. descriptors="/com/myfirm/mypackage/mbean-descriptor.xml"
  17.   -->;
  18.   <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
  19.             debug="0"/>;
  20.   <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
  21.             debug="0"/>;
  22.   <!-- Global JNDI resources -->;
  23.   <GlobalNamingResources>;
  24.     <!-- Test entry for demonstration purposes -->;
  25.     <Environment name="simpleValue" type="java.lang.Integer" value="30"/>;
  26.     <!-- Editable user database that can also be used by
  27.          UserDatabaseRealm to authenticate users -->;
  28.     <Resource name="UserDatabase" auth="Container"
  29.               type="org.apache.catalina.UserDatabase"
  30.        description="User database that can be updated and saved">;
  31.     </Resource>;
  32.     <ResourceParams name="UserDatabase">;
  33.       <parameter>;
  34.         <name>;factory</name>;
  35.         <value>;org.apache.catalina.users.MemoryUserDatabaseFactory</value>;
  36.       </parameter>;
  37.       <parameter>;
  38.         <name>;pathname</name>;
  39.         <value>;conf/tomcat-users.xml</value>;
  40.       </parameter>;
  41.     </ResourceParams>;
  42.   </GlobalNamingResources>;
  43.   <!-- A "Service" is a collection of one or more "Connectors" that share
  44.        a single "Container" (and therefore the web applications visible
  45.        within that Container).  Normally, that Container is an "Engine",
  46.        but this is not required.
  47.        Note:  A "Service" is not itself a "Container", so you may not
  48.        define subcomponents such as "Valves" or "Loggers" at this level.
  49.    -->;
  50.   <!-- Define the Tomcat Stand-Alone Service -->;
  51.   <Service name="Tomcat-Standalone">;
  52.     <!-- A "Connector" represents an endpoint by which requests are received
  53.          and responses are returned.  Each Connector passes requests on to the
  54.          associated "Container" (normally an Engine) for processing.
  55.          By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
  56.          You can also enable an SSL HTTP/1.1 Connector on port 8443 by
  57.          following the instructions below and uncommenting the second Connector
  58.          entry.  SSL support requires the following steps (see the SSL Config
  59.          HOWTO in the Tomcat 4.0 documentation bundle for more detailed
  60.          instructions):
  61.          * Download and install JSSE 1.0.2 or later, and put the JAR files
  62.            into "$JAVA_HOME/jre/lib/ext".
  63.          * Execute:
  64.              %JAVA_HOME%inkeytool -genkey -alias tomcat -keyalg RSA (Windows)
  65.              $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
  66.            with a password value of "changeit" for both the certificate and
  67.            the keystore itself.
  68.          By default, DNS lookups are enabled when a web application calls
  69.          request.getRemoteHost().  This can have an adverse impact on
  70.          performance, so you can disable it by setting the
  71.          "enableLookups" attribute to "false".  When DNS lookups are disabled,
  72.          request.getRemoteHost() will return the String version of the
  73.          IP address of the remote client.
  74.     -->;
  75.     <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->;
  76.     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
  77.                port="8080" minProcessors="5" maxProcessors="75"
  78.                enableLookups="true" redirectPort="8443"
  79.                acceptCount="100" debug="0" connectionTimeout="20000"
  80.                useURIValidationHack="false" disableUploadTimeout="true" />;
  81.     <!-- Note : To disable connection timeouts, set connectionTimeout value
  82.      to 0 -->;
  83.     <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->;
  84.     <!--
  85.     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
  86.                port="8443" minProcessors="5" maxProcessors="75"
  87.                enableLookups="true"
  88.            acceptCount="100" debug="0" scheme="https" secure="true"
  89.                useURIValidationHack="false" disableUploadTimeout="true">;
  90.       <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
  91.                clientAuth="false" protocol="TLS" />;
  92.     </Connector>;
  93.     -->;
  94.     <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->;
  95.     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
  96.                port="8009" minProcessors="5" maxProcessors="75"
  97.                enableLookups="true" redirectPort="8443"
  98.                acceptCount="10" debug="0" connectionTimeout="0"
  99.                useURIValidationHack="false"
  100.                protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>;
  101.     <!-- Define an AJP 1.3 Connector on port 8009 -->;
  102.     <!--
  103.     <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
  104.                port="8009" minProcessors="5" maxProcessors="75"
  105.                acceptCount="10" debug="0"/>;
  106.     -->;
  107.     <!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->;
  108.     <!-- See proxy documentation for more information about using this. -->;
  109.     <!--
  110.     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
  111.                port="8082" minProcessors="5" maxProcessors="75"
  112.                enableLookups="true"
  113.                acceptCount="100" debug="0" connectionTimeout="20000"
  114.                proxyPort="80" useURIValidationHack="false"
  115.                disableUploadTimeout="true" />;
  116.     -->;
  117.     <!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -->;
  118.     <!--
  119.     <Connector className="org.apache.catalina.connector.http.HttpConnector"
  120.                port="8083" minProcessors="5" maxProcessors="75"
  121.                enableLookups="true" redirectPort="8443"
  122.                acceptCount="10" debug="0" />;
  123.     -->;
  124.     <!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -->;
  125.     <!--
  126.     <Connector className="org.apache.catalina.connector.http10.HttpConnector"
  127.                port="8084" minProcessors="5" maxProcessors="75"
  128.                enableLookups="true" redirectPort="8443"
  129.                acceptCount="10" debug="0" />;
  130.     -->;
  131.     <!-- An Engine represents the entry point (within Catalina) that processes
  132.          every request.  The Engine implementation for Tomcat stand alone
  133.          analyzes the HTTP headers included with the request, and passes them
  134.          on to the appropriate Host (virtual host). -->;
  135.     <!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
  136.     <Engine name="Standalone" defaultHost="localhost" debug="0" jvmRoute="jvm1">;
  137.     -->;
  138.     <!-- Define the top level container in our container hierarchy -->;
  139.     <Engine name="Standalone" defaultHost="localhost" debug="0">;
  140.       <!-- The request dumper valve dumps useful debugging information about
  141.            the request headers and cookies that were received, and the response
  142.            headers and cookies that were sent, for all requests received by
  143.            this instance of Tomcat.  If you care only about requests to a
  144.            particular virtual host, or a particular application, nest this
  145.            element inside the corresponding <Host>; or <Context>; entry instead.
  146.            For a similar mechanism that is portable to all Servlet 2.3
  147.            containers, check out the "RequestDumperFilter" Filter in the
  148.            example application (the source for this filter may be found in
  149.            "$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
  150.            Request dumping is disabled by default.  Uncomment the following
  151.            element to enable it. -->;
  152.       <!--
  153.       <Valve className="org.apache.catalina.valves.RequestDumperValve"/>;
  154.       -->;
  155.       <!-- Global logger unless overridden at lower levels -->;
  156.       <Logger className="org.apache.catalina.logger.FileLogger"
  157.               prefix="catalina_log." suffix=".txt"
  158.               timestamp="true"/>;
  159.       <!-- Because this Realm is here, an instance will be shared globally -->;
  160.       <!-- This Realm uses the UserDatabase configured in the global JNDI
  161.            resources under the key "UserDatabase".  Any edits
  162.            that are performed against this UserDatabase are immediately
  163.            available for use by the Realm.  -->;
  164.       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
  165.                  debug="0" resourceName="UserDatabase"/>;
  166.       <!-- Comment out the old realm but leave here for now in case we
  167.            need to go back quickly -->;
  168.       <!--
  169.       <Realm className="org.apache.catalina.realm.MemoryRealm" />;
  170.       -->;
  171.       <!-- Replace the above Realm with one of the following to get a Realm
  172.            stored in a database and accessed via JDBC -->;
  173.       <!--
  174.       <Realm  className="org.apache.catalina.realm.JDBCRealm" debug="99"
  175.              driverName="org.gjt.mm.mysql.Driver"
  176.           connectionURL="jdbc:mysql://localhost/authority"
  177.          connectionName="test" connectionPassword="test"
  178.               userTable="users" userNameCol="user_name" userCredCol="user_pass"
  179.           userRoleTable="user_roles" roleNameCol="role_name" />;
  180.       -->;
  181.       <!--
  182.       <Realm  className="org.apache.catalina.realm.JDBCRealm" debug="99"
  183.              driverName="oracle.jdbc.driver.OracleDriver"
  184.           connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
  185.          connectionName="scott" connectionPassword="tiger"
  186.               userTable="users" userNameCol="user_name" userCredCol="user_pass"
  187.           userRoleTable="user_roles" roleNameCol="role_name" />;
  188.       -->;
  189.       <!--
  190.       <Realm  className="org.apache.catalina.realm.JDBCRealm" debug="99"
  191.              driverName="sun.jdbc.odbc.JdbcOdbcDriver"
  192.           connectionURL="jdbc:odbc:CATALINA"
  193.               userTable="users" userNameCol="user_name" userCredCol="user_pass"
  194.           userRoleTable="user_roles" roleNameCol="role_name" />;
  195.       -->;
  196.       <!-- Define the default virtual host -->;
  197. <!--TFW: Model
  198.       <Host name="localhost" debug="0" appBase="webapps"
  199.        unpackWARs="true" autoDeploy="true">;
  200. -->;
  201. <!--TFW: Really use-->;
  202.       <Host name="localhost" debug="0" appBase="/opt/prog/m/Webapps"
  203.        unpackWARs="true" autoDeploy="true">;
  204.         <!-- Normally, users must authenticate themselves to each web app
  205.              individually.  Uncomment the following entry if you would like
  206.              a user to be authenticated the first time they encounter a
  207.              resource protected by a security constraint, and then have that
  208.              user identity maintained across *all* web applications contained
  209.              in this virtual host. -->;
  210.         <!--
  211.         <Valve className="org.apache.catalina.authenticator.SingleSignOn"
  212.                    debug="0"/>;
  213.         -->;
  214.         <!-- Access log processes all requests for this virtual host.  By
  215.              default, log files are created in the "logs" directory relative to
  216.              $CATALINA_HOME.  If you wish, you can specify a different
  217.              directory with the "directory" attribute.  Specify either a relative
  218.              (to $CATALINA_HOME) or absolute path to the desired directory.
  219.         -->;
  220.         <!--
  221.         <Valve className="org.apache.catalina.valves.AccessLogValve"
  222.                  directory="logs"  prefix="localhost_access_log." suffix=".txt"
  223.                  pattern="common" resolveHosts="false"/>;
  224.         -->;
  225.         <!-- Logger shared by all Contexts related to this virtual host.  By
  226.              default (when using FileLogger), log files are created in the "logs"
  227.              directory relative to $CATALINA_HOME.  If you wish, you can specify
  228.              a different directory with the "directory" attribute.  Specify either a
  229.              relative (to $CATALINA_HOME) or absolute path to the desired
  230.              directory.-->;
  231.         <Logger className="org.apache.catalina.logger.FileLogger"
  232.                  directory="logs"  prefix="localhost_log." suffix=".txt"
  233.             timestamp="true"/>;
  234.         <!-- Define properties for each web application.  This is only needed
  235.              if you want to set non-default properties, or have web application
  236.              document roots in places other than the virtual host''s appBase
  237.              directory.  -->;
  238.         <!-- Tomcat Root Context -->;
  239.         <!--
  240.           <Context path="" docBase="ROOT" debug="0"/>;
  241.         -->;
  242.         <!-- Tomcat Examples Context -->;
  243. <!--TFW: Model
  244.         <Context path="/examples" docBase="examples" debug="0"
  245.                  reloadable="true" crossContext="true">;
  246. -->;
  247. <!--TFW: Really use-->;
  248.         <Context path="/" docBase="/opt/prog/m/Webapps" debug="0"
  249.                  reloadable="true" crossContext="true">;
  250. <!--TFW: Really use END-->;
  251.           <Logger className="org.apache.catalina.logger.FileLogger"
  252.                      prefix="localhost_examples_log." suffix=".txt"
  253.               timestamp="true"/>;
  254.           <Ejb   name="ejb/EmplRecord" type="Entity"
  255.                  home="com.wombat.empl.EmployeeRecordHome"
  256.                remote="com.wombat.empl.EmployeeRecord"/>;
  257.           <!-- If you wanted the examples app to be able to edit the
  258.                user database, you would uncomment the following entry.
  259.                Of course, you would want to enable security on the
  260.                application as well, so this is not done by default!
  261.                The database object could be accessed like this:
  262.                Context initCtx = new InitialContext();
  263.                Context envCtx = (Context) initCtx.lookup("java:comp/env");
  264.                UserDatabase database =
  265.                     (UserDatabase) envCtx.lookup("userDatabase");
  266.           -->;
  267. <!--
  268.           <ResourceLink name="userDatabase" global="UserDatabase"
  269.                         type="org.apache.catalina.UserDatabase"/>;
  270. -->;
  271.           <!-- PersistentManager: Uncomment the section below to test Persistent
  272.                Sessions.
  273.                saveOnRestart: If true, all active sessions will be saved
  274.                  to the Store when Catalina is shutdown, regardless of
  275.                  other settings. All Sessions found in the Store will be
  276.                  loaded on startup. Sessions past their expiration are
  277.                  ignored in both cases.
  278.                maxActiveSessions: If 0 or greater, having too many active
  279.                  sessions will result in some being swapped out. minIdleSwap
  280.                  limits this. -1 or 0 means unlimited sessions are allowed.
  281.                  If it is not possible to swap sessions new sessions will
  282.                  be rejected.
  283.                  This avoids thrashing when the site is highly active.
  284.                minIdleSwap: Sessions must be idle for at least this long
  285.                  (in seconds) before they will be swapped out due to
  286.                  activity.
  287.                  0 means sessions will almost always be swapped out after
  288.                  use - this will be noticeably slow for your users.
  289.                maxIdleSwap: Sessions will be swapped out if idle for this
  290.                  long (in seconds). If minIdleSwap is higher, then it will
  291.                  override this. This isn''t exact: it is checked periodically.
  292.                  -1 means sessions won''t be swapped out for this reason,
  293.                  although they may be swapped out for maxActiveSessions.
  294.                  If set to >;= 0, guarantees that all sessions found in the
  295.                  Store will be loaded on startup.
  296.                maxIdleBackup: Sessions will be backed up (saved to the Store,
  297.                  but left in active memory) if idle for this long (in seconds),
  298.                  and all sessions found in the Store will be loaded on startup.
  299.                  If set to -1 sessions will not be backed up, 0 means they
  300.                  should be backed up shortly after being used.
  301.                To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,
  302.                and minIdleBackup all to -1, saveOnRestart to false, then restart
  303.                Catalina.
  304.           -->;
  305.           <!--
  306.           <Manager className="org.apache.catalina.session.PersistentManager"
  307.               debug="0"
  308.               saveOnRestart="true"
  309.               maxActiveSessions="-1"
  310.               minIdleSwap="-1"
  311.               maxIdleSwap="-1"
  312.               maxIdleBackup="-1">;
  313.                 <Store className="org.apache.catalina.session.FileStore"/>;
  314.           </Manager>;
  315.           -->;
  316.           <Environment name="maxExemptions" type="java.lang.Integer"
  317.                       value="15"/>;
  318.           <Parameter name="context.param.name" value="context.param.value"
  319.                      override="false"/>;
  320.           <Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
  321.                     type="javax.sql.DataSource"/>;
  322.           <ResourceParams name="jdbc/EmployeeAppDb">;
  323.             <parameter>;<name>;username</name>;<value>;sa</value>;</parameter>;
  324.             <parameter>;<name>;password</name>;<value>;</value>;</parameter>;
  325.             <parameter>;<name>;driverClassName</name>;
  326.               <value>;org.hsql.jdbcDriver</value>;</parameter>;
  327.             <parameter>;<name>;url</name>;
  328.               <value>;jdbc:HypersonicSQL:database</value>;</parameter>;
  329.           </ResourceParams>;
  330.           <Resource name="mail/Session" auth="Container"
  331.                     type="javax.mail.Session"/>;
  332.           <ResourceParams name="mail/Session">;
  333.             <parameter>;
  334.               <name>;mail.smtp.host</name>;
  335.               <value>;localhost</value>;
  336.             </parameter>;
  337.           </ResourceParams>;
  338.           <ResourceLink name="linkToGlobalResource"
  339.                     global="simpleValue"
  340.                     type="java.lang.Integer"/>;
  341.         </Context>;
  342.       </Host>;
  343.     </Engine>;
  344.   </Service>;
  345. </Server>;
复制代码

论坛徽章:
0
5 [报告]
发表于 2003-01-15 15:56 |只看该作者

[90%原创]Linux不完全攻略

附“/opt/prog/m/Webapps/xxx/WEB-INF/web.xml”:
  1. <?xml version="1.0" encoding="ISO-8859-1"?>;
  2. <!DOCTYPE web-app
  3.      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  4.     "http://java.sun.com/dtd/web-app_2_3.dtd">;
  5. <web-app>;
  6.   <!-- ======================== Introduction ============================== -->;
  7.   <!-- This document defines default values for *all* web applications      -->;
  8.   <!-- loaded into this instance of Tomcat.  As each application is         -->;
  9.   <!-- deployed, this file is processed, followed by the                    -->;
  10.   <!-- "/WEB-INF/web.xml" deployment descriptor from your own               -->;
  11.   <!-- applications.                                                        -->;
  12.   <!--                                                                      -->;
  13.   <!-- WARNING:  Do not configure application-specific resources here!      -->;
  14.   <!-- They should go in the "/WEB-INF/web.xml" file in your application.   -->;
  15.   <!-- ================== Built In Servlet Definitions ==================== -->;
  16.   <!-- The default servlet for all web applications, that serves static     -->;
  17.   <!-- resources.  It processes all requests that are not mapped to other   -->;
  18.   <!-- servlets with servlet mappings (defined either here or in your own   -->;
  19.   <!-- web.xml file.  This servlet supports the following initialization    -->;
  20.   <!-- parameters (default values are in square brackets):                  -->;
  21.   <!--                                                                      -->;
  22.   <!--   debug               Debugging detail level for messages logged     -->;
  23.   <!--                       by this servlet.  [0]                          -->;
  24.   <!--                                                                      -->;
  25.   <!--   input               Input buffer size (in bytes) when reading      -->;
  26.   <!--                       resources to be served.  [2048]                -->;
  27.   <!--                                                                      -->;
  28.   <!--   listings            Should directory listings be produced if there -->;
  29.   <!--                       is no welcome file in this directory?  [true]  -->;
  30.   <!--                                                                      -->;
  31.   <!--   output              Output buffer size (in bytes) when writing     -->;
  32.   <!--                       resources to be served.  [2048]                -->;
  33.   <!--                                                                      -->;
  34.   <!--   readonly            Is this context "read only", so HTTP           -->;
  35.   <!--                       commands like PUT and DELETE are               -->;
  36.   <!--                       rejected?  [true]                              -->;
  37.   <!--                                                                      -->;
  38.   <!--   encodeRedirects     Call encodeRedirectURL() on welcomefile or     -->;
  39.   <!--                       directory redirects. [false]                   -->;
  40.     <servlet>;
  41.         <servlet-name>;default</servlet-name>;
  42.         <servlet-class>;
  43.           org.apache.catalina.servlets.DefaultServlet
  44.         </servlet-class>;
  45.         <init-param>;
  46.             <param-name>;debug</param-name>;
  47.             <param-value>;0</param-value>;
  48.         </init-param>;
  49.         <init-param>;
  50.             <param-name>;listings</param-name>;
  51.             <param-value>;true</param-value>;
  52.         </init-param>;
  53.         <load-on-startup>;1</load-on-startup>;
  54.     </servlet>;
  55.   <!-- The "invoker" servlet, which executes anonymous servlet classes      -->;
  56.   <!-- that have not been defined in a web.xml file.  Traditionally, this   -->;
  57.   <!-- servlet is mapped to URL pattern "/servlet/*", but you can map it    -->;
  58.   <!-- to other patterns as well.  The extra path info portion of such a    -->;
  59.   <!-- request must be the fully qualified class name of a Java class that  -->;
  60.   <!-- implements Servlet (or extends HttpServlet), or the servlet name     -->;
  61.   <!-- of an existing servlet definition.     This servlet supports the     -->;
  62.   <!-- following initialization parameters (default values are in square    -->;
  63.   <!-- brackets):                                                           -->;
  64.   <!--                                                                      -->;
  65.   <!--   debug               Debugging detail level for messages logged     -->;
  66.   <!--                       by this servlet.  [0]                          -->;
  67.     <servlet>;
  68.         <servlet-name>;invoker</servlet-name>;
  69.         <servlet-class>;
  70.           org.apache.catalina.servlets.InvokerServlet
  71.         </servlet-class>;
  72.         <init-param>;
  73.             <param-name>;debug</param-name>;
  74.             <param-value>;0</param-value>;
  75.         </init-param>;
  76.         <load-on-startup>;2</load-on-startup>;
  77.     </servlet>;
  78.   <!-- The JSP page compiler and execution servlet, which is the mechanism  -->;
  79.   <!-- used by Tomcat to support JSP pages.  Traditionally, this servlet    -->;
  80.   <!-- is mapped to URL patterh "*.jsp".  This servlet supports the         -->;
  81.   <!-- following initialization parameters (default values are in square    -->;
  82.   <!-- brackets):                                                           -->;
  83.   <!--                                                                      -->;
  84.   <!--   checkInterval       If development is false and reloading is true, -->;
  85.   <!--                       background compiles are enabled. checkInterval -->;
  86.   <!--                       is the time in seconds between checks to see   -->;
  87.   <!--                       if a JSP page needs to be recompiled. [300]    -->;
  88.   <!--                                                                      -->;
  89.   <!--   compiler            Which compiler Ant should use to compile JSP   -->;
  90.   <!--                       pages.  See the Ant documenation for more      -->;
  91.   <!--                       information. [javac]                           -->;
  92.   <!--                                                                      -->;
  93.   <!--   classdebuginfo      Should the class file be compiled with         -->;
  94.   <!--                       debugging information?  [true]                 -->;
  95.   <!--                                                                      -->;
  96.   <!--   classpath           What class path should I use while compiling   -->;
  97.   <!--                       generated servlets?  [Created dynamically      -->;
  98.   <!--                       based on the current web application]          -->;
  99.   <!--                                                                      -->;
  100.   <!--   development         Is Jasper used in development mode (will check -->;
  101.   <!--                       for JSP modification on every access)?  [true] -->;
  102.   <!--                                                                      -->;
  103.   <!--   enablePooling       Determines whether tag handler pooling is      -->;
  104.   <!--                       enabled  [true]                                -->;
  105.   <!--                                                                      -->;
  106.   <!--   ieClassId           The class-id value to be sent to Internet      -->;
  107.   <!--                       Explorer when using <jsp:plugin>; tags.         -->;
  108.   <!--                       [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93]   -->;
  109.   <!--                                                                      -->;
  110.   <!--   fork                Tell Ant to fork compiles of JSP pages so that -->;
  111.   <!--                       a separate JVM is used for JSP page compiles   -->;
  112.   <!--                       from the one Tomcat is running in. [true]      -->;
  113.   <!--                                                                      -->;
  114.   <!--   javaEncoding        Java file encoding to use for generating java  -->;
  115.   <!--                       source files. [UTF8]                           -->;
  116.   <!--                                                                      -->;
  117.   <!--   keepgenerated       Should we keep the generated Java source code  -->;
  118.   <!--                       for each page instead of deleting it? [true]   -->;
  119.   <!--                                                                      -->;
  120.   <!--   largefile           Should we store the static content of JSP      -->;
  121.   <!--                       pages in external data files, to reduce the    -->;
  122.   <!--                       size of the generated servlets?  [false]       -->;
  123.   <!--                                                                      -->;
  124.   <!--   logVerbosityLevel   The level of detailed messages to be produced  -->;
  125.   <!--                       by this servlet.  Increasing levels cause the  -->;
  126.   <!--                       generation of more messages.  Valid values are -->;
  127.   <!--                       FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->;
  128.   <!--                       [WARNING]                                      -->;
  129.   <!--                                                                      -->;
  130.   <!--   mappedfile          Should we generate static content with one     -->;
  131.   <!--                       print statement per input line, to ease        -->;
  132.   <!--                       debugging?  [false]                            -->;
  133.   <!--                                                                      -->;
  134.   <!--   reloading           Should Jasper check for modified JSPs?  [true] -->;
  135.   <!--                                                                      -->;
  136.   <!--   scratchdir          What scratch directory should we use when      -->;
  137.   <!--                       compiling JSP pages?  [default work directory  -->;
  138.   <!--                       for the current web application]               -->;
  139.   <!--                                                                      -->;
  140.   <!-- If you wish to use Jikes to compile JSP pages:                       -->;
  141.   <!--   Set the init parameter "compiler" to "jikes".  Define              -->;
  142.   <!--   the property "-Dbuild.compiler.emacs=true" when starting Tomcat    -->;
  143.   <!--   by adding the above to your CATALINA_OPTS environment variable.    -->;
  144.   <!--   If you get an error reporting that jikes can''t use UTF8 encoding,  -->;
  145.   <!--   try setting the init parameter "javaEncoding" to "ISO-8859-1".     -->;
  146.     <servlet>;
  147.         <servlet-name>;jsp</servlet-name>;
  148.         <servlet-class>;org.apache.jasper.servlet.JspServlet</servlet-class>;
  149.         <init-param>;
  150.             <param-name>;logVerbosityLevel</param-name>;
  151.             <param-value>;WARNING</param-value>;
  152.         </init-param>;
  153.         <init-param>;
  154.             <param-name>;fork</param-name>;
  155.             <param-value>;false</param-value>;
  156.         </init-param>;
  157.         <load-on-startup>;3</load-on-startup>;
  158.     </servlet>;
  159.   <!-- Server Side Includes processing servlet, which processes SSI         -->;
  160.   <!-- directives in HTML pages consistent with similar support in web      -->;
  161.   <!-- servers like Apache.  Traditionally, this servlet is mapped to       -->;
  162.   <!-- URL pattern "*.shtml".  This servlet supports the following          -->;
  163.   <!-- initialization parameters (default values are in square brackets):   -->;
  164.   <!--                                                                      -->;
  165.   <!--   buffered            Should output from this servlet be buffered?   -->;
  166.   <!--                       (0=false, 1=true)  [0]                         -->;
  167.   <!--                                                                      -->;
  168.   <!--   debug               Debugging detail level for messages logged     -->;
  169.   <!--                       by this servlet.  [0]                          -->;
  170.   <!--                                                                      -->;
  171.   <!--   expires             The number of seconds before a page with SSI   -->;
  172.   <!--                       directives will expire.  [No default]          -->;
  173.   <!--                                                                      -->;
  174.   <!--   isVirtualWebappRelative                                            -->;
  175.   <!--                       Should "virtual" paths be interpreted as       -->;
  176.   <!--                       relative to the context root, instead of       -->;
  177.   <!--                       the server root?  (0=false, 1=true) [0]        -->;
  178.   <!--                                                                      -->;
  179.   <!--                                                                      -->;
  180.   <!-- IMPORTANT: To use the SSI servlet, you also need to rename the       -->;
  181.   <!--            $CATALINA_HOME/server/lib/servlets-ssi.renametojar file   -->;
  182.   <!--            to $CATALINA_HOME/server/lib/servlets-ssi.jar             -->;
  183. <!--
  184.     <servlet>;
  185.         <servlet-name>;ssi</servlet-name>;
  186.         <servlet-class>;
  187.           org.apache.catalina.ssi.SSIServlet
  188.         </servlet-class>;
  189.         <init-param>;
  190.           <param-name>;buffered</param-name>;
  191.           <param-value>;1</param-value>;
  192.         </init-param>;
  193.         <init-param>;
  194.           <param-name>;debug</param-name>;
  195.           <param-value>;0</param-value>;
  196.         </init-param>;
  197.         <init-param>;
  198.           <param-name>;expires</param-name>;
  199.           <param-value>;666</param-value>;
  200.         </init-param>;
  201.         <init-param>;
  202.           <param-name>;isVirtualWebappRelative</param-name>;
  203.           <param-value>;0</param-value>;
  204.         </init-param>;
  205.         <load-on-startup>;4</load-on-startup>;
  206.     </servlet>;
  207. -->;
  208.   <!-- Common Gateway Includes (CGI) processing servlet, which supports     -->;
  209.   <!-- execution of external applications that conform to the CGI spec      -->;
  210.   <!-- requirements.  Typically, this servlet is mapped to the URL pattern  -->;
  211.   <!-- "/cgi-bin/*", which means that any CGI applications that are         -->;
  212.   <!-- executed must be present within the web application.  This servlet   -->;
  213.   <!-- supports the following initialization parameters (default values     -->;
  214.   <!-- are in square brackets):                                             -->;
  215.   <!--                                                                      -->;
  216.   <!--   cgiPathPrefix       The CGI search path will start at              -->;
  217.   <!--                       webAppRootDir + File.separator + this prefix.  -->;
  218.   <!--                       [WEB-INF/cgi]                                  -->;
  219.   <!--                                                                      -->;
  220.   <!--   clientInputTimeout  The time (in milliseconds) to wait for input   -->;
  221.   <!--                       from the browser before assuming that there    -->;
  222.   <!--                       is none.  [100]                                -->;
  223.   <!--                                                                      -->;
  224.   <!--   debug               Debugging detail level for messages logged     -->;
  225.   <!--                       by this servlet.  [0]                          -->;
  226.   <!--                                                                      -->;
  227.   <!--   executable          Name of the exectuable used to run the script. -->;
  228.   <!--                       [perl]                                         -->;
  229.   <!--                                                                      -->;
  230.   <!-- IMPORTANT: To use the CGI servlet, you also need to rename the       -->;
  231.   <!--            $CATALINA_HOME/server/lib/servlets-cgi.renametojar file   -->;
  232.   <!--            to $CATALINA_HOME/server/lib/servlets-cgi.jar             -->;
  233. <!--
  234.     <servlet>;
  235.         <servlet-name>;cgi</servlet-name>;
  236.         <servlet-class>;org.apache.catalina.servlets.CGIServlet</servlet-class>;
  237.         <init-param>;
  238.           <param-name>;clientInputTimeout</param-name>;
  239.           <param-value>;100</param-value>;
  240.         </init-param>;
  241.         <init-param>;
  242.           <param-name>;debug</param-name>;
  243.           <param-value>;6</param-value>;
  244.         </init-param>;
  245.         <init-param>;
  246.           <param-name>;cgiPathPrefix</param-name>;
  247.           <param-value>;WEB-INF/cgi</param-value>;
  248.         </init-param>;
  249.          <load-on-startup>;5</load-on-startup>;
  250.     </servlet>;
  251. -->;
  252.   <!-- ================ Built In Servlet Mappings ========================= -->;
  253.   <!-- The servlet mappings for the built in servlets defined above.  Note  -->;
  254.   <!-- that, by default, the CGI and SSI servlets are *not* mapped.  You    -->;
  255.   <!-- must uncomment these mappings (or add them to your application''s own -->;
  256.   <!-- web.xml deployment descriptor) to enable these services              -->;
  257.     <!-- The mapping for the default servlet -->;
  258.     <servlet-mapping>;
  259.         <servlet-name>;default</servlet-name>;
  260.         <url-pattern>;/</url-pattern>;
  261.     </servlet-mapping>;
  262.     <!-- The mapping for the invoker servlet -->;
  263. <!--
  264.     <servlet-mapping>;
  265.         <servlet-name>;invoker</servlet-name>;
  266.         <url-pattern>;/servlet/*</url-pattern>;
  267.     </servlet-mapping>;
  268. -->;
  269.     <!-- The mapping for the JSP servlet -->;
  270.     <servlet-mapping>;
  271.         <servlet-name>;jsp</servlet-name>;
  272.         <url-pattern>;*.jsp</url-pattern>;
  273.     </servlet-mapping>;
  274.     <!-- The mapping for the SSI servlet -->;
  275. <!--
  276.     <servlet-mapping>;
  277.         <servlet-name>;ssi</servlet-name>;
  278.         <url-pattern>;*.shtml</url-pattern>;
  279.     </servlet-mapping>;
  280. -->;
  281.     <!-- The mapping for the CGI Gateway servlet -->;
  282. <!--
  283.     <servlet-mapping>;
  284.         <servlet-name>;cgi</servlet-name>;
  285.         <url-pattern>;/cgi-bin/*</url-pattern>;
  286.     </servlet-mapping>;
  287. -->;
  288.   <!-- ==================== Default Session Configuration ================= -->;
  289.   <!-- You can set the default session timeout (in minutes) for all newly   -->;
  290.   <!-- created sessions by modifying the value below.                       -->;
  291.     <session-config>;
  292.         <session-timeout>;30</session-timeout>;
  293.     </session-config>;
  294.   <!-- ===================== Default MIME Type Mappings =================== -->;
  295.   <!-- When serving static resources, Tomcat will automatically generate    -->;
  296.   <!-- a "Content-Type" header based on the resource''s filename extension,  -->;
  297.   <!-- based on these mappings.  Additional mappings can be added here (to  -->;
  298.   <!-- apply to all web applications), or in your own application''s web.xml -->;
  299.   <!-- deployment descriptor.                                               -->;
  300.     <mime-mapping>;
  301.         <extension>;abs</extension>;
  302.         <mime-type>;audio/x-mpeg</mime-type>;
  303.     </mime-mapping>;
  304.     <mime-mapping>;
  305.         <extension>;ai</extension>;
  306.         <mime-type>;application/postscript</mime-type>;
  307.     </mime-mapping>;
  308.     <mime-mapping>;
  309.         <extension>;aif</extension>;
  310.         <mime-type>;audio/x-aiff</mime-type>;
  311.     </mime-mapping>;
  312.     <mime-mapping>;
  313.         <extension>;aifc</extension>;
  314.         <mime-type>;audio/x-aiff</mime-type>;
  315.     </mime-mapping>;
  316.     <mime-mapping>;
  317.         <extension>;aiff</extension>;
  318.         <mime-type>;audio/x-aiff</mime-type>;
  319.     </mime-mapping>;
  320.     <mime-mapping>;
  321.         <extension>;aim</extension>;
  322.         <mime-type>;application/x-aim</mime-type>;
  323.     </mime-mapping>;
  324.     <mime-mapping>;
  325.         <extension>;art</extension>;
  326.         <mime-type>;image/x-jg</mime-type>;
  327.     </mime-mapping>;
  328.     <mime-mapping>;
  329.         <extension>;asf</extension>;
  330.         <mime-type>;video/x-ms-asf</mime-type>;
  331.     </mime-mapping>;
  332.     <mime-mapping>;
  333.         <extension>;asx</extension>;
  334.         <mime-type>;video/x-ms-asf</mime-type>;
  335.     </mime-mapping>;
  336.     <mime-mapping>;
  337.         <extension>;au</extension>;
  338.         <mime-type>;audio/basic</mime-type>;
  339.     </mime-mapping>;
  340.     <mime-mapping>;
  341.         <extension>;avi</extension>;
  342.         <mime-type>;video/x-msvideo</mime-type>;
  343.     </mime-mapping>;
  344.     <mime-mapping>;
  345.         <extension>;avx</extension>;
  346.         <mime-type>;video/x-rad-screenplay</mime-type>;
  347.     </mime-mapping>;
  348.     <mime-mapping>;
  349.         <extension>;bcpio</extension>;
  350.         <mime-type>;application/x-bcpio</mime-type>;
  351.     </mime-mapping>;
  352.     <mime-mapping>;
  353.         <extension>;bin</extension>;
  354.         <mime-type>;application/octet-stream</mime-type>;
  355.     </mime-mapping>;
  356.     <mime-mapping>;
  357.         <extension>;bmp</extension>;
  358.         <mime-type>;image/bmp</mime-type>;
  359.     </mime-mapping>;
  360.     <mime-mapping>;
  361.         <extension>;body</extension>;
  362.         <mime-type>;text/html</mime-type>;
  363.     </mime-mapping>;
  364.     <mime-mapping>;
  365.         <extension>;cdf</extension>;
  366.         <mime-type>;application/x-cdf</mime-type>;
  367.     </mime-mapping>;
  368.     <mime-mapping>;
  369.         <extension>;cer</extension>;
  370.         <mime-type>;application/x-x509-ca-cert</mime-type>;
  371.     </mime-mapping>;
  372.     <mime-mapping>;
  373.         <extension>;class</extension>;
  374.         <mime-type>;application/java</mime-type>;
  375.     </mime-mapping>;
  376.     <mime-mapping>;
  377.         <extension>;cpio</extension>;
  378.         <mime-type>;application/x-cpio</mime-type>;
  379.     </mime-mapping>;
  380.     <mime-mapping>;
  381.         <extension>;csh</extension>;
  382.         <mime-type>;application/x-csh</mime-type>;
  383.     </mime-mapping>;
  384.     <mime-mapping>;
  385.         <extension>;css</extension>;
  386.         <mime-type>;text/css</mime-type>;
  387.     </mime-mapping>;
  388.     <mime-mapping>;
  389.         <extension>;dib</extension>;
  390.         <mime-type>;image/bmp</mime-type>;
  391.     </mime-mapping>;
  392.     <mime-mapping>;
  393.         <extension>;doc</extension>;
  394.         <mime-type>;application/msword</mime-type>;
  395.     </mime-mapping>;
  396.     <mime-mapping>;
  397.         <extension>;dtd</extension>;
  398.         <mime-type>;text/plain</mime-type>;
  399.     </mime-mapping>;
  400.     <mime-mapping>;
  401.         <extension>;dv</extension>;
  402.         <mime-type>;video/x-dv</mime-type>;
  403.     </mime-mapping>;
  404.     <mime-mapping>;
  405.         <extension>;dvi</extension>;
  406.         <mime-type>;application/x-dvi</mime-type>;
  407.     </mime-mapping>;
  408.     <mime-mapping>;
  409.         <extension>;eps</extension>;
  410.         <mime-type>;application/postscript</mime-type>;
  411.     </mime-mapping>;
  412.     <mime-mapping>;
  413.         <extension>;etx</extension>;
  414.         <mime-type>;text/x-setext</mime-type>;
  415.     </mime-mapping>;
  416.     <mime-mapping>;
  417.         <extension>;exe</extension>;
  418.         <mime-type>;application/octet-stream</mime-type>;
  419.     </mime-mapping>;
  420.     <mime-mapping>;
  421.         <extension>;gif</extension>;
  422.         <mime-type>;image/gif</mime-type>;
  423.     </mime-mapping>;
  424.     <mime-mapping>;
  425.         <extension>;gtar</extension>;
  426.         <mime-type>;application/x-gtar</mime-type>;
  427.     </mime-mapping>;
  428.     <mime-mapping>;
  429.         <extension>;gz</extension>;
  430.         <mime-type>;application/x-gzip</mime-type>;
  431.     </mime-mapping>;
  432.     <mime-mapping>;
  433.         <extension>;hdf</extension>;
  434.         <mime-type>;application/x-hdf</mime-type>;
  435.     </mime-mapping>;
  436.     <mime-mapping>;
  437.         <extension>;hqx</extension>;
  438.         <mime-type>;application/mac-binhex40</mime-type>;
  439.     </mime-mapping>;
  440.     <mime-mapping>;
  441.         <extension>;htc</extension>;
  442.         <mime-type>;text/x-component</mime-type>;
  443.     </mime-mapping>;
  444.     <mime-mapping>;
  445.         <extension>;htm</extension>;
  446.         <mime-type>;text/html</mime-type>;
  447.     </mime-mapping>;
  448.     <mime-mapping>;
  449.         <extension>;html</extension>;
  450.         <mime-type>;text/html</mime-type>;
  451.     </mime-mapping>;
  452.     <mime-mapping>;
  453.         <extension>;hqx</extension>;
  454.         <mime-type>;application/mac-binhex40</mime-type>;
  455.     </mime-mapping>;
  456.     <mime-mapping>;
  457.         <extension>;ief</extension>;
  458.         <mime-type>;image/ief</mime-type>;
  459.     </mime-mapping>;
  460.     <mime-mapping>;
  461.         <extension>;jad</extension>;
  462.         <mime-type>;text/vnd.sun.j2me.app-descriptor</mime-type>;
  463.     </mime-mapping>;
  464.     <mime-mapping>;
  465.         <extension>;jar</extension>;
  466.         <mime-type>;application/java-archive</mime-type>;
  467.     </mime-mapping>;
  468.     <mime-mapping>;
  469.         <extension>;java</extension>;
  470.         <mime-type>;text/plain</mime-type>;
  471.     </mime-mapping>;
  472.     <mime-mapping>;
  473.         <extension>;jnlp</extension>;
  474.         <mime-type>;application/x-java-jnlp-file</mime-type>;
  475.     </mime-mapping>;
  476.     <mime-mapping>;
  477.         <extension>;jpe</extension>;
  478.         <mime-type>;image/jpeg</mime-type>;
  479.     </mime-mapping>;
  480.     <mime-mapping>;
  481.         <extension>;jpeg</extension>;
  482.         <mime-type>;image/jpeg</mime-type>;
  483.     </mime-mapping>;
  484.     <mime-mapping>;
  485.         <extension>;jpg</extension>;
  486.         <mime-type>;image/jpeg</mime-type>;
  487.     </mime-mapping>;
  488.     <mime-mapping>;
  489.         <extension>;js</extension>;
  490.         <mime-type>;text/javascript</mime-type>;
  491.     </mime-mapping>;
  492.     <mime-mapping>;
  493.         <extension>;jsf</extension>;
  494.         <mime-type>;text/plain</mime-type>;
  495.     </mime-mapping>;
  496.     <mime-mapping>;
  497.         <extension>;jspf</extension>;
  498.         <mime-type>;text/plain</mime-type>;
  499.     </mime-mapping>;
  500.     <mime-mapping>;
  501.         <extension>;kar</extension>;
  502.         <mime-type>;audio/x-midi</mime-type>;
  503.     </mime-mapping>;
  504.     <mime-mapping>;
  505.         <extension>;latex</extension>;
  506.         <mime-type>;application/x-latex</mime-type>;
  507.     </mime-mapping>;
  508.     <mime-mapping>;
  509.         <extension>;m3u</extension>;
  510.         <mime-type>;audio/x-mpegurl</mime-type>;
  511.     </mime-mapping>;
  512.     <mime-mapping>;
  513.         <extension>;mac</extension>;
  514.         <mime-type>;image/x-macpaint</mime-type>;
  515.     </mime-mapping>;
  516.     <mime-mapping>;
  517.         <extension>;man</extension>;
  518.         <mime-type>;application/x-troff-man</mime-type>;
  519.     </mime-mapping>;
  520.     <mime-mapping>;
  521.         <extension>;me</extension>;
  522.         <mime-type>;application/x-troff-me</mime-type>;
  523.     </mime-mapping>;
  524.     <mime-mapping>;
  525.         <extension>;mid</extension>;
  526.         <mime-type>;audio/x-midi</mime-type>;
  527.     </mime-mapping>;
  528.     <mime-mapping>;
  529.         <extension>;midi</extension>;
  530.         <mime-type>;audio/x-midi</mime-type>;
  531.     </mime-mapping>;
  532.     <mime-mapping>;
  533.         <extension>;mif</extension>;
  534.         <mime-type>;application/x-mif</mime-type>;
  535.     </mime-mapping>;
  536.     <mime-mapping>;
  537.         <extension>;mov</extension>;
  538.         <mime-type>;video/quicktime</mime-type>;
  539.     </mime-mapping>;
  540.     <mime-mapping>;
  541.         <extension>;movie</extension>;
  542.         <mime-type>;video/x-sgi-movie</mime-type>;
  543.     </mime-mapping>;
  544.     <mime-mapping>;
  545.         <extension>;mp1</extension>;
  546.         <mime-type>;audio/x-mpeg</mime-type>;
  547.     </mime-mapping>;
  548.     <mime-mapping>;
  549.         <extension>;mp2</extension>;
  550.         <mime-type>;audio/x-mpeg</mime-type>;
  551.     </mime-mapping>;
  552.     <mime-mapping>;
  553.         <extension>;mp3</extension>;
  554.         <mime-type>;audio/x-mpeg</mime-type>;
  555.     </mime-mapping>;
  556.     <mime-mapping>;
  557.         <extension>;mpa</extension>;
  558.         <mime-type>;audio/x-mpeg</mime-type>;
  559.     </mime-mapping>;
  560.     <mime-mapping>;
  561.         <extension>;mpe</extension>;
  562.         <mime-type>;video/mpeg</mime-type>;
  563.     </mime-mapping>;
  564.     <mime-mapping>;
  565.         <extension>;mpeg</extension>;
  566.         <mime-type>;video/mpeg</mime-type>;
  567.     </mime-mapping>;
  568.     <mime-mapping>;
  569.         <extension>;mpega</extension>;
  570.         <mime-type>;audio/x-mpeg</mime-type>;
  571.     </mime-mapping>;
  572.     <mime-mapping>;
  573.         <extension>;mpg</extension>;
  574.         <mime-type>;video/mpeg</mime-type>;
  575.     </mime-mapping>;
  576.     <mime-mapping>;
  577.         <extension>;mpv2</extension>;
  578.         <mime-type>;video/mpeg2</mime-type>;
  579.     </mime-mapping>;
  580.     <mime-mapping>;
  581.         <extension>;ms</extension>;
  582.         <mime-type>;application/x-wais-source</mime-type>;
  583.     </mime-mapping>;
  584.     <mime-mapping>;
  585.         <extension>;nc</extension>;
  586.         <mime-type>;application/x-netcdf</mime-type>;
  587.     </mime-mapping>;
  588.     <mime-mapping>;
  589.         <extension>;oda</extension>;
  590.         <mime-type>;application/oda</mime-type>;
  591.     </mime-mapping>;
  592.     <mime-mapping>;
  593.         <extension>;pbm</extension>;
  594.         <mime-type>;image/x-portable-bitmap</mime-type>;
  595.     </mime-mapping>;
  596.     <mime-mapping>;
  597.         <extension>;pct</extension>;
  598.         <mime-type>;image/pict</mime-type>;
  599.     </mime-mapping>;
  600.     <mime-mapping>;
  601.         <extension>;pdf</extension>;
  602.         <mime-type>;application/pdf</mime-type>;
  603.     </mime-mapping>;
  604.     <mime-mapping>;
  605.         <extension>;pgm</extension>;
  606.         <mime-type>;image/x-portable-graymap</mime-type>;
  607.     </mime-mapping>;
  608.     <mime-mapping>;
  609.         <extension>;pic</extension>;
  610.         <mime-type>;image/pict</mime-type>;
  611.     </mime-mapping>;
  612.     <mime-mapping>;
  613.         <extension>;pict</extension>;
  614.         <mime-type>;image/pict</mime-type>;
  615.     </mime-mapping>;
  616.     <mime-mapping>;
  617.         <extension>;pls</extension>;
  618.         <mime-type>;audio/x-scpls</mime-type>;
  619.     </mime-mapping>;
  620.     <mime-mapping>;
  621.         <extension>;png</extension>;
  622.         <mime-type>;image/png</mime-type>;
  623.     </mime-mapping>;
  624.     <mime-mapping>;
  625.         <extension>;pnm</extension>;
  626.         <mime-type>;image/x-portable-anymap</mime-type>;
  627.     </mime-mapping>;
  628.     <mime-mapping>;
  629.         <extension>;pnt</extension>;
  630.         <mime-type>;image/x-macpaint</mime-type>;
  631.     </mime-mapping>;
  632.     <mime-mapping>;
  633.         <extension>;ppm</extension>;
  634.         <mime-type>;image/x-portable-pixmap</mime-type>;
  635.     </mime-mapping>;
  636.     <mime-mapping>;
  637.         <extension>;ps</extension>;
  638.         <mime-type>;application/postscript</mime-type>;
  639.     </mime-mapping>;
  640.     <mime-mapping>;
  641.         <extension>;psd</extension>;
  642.         <mime-type>;image/x-photoshop</mime-type>;
  643.     </mime-mapping>;
  644.     <mime-mapping>;
  645.         <extension>;qt</extension>;
  646.         <mime-type>;video/quicktime</mime-type>;
  647.     </mime-mapping>;
  648.     <mime-mapping>;
  649.         <extension>;qti</extension>;
  650.         <mime-type>;image/x-quicktime</mime-type>;
  651.     </mime-mapping>;
  652.     <mime-mapping>;
  653.         <extension>;qtif</extension>;
  654.         <mime-type>;image/x-quicktime</mime-type>;
  655.     </mime-mapping>;
  656.     <mime-mapping>;
  657.         <extension>;ras</extension>;
  658.         <mime-type>;image/x-cmu-raster</mime-type>;
  659.     </mime-mapping>;
  660.     <mime-mapping>;
  661.         <extension>;rgb</extension>;
  662.         <mime-type>;image/x-rgb</mime-type>;
  663.     </mime-mapping>;
  664.     <mime-mapping>;
  665.         <extension>;rm</extension>;
  666.         <mime-type>;application/vnd.rn-realmedia</mime-type>;
  667.     </mime-mapping>;
  668.     <mime-mapping>;
  669.         <extension>;roff</extension>;
  670.         <mime-type>;application/x-troff</mime-type>;
  671.     </mime-mapping>;
  672.     <mime-mapping>;
  673.         <extension>;rtf</extension>;
  674.         <mime-type>;application/rtf</mime-type>;
  675.     </mime-mapping>;
  676.     <mime-mapping>;
  677.         <extension>;rtx</extension>;
  678.         <mime-type>;text/richtext</mime-type>;
  679.     </mime-mapping>;
  680.     <mime-mapping>;
  681.         <extension>;sh</extension>;
  682.         <mime-type>;application/x-sh</mime-type>;
  683.     </mime-mapping>;
  684.     <mime-mapping>;
  685.         <extension>;shar</extension>;
  686.         <mime-type>;application/x-shar</mime-type>;
  687.     </mime-mapping>;
  688.     <mime-mapping>;
  689.         <extension>;sit</extension>;
  690.         <mime-type>;application/x-stuffit</mime-type>;
  691.     </mime-mapping>;
  692.     <mime-mapping>;
  693.         <extension>;smf</extension>;
  694.         <mime-type>;audio/x-midi</mime-type>;
  695.     </mime-mapping>;
  696.     <mime-mapping>;
  697.         <extension>;snd</extension>;
  698.         <mime-type>;audio/basic</mime-type>;
  699.     </mime-mapping>;
  700.     <mime-mapping>;
  701.         <extension>;src</extension>;
  702.         <mime-type>;application/x-wais-source</mime-type>;
  703.     </mime-mapping>;
  704.     <mime-mapping>;
  705.         <extension>;sv4cpio</extension>;
  706.         <mime-type>;application/x-sv4cpio</mime-type>;
  707.     </mime-mapping>;
  708.     <mime-mapping>;
  709.         <extension>;sv4crc</extension>;
  710.         <mime-type>;application/x-sv4crc</mime-type>;
  711.     </mime-mapping>;
  712.     <mime-mapping>;
  713.         <extension>;swf</extension>;
  714.         <mime-type>;application/x-shockwave-flash</mime-type>;
  715.     </mime-mapping>;
  716.     <mime-mapping>;
  717.         <extension>;t</extension>;
  718.         <mime-type>;application/x-troff</mime-type>;
  719.     </mime-mapping>;
  720.     <mime-mapping>;
  721.         <extension>;tar</extension>;
  722.         <mime-type>;application/x-tar</mime-type>;
  723.     </mime-mapping>;
  724.     <mime-mapping>;
  725.         <extension>;tcl</extension>;
  726.         <mime-type>;application/x-tcl</mime-type>;
  727.     </mime-mapping>;
  728.     <mime-mapping>;
  729.         <extension>;tex</extension>;
  730.         <mime-type>;application/x-tex</mime-type>;
  731.     </mime-mapping>;
  732.     <mime-mapping>;
  733.         <extension>;texi</extension>;
  734.         <mime-type>;application/x-texinfo</mime-type>;
  735.     </mime-mapping>;
  736.     <mime-mapping>;
  737.         <extension>;texinfo</extension>;
  738.         <mime-type>;application/x-texinfo</mime-type>;
  739.     </mime-mapping>;
  740.     <mime-mapping>;
  741.         <extension>;tif</extension>;
  742.         <mime-type>;image/tiff</mime-type>;
  743.     </mime-mapping>;
  744.     <mime-mapping>;
  745.         <extension>;tiff</extension>;
  746.         <mime-type>;image/tiff</mime-type>;
  747.     </mime-mapping>;
  748.     <mime-mapping>;
  749.         <extension>;tr</extension>;
  750.         <mime-type>;application/x-troff</mime-type>;
  751.     </mime-mapping>;
  752.     <mime-mapping>;
  753.         <extension>;tsv</extension>;
  754.         <mime-type>;text/tab-separated-values</mime-type>;
  755.     </mime-mapping>;
  756.     <mime-mapping>;
  757.         <extension>;txt</extension>;
  758.         <mime-type>;text/plain</mime-type>;
  759.     </mime-mapping>;
  760.     <mime-mapping>;
  761.         <extension>;ulw</extension>;
  762.         <mime-type>;audio/basic</mime-type>;
  763.     </mime-mapping>;
  764.     <mime-mapping>;
  765.         <extension>;ustar</extension>;
  766.         <mime-type>;application/x-ustar</mime-type>;
  767.     </mime-mapping>;
  768.     <mime-mapping>;
  769.         <extension>;xbm</extension>;
  770.         <mime-type>;image/x-xbitmap</mime-type>;
  771.     </mime-mapping>;
  772.     <mime-mapping>;
  773.         <extension>;xml</extension>;
  774.         <mime-type>;text/xml</mime-type>;
  775.     </mime-mapping>;
  776.     <mime-mapping>;
  777.         <extension>;xpm</extension>;
  778.         <mime-type>;image/x-xpixmap</mime-type>;
  779.     </mime-mapping>;
  780.     <mime-mapping>;
  781.         <extension>;xsl</extension>;
  782.         <mime-type>;text/xml</mime-type>;
  783.     </mime-mapping>;
  784.     <mime-mapping>;
  785.         <extension>;xwd</extension>;
  786.         <mime-type>;image/x-xwindowdump</mime-type>;
  787.     </mime-mapping>;
  788.     <mime-mapping>;
  789.         <extension>;wav</extension>;
  790.         <mime-type>;audio/x-wav</mime-type>;
  791.     </mime-mapping>;
  792.     <mime-mapping>;
  793.         <extension>;svg</extension>;
  794.         <mime-type>;image/svg+xml</mime-type>;
  795.     </mime-mapping>;
  796.     <mime-mapping>;
  797.         <extension>;svgz</extension>;
  798.         <mime-type>;image/svg+xml</mime-type>;
  799.     </mime-mapping>;
  800.     <mime-mapping>;
  801.         <!-- Wireless Bitmap -->;
  802.         <extension>;wbmp</extension>;
  803.         <mime-type>;image/vnd.wap.wbmp</mime-type>;
  804.     </mime-mapping>;
  805.     <mime-mapping>;
  806.         <!-- WML Source -->;
  807.         <extension>;wml</extension>;
  808.         <mime-type>;text/vnd.wap.wml</mime-type>;
  809.     </mime-mapping>;
  810.     <mime-mapping>;
  811.         <!-- Compiled WML -->;
  812.         <extension>;wmlc</extension>;
  813.         <mime-type>;application/vnd.wap.wmlc</mime-type>;
  814.     </mime-mapping>;
  815.     <mime-mapping>;
  816.         <!-- WML Script Source -->;
  817.         <extension>;wmls</extension>;
  818.         <mime-type>;text/vnd.wap.wmlscript</mime-type>;
  819.     </mime-mapping>;
  820.     <mime-mapping>;
  821.         <!-- Compiled WML Script -->;
  822.         <extension>;wmlscriptc</extension>;
  823.         <mime-type>;application/vnd.wap.wmlscriptc</mime-type>;
  824.     </mime-mapping>;
  825.     <mime-mapping>;
  826.         <extension>;wrl</extension>;
  827.         <mime-type>;x-world/x-vrml</mime-type>;
  828.     </mime-mapping>;
  829.     <mime-mapping>;
  830.         <extension>;Z</extension>;
  831.         <mime-type>;application/x-compress</mime-type>;
  832.     </mime-mapping>;
  833.     <mime-mapping>;
  834.         <extension>;z</extension>;
  835.         <mime-type>;application/x-compress</mime-type>;
  836.     </mime-mapping>;
  837.     <mime-mapping>;
  838.         <extension>;zip</extension>;
  839.         <mime-type>;application/zip</mime-type>;
  840.     </mime-mapping>;
  841.   <!-- ==================== Default Welcome File List ===================== -->;
  842.   <!-- When a request URI refers to a directory, the default servlet looks  -->;
  843.   <!-- for a "welcome file" within that directory and, if present,          -->;
  844.   <!-- to the corresponding resource URI for display.  If no welcome file   -->;
  845.   <!-- is present, the default servlet either serves a directory listing,   -->;
  846.   <!-- or returns a 404 status, depending on how it is configured.          -->;
  847.   <!--                                                                      -->;
  848.   <!-- If you define welcome files in your own application''s web.xml        -->;
  849.   <!-- deployment descriptor, that list *replaces* the list configured      -->;
  850.   <!-- here, so be sure that you include any of the default values that     -->;
  851.   <!-- you wish to include.                                                 -->;
  852.     <welcome-file-list>;
  853.         <welcome-file>;index.html</welcome-file>;
  854.         <welcome-file>;index.htm</welcome-file>;
  855.         <welcome-file>;index.jsp</welcome-file>;
  856.     </welcome-file-list>;
  857. </web-app>;
复制代码

论坛徽章:
0
6 [报告]
发表于 2003-01-15 16:12 |只看该作者

[90%原创]Linux不完全攻略

TFW-DOC-04

红旗3.x启动异常


看是不是停在“Safr X Start”那里了。如果提示被开机画面掩盖,请按“Ctrl”+“Alt”+“F2”切换到字符界面去看。如果是,按“Ctrl”+“C”,跳过去。和分区无关(我试验过)。这是一种将就的办法。按照红旗的说法,要把主板的“串行设备”打开,但是我没成功。如果有更好的办法,我再更新。

论坛徽章:
0
7 [报告]
发表于 2003-01-15 16:13 |只看该作者

[90%原创]Linux不完全攻略

TFW-DOC-05

红旗Linux桌面版3.x的注册码不是必须的。

如果你一时得不到注册码,请用“Console”模式启动,登录后“startx”。如果已经以默认方式启动并看到注册码对话框,请用“Alt”+“Ctrl”+“F1”键跳到一个字符终端,登录后“init 3”,然后“startx”。

论坛徽章:
0
8 [报告]
发表于 2004-01-26 21:50 |只看该作者

[90%原创]Linux不完全攻略

相信大家都不愿意老装系统,等我有空发点备份/恢复方面的实例/解决办法。

论坛徽章:
0
9 [报告]
发表于 2004-06-19 02:44 |只看该作者

[90%原创]Linux不完全攻略

有的地方不太好:)譬如用grub引导不是更好吗?
不过总体挺好。。。

论坛徽章:
0
10 [报告]
发表于 2004-06-22 15:46 |只看该作者

[90%原创]Linux不完全攻略

还挺帅
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP