CentOS 6.4-based installation Cloudstack
Environment configuration
# yum-y update# yum-y Upgrade
Installation of Ntp,jdk 1.7, Tomcat 6, Mysql,git and other services
# yum-y Install ntp# yum-y install java-1.7.0-openjdk-devel# wget https://archive.apache.org/dist/tomcat/tomcat-6/v6.0 .35/bin/apache-tomcat-6.0.35.tar.gz# tar xzvf apache-tomcat-6.0.35.tar.gz-c/usr/local# yum-y install MySQL mysql-server# yum-y Install git
Edit /etc/profile.d/tomcat.sh, write the following :
Export Catalina_base=/usr/local/apache-tomcat-6.0.35export catalina_home=/usr/local/apache-tomcat-6.0.35
Installing Maven 3.0.5
# wget http://mirror.cc.columbia.edu/pub/software/apache/maven/maven-3/3.0.5/binaries/ apache-maven-3.0.5-bin.tar.gz# tar xzf apache-maven-3.0.5-bin.tar.gz-c/usr/local# cd/usr/local# ln-s apache-maven-3.0.5 maven
Configure the MAVEN service, edit the /etc/profile.d/maven.sh file, write the following:
Export M2_home=/usr/local/mavenexport Path=${m2_home}/bin:${path}
Log out and log in again to view the MAVEN version
# mvn--versionapache maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 21:51:28+0800) maven home:/usr /local/mavenjava version:1.7.0_71, Vendor:oracle Corporationjava home:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71.x86 _64/jredefault Locale:en_us, platform Encoding:utf-8os name: "Linux", Version: "2.6.32-358.el6.x86_64", Arch: "AMD64", F amily: "Unix"
Installing the Python management tool
# yum-y Install Python-setuptools
Installing the Epel source
# cd/tmp# wget http://mirror-fpt-telecom.fpt.net/fedora/epel/6/i386/epel-release-6-8.noarch.rpm# RPM-IVH epel-release-6-8.noarch.rpm
Update source and install Python-pip
# yum update# yum-y Install Python-pip
Installing mkisofs
# yum-y Install Genisoimage
SOURCE Installation
Git gets 4.2 source code
# git clone https://git-wip-us.apache.org/repos/asf/cloudstack.git# git checkout 4.2
Compiling and installing Cloudstack
# MVN-PDEVELOPER,SYSTEMVM Clean Install
Tip: If you want to skip unit testing, use -dskiptests instead of -dmaven.test.skip=true, which interrupts compilation.
Set utils/conf/db.properties, if you do not need to modify the DB configuration, the default is
Initialize DB and Run Cloudstack
# mvn-p DEVELOPER-PL developer-ddeploydb# mvn-pl:cloud-client-ui jetty:run
Successfully started, you can view the UI in http://localhost:8080/client/
If a firewall is enabled, you need to open the following ports on the fire wall: 8080, 8250, 9090
Source code compilation Installation Cloudstack 4.2