OLAT的安装基本分为标准安装模式和开发者安装模式。标准安装模式最简单,也最常用。如果你不想进行二次开发,只是直接使用的话,那么标准安装就能满足你的要求了。
以OLAT 7.0举例。简单来说,标准安装分为4个步骤:
- 数据库安装和配置:OLAT默认使用MySQL数据库。安装好MySQL后,按照安装说明设置好用户和权限,导入初始数据库就OK了。
- 修改配置文件
olat.local.properties
:这个配置文件里面决定了OLAT数据库连接方式、部署路径等事项,要根据自己的使用环境进行修改,然后放在Tomcat的lib下即可。在OLAT的war包里,有此文件的模板olat.properties,注释都很清楚,照着改就可以了。
- 修改log4j.xml,也放在Tomcat的lib下。OLAT官方安装说明里有具体的配置方法,一般把输出路径改改就行了。这个东西很有用,可以输出log日志,查看出错信息。
- 从官网上下载OLAT安装包olat.war,部署在tomcat里面就行了。相信部署war包都应该会,不细说了。
一个小教训:如果是在Windows系统做服务器,那么你的Tomcat在安装的时候不能使用带空格的路径,切记!
下面是OLAT关于标准安装的文档,照着做应该基本没有什么问题了。
标准安装(摘自OLAT安装帮助文档
):
This chapter describes the installation of OLAT for those wishing to use OLAT in a test or production
environment. If you are a developer then please skip this section and proceed to Section2.3, “Developer Installation”
where the installation process for an Eclipse IDE environment is described (please see the specific notes regarding
Eclipse and WTP found in developer installation instructions!)
If you are a deployment manager then we suggest that you review the Operations chapter to consider
additional installation and configuration details.
This installation process has been tested on Linux, MacOSX and Windows systems.
Our production systems run on Linux and use JDK 1.6.x, Tomcat 6.x, MySQL 5.x and the latest Openfire 3.4.x
The following are the necessary steps for installation:
-
The database user and the olat database needs to be created. Please refer to the scripts initDatabase.sql
and setupDatabase.sql
, which
are located in the olat3\webapp\WEB-INF\classes\resources\database
. For MySQL the steps are as follows:
-
Create the database and user manually. (use your user and password instead of olat and olatpwd)
# mysql -u root -p On the console run the following SQL-statements:
# use mysql;
# mysql> create database olatdb;
# mysql> create user 'olatdb'@'localhost' identified by 'olatpwd';
# mysql> grant all on olatdb.* to 'olat'@'localhost' identified by 'olatpwd';
# mysql> flush privileges;
-
On the console run the script:
>> mysql -u olat -p olatdb < setupDatabase.sql
The webapp/WEB-INF/src/serviceconfig/olat.properties
file contains settings required to build and install OLAT most of which
you will seldom, if ever, need to change. The olat.local.properties
file
contains those configuration settings you are most likely going to need to change for your environment.
Begin by making an empty olat.local.properties
save it to /yourTomcatDir/lib
or an other place on your classpath.
Review the olat.properties contents and amend them as appropriate for your local environment.
Please note that OLAT application directories will be created for you during the
build for which the build user account must have sufficient access rights. Pre-existing directories will
not be removed though their contents may become overwritten.
The follow remarks apply to the local properties (note that other parameters not cited here are chiefly of
relevance to developers):
Table2.1.Local configuration properties
userdata.dir
|
This should be set to an appropriate application data location. A typical choice on a Linux system would be
/var/lib/olat
.
|
archive.dir
|
A typical choice is ${userdata.dir}/archive
.
|
log.dir
|
A typical choice is ${userdata.dir}/logs
.
|
upgrade.dir
|
A typical choice is ${userdata.dir}/upgrades
.
|
folder.root
|
A typical choice is ${userdata.dir}/bcroot
.
|
temp.dir
|
A typical choice is ${userdata.dir}/tmp
.
|
smtp.*
|
Mail settings for your local SMTP agent (typically an MTA such as Sendmail, Postfix or Exim) Without these settings
your OLAT instance will be unable to issue emails. You must sent email addresses for admin and support emails. |
instance.id
|
This is an internal instance identifier used by OLAT and should only be changed in the event that several instances are
deployed within a single cluster.
|
db.*
|
The database settings are mostly self explanatory and refer to the database server that will host the OLAT database.
|
-
The following MySQL configuration parameters should be applied to your server configuration file
(i.e., my.cnf
)
Table2.2.MySQL configuration file parameters.
default-storage_engine
|
This must be set to innodb
and applies to all OLAT tables (unless
the table definition states otherwise) |
transaction-isolation
|
This must be set to READ-COMMITTED
which denies opportunity for dirty
reads and represents the optimal choice for an OLTP system. This is a required setting
for OLAT.
|
innodb_data_home_dir
|
This establishes the tablespace for your OLAT database which you can place under
your MySQL data directory.
You must create this directory yourself before starting the MySQL instance.
We recommend a dedicated tablespace for OLAT and hence a dedicated MySQL instance.
|
innodb_log_group_home_dir
|
This establishes the logfiles for your OLAT database which you can place under
your MySQL data directory i.e., datadir
in a directory called olatlogs
We recommend dedicated logfiles for OLAT and hence a dedicated MySQL instance. For heavy loads
you may consider locating these files on a separate partition or volume.
You must create this directory yourself before starting the MySQL instance.
|
innodb_flush_log_at_trx_commit
|
When set to 1
this flushes the log buffer to the log file with each commit and a
a disk write is performed. This is a reasonable default value for OLAT which ensures ACID
compliance though you may wish to review other possible values depending on your
circumstances.
|
innodb_buffer_pool_size
|
Generally speaking we recommend a value of c. 1024M
for production systems though a (considerably)
smaller value is appropriate for trial instances |
innodb_additional_mem_pool_size
|
This should be set to 20M
and is required exclusively for the data dictionary and related matters. |
log-bin
, expire_logs_days
|
We strongly recommend that you make use of binary logging and that you retain binary logs for a reasonable
period of time (e.g., 5-7 days) See MySQL documentation for further details. |
-
Put your customized log4j.xml file to tomcat/lib directory.
Example file :
-
Download olat.war
File
and deploy it into tomcat (copy to webapp directory). See 'Tomcat Web Application Depolyment' documentation.
分享到:
相关推荐
在安装OLAT之前,了解Linux操作系统的基本操作是必要的,因为OLAT安装假定是在Linux环境中进行。由于Linux环境的不同,一些命令可能需要根据您的目标环境进行适当的调整。OLAT作为一个Java Web应用程序,依赖于Web...
olat附带的脚本文件在官方的MySQL中报错,这个脚本文件是从EasyPHP中导出的,可以导入到官方的MySQL中。
Mein Workflow pro Blatt战争dannungefähr: Im Olat hab ichfüreine Aufgabe“ Blatt X” erstellt。 Unt dem Reiter工作流程由ich dann eingestellt负责,Studus aufgaben ins由Olat hochladenkönnen负责。 ...
OLAT的设计理念强调用户友好性、可扩展性和互操作性,使其成为教育机构和企业的理想选择。 四、OLAT的关键特性 1. 个性化学习:OLAT允许教师根据学生的需求定制学习内容,提供个性化的学习路径。 2. 社区协作:内置...
# 背景 聚类分析是一种常用的数据分析方法,可以...- olat: O点纬度,表示出发地点的纬度,为数值类型(num)。 - dlgt: D点经度,表示目的地点的经度,为数值类型(num)。 - dlat: D点纬度,表示目的地点的纬度,为
- SMT(表面贴装技术):指导如何正确地放置和焊接表面安装组件,以保证生产效率和可靠性。 2. **SCH和PCB设计检查清单**: 这个部分提供了设计人员在进行电路图(SCH)和PCB设计时应考虑的关键点,以确保设计的...
对于LTE-A和OLAT部分,文档则提供了针对这两种技术的共同设计注意事项,这些设计要点确保了基带芯片在支持最新蜂窝网络技术的同时,还能对系统负载进行准确分析和优化。 文档的Change List部分详细记录了从V0.1到V...
为了更直观地理解这些功能的应用情况,本文选取了OLAT、.LRN、Dokeos、Blackboard、Claroline、Atutor、Sakai、Moodle、Ilias等九款课程管理系统作为研究对象。这些系统在技术架构、工具灵活性、界面设计等方面各有...
请注意,与给定日期相关的练习将在当天进行讨论,即,该作业的解决方案必须在前一天(星期一)的17:00之前通过OLAT提交。 日期 任务 主题 2021-03-09 -- 行政事项,LCC2简介 2021-03-16 加速,阿姆达尔定律,...