Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

DESCARGAR SOFTWARE NECESARIO

APACHE TOMCAT
https://tomcat.apache.org/download-90.cgi

MAVEN
https://maven.apache.org/download.cgi

SAKAI PROYECTO
http://source.sakaiproject.org/release/19.4/

MYSQL CONNECTOR
https://dev.mysql.com/downloads/file/?id=480091

MYSQL
TENGO INSTALADO XAMPP

CONFIGURACIÓN DE VARIABLES
JAVA_HOME
C:\Program Files\Java\jdk1.8.0_111

MAVEN_HOME
C:\sakai\maven

CATALINA_HOME
C:\sakai\tomcat

PATH
C:\Program Files\Java\jdk1.8.0_111\bin
C:\sakai\maven\bin
C:\sakai\tomcat\bin

MAVEN_OPTS
-Xms512m -Xmx1024m -Djava.util.Arrays.useLegacyMergeSort=true

CREACIÓN DE LA BASE DE DATOS

create database sakaidatabase default character set utf8;


grant all on sakaidatabase.* to sakaiuser@'localhost' identified by
'sakaipassword';
grant all on sakaidatabase.* to sakaiuser@'127.0.0.1' identified by
'sakaipassword';
flush privileges;

CONFIGURACIÓN TOMCAT:

1. COPIAR MYSQL CONNECTOR A DIRECTORIO CATALINA_HOME/lib

2. CREAR CARPETA CATALINA_HOME/sakai Y CREAR UN ARCHIVO LLAMADO sakai.properties Y


AGREGAR EL SIGUIENTE CONTENIDO

## MySQL settings
# Replace by whatever username you assigned in the database setup
[email protected]=sakaiuser
# Replace by whatever password you assigned to the sakaiuser in the database setup
[email protected]=sakaipassword

# use your sakaidatabase name in the URI that starts


[email protected]= , below.
[email protected]=mysql
[email protected]=com.mysql.jdbc.Driver
hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
[email protected]=jdbc:mysql://127.0.0.1:3306/sakaidatabase?
useUnicode=true&characterEncoding=UTF-8
[email protected]=select 1 from DUAL
[email protected]=TRANSACTION_READ_COMMITT
ED

3. MODIFICAR CATALINA_HOME/conf/context.xml Y AGREGAR DENTRO DE CONTEXT

<JarScanner>
<!-- This is to speedup startup so that tomcat doesn't scan as much -->
<JarScanFilter defaultPluggabilityScan="false" />
</JarScanner>

4. MODIFICAR CATALINA_HOME/conf/server.xml Y AGREGAR DESPUES DE <Connector


port="8080"

URIEncoding="UTF-8"

6. CREAR ARCHIVO setenv.bat DENTRO DE CATALINA_HOME/bin Y AGREGAR EL SIGUIENTE


CONTENIDO:

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 -Dsakai.demo=true

7. IR A LA CARPETA DE CATALINA_HOME/bin Y EJECUTAR startup.bat

You might also like