Difference between revisions of "Retain Linux Install"
From GWAVA Technologies Training
(→Install Retain) |
(→Prerequisites) |
||
Line 15: | Line 15: | ||
# Create a directory and download it | # Create a directory and download it | ||
# md /software/mysql directory and change to it | # md /software/mysql directory and change to it | ||
− | # download MySQL Community Server '''5.5 | + | # download MySQL Community Server '''5.5''' [https://dev.mysql.com/downloads/mysql/5.5.html#downloads] direct [https://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-5.5.52-1.sles11.x86_64.rpm-bundle.tar] or '''5.6'''[https://dev.mysql.com/downloads/mysql/5.6.html#downloads] direct [https://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.33-1.sles11.x86_64.rpm-bundle.tar] to that mysql directory |
#* <code>wget "http://dev.mysql.com/get/archives/mysql-5.5/MySQL-5.5.42-1.sles11.x86_64.rpm-bundle.tar"</code> | #* <code>wget "http://dev.mysql.com/get/archives/mysql-5.5/MySQL-5.5.42-1.sles11.x86_64.rpm-bundle.tar"</code> | ||
## Extract the MySQL client and MySQL server or just untar the whole thing | ## Extract the MySQL client and MySQL server or just untar the whole thing |
Revision as of 20:45, 29 September 2016
Contents |
Multiple Disks
Create multiple disks to follow Retain best practices. This is optional but recommended.
- Create the disks in the VM software
- Format the disks in the VM itself using YaST/Partitioner, these values should be large enough for a few million small messages
- ARCHIVE (60-80GB)
- INDEX (15-30GB)
- LOGS (6-15GB)
- DATABASE (20-40GB)
Prerequisites
Database
For Retain 3.x you need to manually download and install a database. Retain 4.x will automatically download and install MySQL 5.6.
Install MySQL
- Create a directory and download it
- md /software/mysql directory and change to it
- download MySQL Community Server 5.5 [1] direct [2] or 5.6[3] direct [4] to that mysql directory
- Extract the MySQL client and MySQL server or just untar the whole thing
-
tar -xf MySQL-5.5.42-1.sles11.x86_64.rpm-bundle.tar
Webserver
All versions of Retain need a webserver installed, which tomcat will be installed onto.
Install HTTP Server
- Install http server (apache2) from YaST
- If connecting to Exchange:
- Set DNS to Exchange server, in YaST/Network Settings
The Retain installer will download Java and MySQL if you wish.
Install
Download Retain
- Create Retain download directory
- md /software/retain[version] directory and change to it
- download the current version of Retain [5] or the beta.
- Unzip Retain
-
chmod +x *.sh
-
Install Retain
-
./RetainInstall.sh
Retain 4 requires extensive resources the lab doesn't have, see your mentor about provisioning. - Install typical modules:
- Retain Server
- Reporting & Monitoring
- Worker
- Skip Stubbing as very few customers use that functionality
- Skip the Router as that should be installed on its own server in the network DMZ
- Setup database, using MySQL
- give it the path from above
- give mysql root user a password (remember this)
- create a database (retain), username (retain) and password
- Take the defaults and finish the install
Post-install Tasks
MySQL JDBC driver install
- MySQL on Windows or Linux:
- The MySQL Connector/J driver must be provided to the Retain Server and/or the Reporting and Monitoring Server and/or the Stubbing Server.
- Download Connector/J 5.1.21 or higher [6]
- Stop Tomcat [7]
- Copy the mysql-connector-java-5.1.39-bin.jar file to ...RetainServer/WEB-INF/lib (for Retain Server) and/or ...RetainStatsServer/WEB-INF/lib (for the Reporting and Monitoring Server) and/or ...RetainStubbingServer/WEB-INF/lib (for the Stubbing Server).
- Change the ownership of the jar file to match the other files with chown tomcat:www mysql-connector-java-5.1.39-bin.jar
- Change the permissions of the jar file to match the other files with chmod 755 mysql-connector-java-5.1.39-bin
- Start Tomcat
- If using multiple disks:
- Stop tomcat
rcretain-tomat7 stop
- Change ownership on INDEX and LOGS to
chown -R tomcat:tomcat /[volume]
- Change permissions on INDEX and LOGS to
chmod -R 774 /[volume]
- Change ownership on DATABASE to
chown -R mysql:mysql /DATABASE
- Change permissions on DATABASE to
chmod -R 774 /DATABASE
- Change ownership on ARCHIVE to
chown -R tomcat:tomcat /ARCHIVE
- Change permissions on ARCHIVE to
chmod -R 777 /ARCHIVE
- Start tomcat
rcretain-tomat7 start
- Start tomcat
- Stop tomcat
- Otherwise, browse to the RetainServer and configure the server.
Return to Retain Training