Sakai 学习社区

 找回密码
 立即注册
查看: 2027|回复: 1

安装tomcat8

[复制链接]

39

主题

71

帖子

778

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
778
发表于 2016-7-20 14:48:55 | 显示全部楼层 |阅读模式
以win7操作系统为例:
1、下载tomcat8: http://tomcat.apache.org/download-80.cgi
2、解压apache-tomcat-8.0.36.zip到C:\home下
3、修改conf/server.xml文件,修改Connector如下:

  1. <Connector port="8080" URIEncoding="UTF-8" redirectPort="8443" connectionTimeout="20000" protocol="HTTP/1.1"/>
复制代码
4、在apache-tomcat-8.0.36/bin目录下添加setenv.bat文件,文件内容如下:

  1. set JAVA_OPTS=-server -Xmx1028m -XX:MaxMetaspaceSize=512m -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false -Djava.awt.headless=true -Dcom.sun.management.jmxremote -Dfile.encoding=utf-8 -Dsun.jnu.encoding=utf-8
复制代码
5、删除apache-tomcat-8.0.36/webapps目录下所有的文件


回复

使用道具 举报

0

主题

8

帖子

64

积分

注册会员

Rank: 2

积分
64
发表于 2016-7-28 14:12:08 | 显示全部楼层
官方对全新部署Tomcat 8的建议如下:
While it is often better to start with a fresh installation of Tomcat, sometimes it is useful to just clean out all traces of Sakai from Tomcat and redeploy.
Procedure for Sakai 11

Tomcat 8

Shut Tomcat down. From the Tomcat directory:

    components
        Delete everything
    lib
        Delete everything except:
            The original jars that came with Tomcat
                Either keep a list of these and exclude them from the deletion (see Linux Tip below) or re-copy from a freshly-extracted Tomcat 8
             your database drivers (see Linux Tip below)
                Note that if you are using the MariaDB driver shipped with Sakai 11, you can safely delete it and it will be restored when you deploy Sakai
    temp
        Delete everything
    webapps
        Keep ROOT (if you have it)
        Delete everything else (see Linux Tip below)
    work
        Delete everything
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|Sakai 开源社区 ( 京ICP备16051938号-2 京公网安备 11010802023546号

GMT+8, 2019-9-16 07:58 , Processed in 0.054622 second(s), 7 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表