-
Notifications
You must be signed in to change notification settings - Fork 3
vitrolib install commands
These commands are mentioned in the VitroLib Installation video, and are included here for your convenience. You can reach this page by either of these URLs:
Is Java installed?
java -version
Install OpenJDK, version 7
sudo yum install java-1.7.0-openjdk
Is Git installed?
git --version
Install Git
sudo yum install git
Is Maven installed?
mvn --version
Is Maven available to yum?
yum search maven
Make Maven available to yum. (Only if the previous command failed)
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo \
-O /etc/yum.repos.d/epel-apache-maven.repo
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
Install Maven
sudo yum install apache-maven
Create the tomcat group. (This will do nothing if the group already exists.)
sudo groupadd tomcat
Create the tomcat user ID in the tomcat group. (Again, if the user already exists, this will have no effect.)
sudo useradd tomcat -g tomcat
Install Tomcat
sudo yum install tomcat7 tomcat7-webapps
Start Tomcat
sudo service tomcat7 start
Stop Tomcat
sudo service tomcat7 stop
Where is Tomcat installed? (Tomcat must be running.)
ps -ef | grep tomcat
Create setenv.sh
cd /usr/share/tomcat7/bin
sudo touch setenv.sh
sudo chgrp tomcat setenv.sh
sudo vi setenv.sh
Contents of setenv.sh
export CATALINA_OPTS="-Xms2G -Xmx2G"
Install MySQL
sudo yum install mysql-server
Ensure that MySQL start when the system is re-booted.
sudo chkconfig mysqld on
Make MySQL more secure
/usr/libexec/mysql55/mysql_secure_installation
Start MySQL
sudo service mysqld start
Create the distribution directory (use your own path for distribution directory)
sudo mkdir /cul/src/vitrolib
cd /cul/src/vitrolib
Clone the source repositories
sudo git clone https://github.com/ld4l-labs/Vitro.git -b vitrolib/master
sudo git clone https://github.com/ld4l-labs/vitrolib.git -b master