ec2
ec2
Amazon linux
apache + mysql + php
sudo yum install httpd mysql-server php php-mysql
puttygen --> putty
h tt p:/ /a ws.amazon.com/free/
h t t p:/ / d otcms.com/docs/latest/amazonLinuxEc2DotcmsRecipe
Fire up a new Amazon instance - ami-1624987f. You need to ssh to the box using:
git clone https://github.com/dotCMS/dotCMS.git then
cd dotCMS git branch -rl git checkout master-2.2
Amazon linux
apache + mysql + php
sudo yum install httpd mysql-server php php-mysql
puttygen --> putty
h tt p:/ /a ws.amazon.com/free/
h t t p:/ / d otcms.com/docs/latest/amazonLinuxEc2DotcmsRecipe
Fire up a new Amazon instance - ami-1624987f. You need to ssh to the box using:
ssh -i ~/keys/your-key.pem ec2-user@{servers.amazon.public.ip}once in, you start here:
sudo -i yum update yum install -y git yum install -y ant yum install -y ant-contrib yum install -y ant-junit.noarch yum install -y mysql55-server.x86_64 /etc/init.d/mysqld start mysql CREATE USER 'dotcms'@'localhost' IDENTIFIED BY 'some_password'; CREATE USER 'dotcms'@'127.0.0.1' IDENTIFIED BY 'some_password'; GRANT ALL PRIVILEGES ON *.* TO 'dotcms'@'127.0.0.1' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON *.* TO 'dotcms'@'localhost' WITH GRANT OPTION; CREATE DATABASE dotcms default character set = utf8 default collate = utf8_general_ci; exit; # set timezone (obviously use the correct timezone) ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime mkdir /wwwroot cd /wwwroot/ git clone https://github.com/dotCMS/dotCMS cd /wwwroot/dotCMS/ git checkout master-2.2 # this will checkout the 2.2 master. For a later version change the version number vi /wwwroot/dotCMS/tomcat/conf/Catalina/localhost/ROOT.xml # comment the postgresql db, # uncomment the mysql db and # change username to dotcms and password to what # you entered for 'some_password' ant clean deploy-no-jsp touch tomcat/logs/dotcms.log ./bin/startup.sh && tail -f tomcat/logs/dotcms.log
*Note: dotCMS stable branches all start with "master-" so to get the latest stable 2.x branch, clone the repo, list the branches and then checkout the lastest master. For 2.2, you would:
git clone https://github.com/dotCMS/dotCMS.git then
cd dotCMS git branch -rl git checkout master-2.2
评论
发表评论