forked from dginev/deprecated-CorTeX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
65 lines (49 loc) · 2.01 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
=== CorTeX server installation instructions ===
Brace yourselves, a lot of work to come...
For now, assuming you're running a Debian-based OS
0. Debian packages
sudo apt-get install gearman mod-gearman-tools \
gearman-server libfile-slurp-perl\
mysql-server libdbd-mysql-perl libdbd-sqlite-perl \
libanyevent-perl librdf-linkeddata-perl
cpanm Mojolicious AnyEvent::Gearman Unix::Processors
I. Backends
I.0. You would need Tomcat6 installed for OWLIM and eXist.
(sudo apt-get install tomcat6)
I.1. OWLIM -- Triple store (if you're not from Jacobs University, please use Sesame or request your own OWLIM access link)
http://download.ontotext.com/owlim/3e4dc2e0-d66c-11e1-b81b-dba586cc0cc6/owlim-lite-5.2.5331.zip
Deploy .war file in Tomcat
I.2. Exist -- XML Database
http://sourceforge.net/projects/exist/files/Stable/1.2/eXist-1.2.6-rev9165.war/download
Deploy .war file in Tomcat
I.3 MySQL -- SQL Database
Login as root and perform initial setup:
$ mysql -u root -p
create database cortex;
grant all on cortex.* to cortex@localhost identified by 'cortex';
Ctrl+D
Login as cortex and initialize database:
$ mysql -u cortex -p
use cortex;
drop table if exists tasks;
create table tasks (
taskid INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
corpus varchar(50),
entry varchar(200),
service varchar(50),
status int
);
create index statusidx on tasks (status);
create index corpusidx on tasks (corpus);
create index entryidx on tasks (entry);
create index serviceidx on tasks (service);
Ctrl+D
II. Configure Server settings
II.1. Tomcat memory
at /usr/share/tomcat6/bin/catalina.sh
after the last "JAVA_OPTS=" setter, add
JAVA_OPTS="$JAVA_OPTS -Xms3072m -Xmx3072m -XX:NewSize=512m -XX:MaxNewSize=512m
-XX:PermSize=512m -XX:MaxPermSize=512m -XX:+DisableExplicitGC"
III. Deploying a Frontend
NOTE: If you're using morbo for development, disable the watch mechanism as the SQLite database will keep changing. Run with:
morbo -w /dev/null cortex-frontend