科帮网-Java论坛、Java社区、JavaWeb毕业设计

登录/注册
您现在的位置:论坛 盖世程序员(我猜到了开头 却没有猜到结局) 运维优化 > linux系统开启文件映射后tomcat项目里面的音频无法播放( ...
总共48085条微博

动态微博

查看: 2078|回复: 0

linux系统开启文件映射后tomcat项目里面的音频无法播放(软连接)

[复制链接]
admin    

1244

主题

544

听众

1万

金钱

管理员

  • TA的每日心情

    2021-2-2 11:21
  • 签到天数: 36 天

    [LV.5]常住居民I

    管理员

    跳转到指定楼层
    楼主
    发表于 2014-03-05 08:47:19 |只看该作者 |倒序浏览
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <!--
    3.   Licensed to the Apache Software Foundation (ASF) under one or more
    4.   contributor license agreements.  See the NOTICE file distributed with
    5.   this work for additional information regarding copyright ownership.
    6.   The ASF licenses this file to You under the Apache License, Version 2.0
    7.   (the "License"); you may not use this file except in compliance with
    8.   the License.  You may obtain a copy of the License at

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

    10.   Unless required by applicable law or agreed to in writing, software
    11.   distributed under the License is distributed on an "AS IS" BASIS,
    12.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13.   See the License for the specific language governing permissions and
    14.   limitations under the License.
    15. --><!-- The contents of this file will be loaded for each web application --><font color="#ff0000"><Context></font>

    16.     <!-- Default set of monitored resources -->
    17.     <WatchedResource>WEB-INF/web.xml</WatchedResource>
    18.        
    19.     <!-- Uncomment this to disable session persistence across Tomcat restarts -->
    20.     <!--
    21.     <Manager pathname="" />
    22.     -->

    23.     <!-- Uncomment this to enable Comet connection tacking (provides events
    24.          on session expiration as well as webapp lifecycle) -->
    25.     <!--
    26.     <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
    27.     -->

    28. </Context>
    复制代码
    tomcat缺省不支持文件夹软连接
    在tomcat/conf/context.xml中将<Context>修改为<Context allowLinking="true">,然后reboot tomcat



    科帮网-Java论坛、Java社区、JavaWeb毕业设计 1、本主题所有言论和图片纯属会员个人意见,与本社区立场无关
    2、本站所有主题由该帖子作者发表,该帖子作者与科帮网-Java论坛、Java社区、JavaWeb毕业设计享有帖子相关版权
    3、其他单位或个人使用、转载或引用本文时必须同时征得该帖子作者和科帮网-Java论坛、Java社区、JavaWeb毕业设计的同意
    4、帖子作者须承担一切因本文发表而直接或间接导致的民事或刑事法律责任
    5、本帖部分内容转载自其它媒体,但并不代表本站赞同其观点和对其真实性负责
    6、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意
    7、科帮网-Java论坛、Java社区、JavaWeb毕业设计管理员和版主有权不事先通知发贴者而删除本文


    JAVA爱好者①群:JAVA爱好者① JAVA爱好者②群:JAVA爱好者② JAVA爱好者③ : JAVA爱好者③

    本帖被以下淘专辑推荐:

    • · tomcat|主题: 6, 订阅: 0
    快速回复
    您需要登录后才可以回帖 登录 | 立即注册

       

    发布主题 快速回复 返回列表 联系我们 官方QQ群 科帮网手机客户端
    快速回复 返回顶部 返回列表