blob: 0e536a508a4769a631314f5360392ecbd4878548 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Chapter 3. Installation of the management server</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta name="generator" content="publican 2.8" /><meta name="package" content="Apache_CloudStack-qig-4.1.1-en-US-0-0" /><script type="text/javascript" src="../../../../../toc.js"></script><script type="text/javascript">
addID('Apache_CloudStack');
addID('Apache_CloudStack.4.1.1');
addID('Apache_CloudStack.4.1.1.books');
addID('Apache_CloudStack.4.1.1.qig');
</script><link rel="home" href="index.html" title="Quick Install Guide" /><link rel="up" href="index.html" title="Quick Install Guide" /><link rel="prev" href="sect-qig-Environment-nfs.html" title="2.2. NFS" /><link rel="next" href="sect-qig-Management-installation.html" title="3.2. Installation" /></head><body class="toc_embeded "><div id="tocdiv" class="toc"><iframe id="tocframe" class="toc" src="../../../../toc.html">This is an iframe, to view it upgrade your browser or enable iframe display.</iframe></div><p id="title"><a class="left" href="http://cloudstack.apache.org"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="http://cloudstack.apache.org/docs"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="sect-qig-Environment-nfs.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="sect-qig-Management-installation.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="chapter" id="chap-qig-Management" lang="en-US"><div class="titlepage"><div><div><h1 class="title">Chapter 3. Installation of the management server</h1></div></div></div><div class="toc"><dl class="toc"><dt><span class="section"><a href="chap-qig-Management.html#sect-qig-Management-database">3.1. Database Installation and Configuration</a></span></dt><dt><span class="section"><a href="sect-qig-Management-installation.html">3.2. Installation</a></span></dt><dt><span class="section"><a href="sect-qig-Management-templatesetup.html">3.3. System Template Setup</a></span></dt></dl></div><div class="para">
Now it is time to start installing CloudStack's management server and some of the related components.
</div><div class="section" id="sect-qig-Management-database"><div class="titlepage"><div><div><h2 class="title">3.1. Database Installation and Configuration</h2></div></div></div><div class="para">
We'll start out by installing <span class="application"><strong>MySQL</strong></span> and configuring some options to ensure CloudStack runs well.
</div><div class="para">
To install <span class="application"><strong>MySQL</strong></span> run the following command:
<pre class="screen"><code class="prompt"># </code><strong class="userinput"><code><code class="command">yum</code> -y install mysql-server</code></strong></pre>
</div><div class="para">
With <span class="application"><strong>MySQL</strong></span> installed we need to make a few configuration changes to <code class="filename">/etc/my.cnf</code>. Specifically we need to add the following options to the [mysqld] section:
<pre class="screen">
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
log-bin=mysql-bin
binlog-format = 'ROW'
</pre>
</div><div class="para">
Now that <span class="application"><strong>MySQL</strong></span> is properly configured we can start it and configure it to start on boot as follows:
<pre class="screen">
<code class="prompt"># </code><strong class="userinput"><code><code class="command">service</code> mysqld start</code></strong>
<code class="prompt"># </code><strong class="userinput"><code><code class="command">chkconfig</code> mysqld on</code></strong>
</pre>
</div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="sect-qig-Environment-nfs.html"><strong>Prev</strong>2.2. NFS</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="sect-qig-Management-installation.html"><strong>Next</strong>3.2. Installation</a></li></ul></body></html>