How to change default port in Tomcat?

change default port in Tomcat

Open apache-tomcat-7.0.22confserver.xml

Find the block <Service name=”Catalina”>

Locate following block and replace the Old port number (In RED color) with new port number.

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

<!– A “Connector” represents an endpoint by which requests are received–>
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP  Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
–>
<Connector port=”8080” protocol=”HTTP/1.1″
connectionTimeout=”20000″
redirectPort=”8443″ />

Done!

How to start using AWS Free usage Tier?

http://aws.amazon.com/free/

AWS Free usage tier allows customers to use AWS offerings free to help them get started in the Cloud.

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

Services Available in Free Usage Tier:

  • Free Amazon EC2 Micro Instance
  • Free Amazon RDS Micro Instance for a year
  • Free usage tier for Amazon S3
  • Amazon Elastic Block Store
  • Amazon Elastic Load Balancing
  • AWS data transfer
  • AWS Elastic Beanstalk – To deploy your Java, PHP, Python, Ruby, and .NET applications

Use-cases

  • Launch new applications
  • Test existing applications in the cloud
  • Gain hands-on experience with AWS

 AWS Free Usage Tier (Per Month):

Elastic Compute Cloud (EC2)

  • 750 hours of Amazon EC2 Linux† Micro Instance usage (613 MB of memory and 32-bit and 64-bit platform support) – enough hours to run continuously each month*
  • 750 hours of Amazon EC2 Microsoft Windows Server‡ Micro Instance usage (613 MB of memory and 32-bit and 64-bit platform support) – enough hours to run continuously each month*
  • 750 hours of an Elastic Load Balancer plus 15 GB data processing*
  • 30 GB of Amazon Elastic Block Storage, plus 2 million I/Os and 1 GB of snapshot storage*

Simple Storage Service (S3)

  •  5 GB of Amazon S3 standard storage, 20,000 Get Requests, and 2,000 Put Requests*

DynamoDB

  • 100 MB of storage, 5 units of write capacity, and 10 units of read capacity for Amazon DynamoDB.**
  • Relational Database Service (RDS)
  • 750 hours of Amazon RDS Single-AZ Micro DB Instances, for running MySQL, Oracle BYOL or SQL Server (running SQL Server Express Edition) – enough hours to run a DB Instance continuously each month*
  • 20 GB of database storage
  • 10 million I/Os
  • 20 GB of backup storage for your automated database backups and any user-initiated DB Snapshots

Simple Workflow (SWF)

  • 1,000 Amazon SWF workflow executions can be initiated for free. A total of 10,000 activity tasks, signals, timers and markers, and 30,000 workflow-days can also be used for free**

Simple Queue Service (SQS) and Simple Notification Service (SNS)

  • 100,000 Requests of Amazon Simple Queue Service**
  • 100,000 Requests, 100,000 HTTP notifications and 1,000 email notifications for Amazon Simple Notification Service**

CloudWatch

  • 10 Amazon Cloudwatch metrics, 10 alarms, and 1,000,000 API requests**

Data Transfer

  • 15 GB of bandwidth out aggregated across all AWS services*

Data Pipeline

  • 3 low frequency preconditions running on AWS per month*
  • 5 low frequency activities running on AWS per month*

In addition to these services, the AWS Management Console is available at no charge to help you build and manage your application on AWS.

60-day Free Trial

In addition to the Free Usage Tier we also offer 60-day Free Trial for all AWS customers that are new to Amazon ElastiCache. AWS customers can avail of this Free Trial in addition to the Free Usage Tier offerings.

For more information on the free trial please follow the link below:

Amazon ElastiCache free trial

* These free tiers are only available to new AWS customers, and are available for 12 months following your AWS sign-up date. When your free usage expires or if your application use exceeds the free usage tiers, you simply pay standard, pay-as-you-go service rates (see each service page for full pricing details). Restrictions apply; see offer terms for more details.

** These free tiers do not expire after 12 months and are available to both existing and new AWS customers indefinitely.

The following Linux variants are not eligible for the free usage tier as a software license is required: SuSe Linux Enterprise Server and Red Hat Enterprise Linux (RHEL).

The following Windows variants are not eligible for the free usage tier: Microsoft Windows Server 2008 R2 with SQL Server Web, Microsoft Windows Server 2008 R2 with SQL Server Standard, Microsoft Windows 2008 R2 64-bit for Cluster Instances and Microsoft Windows 2008 R2 SQL Server 64-bit for Cluster Instances.

How to Get Started

Sign-up for an AWS account and subscribe to the services

Sign in as New User

Sign in as New User

Login Credentials for AWS

Login Credentials for AWS

Enter your billing address and credit card information

3.Contact Information in AWS

Payment Information in AWS

Payment Information in AWS

Identity Verification in AWS

Identity Verification in AWS

 Identity Verification Failure

Identity Verification Failure

Identity Verification Completed

Identity Verification Completed

Eligibility of Free Tier

Eligibility of Free Tier

Done!

We will see how to create Virtual machine in Free Tier in Next Article.

 

Cloud Platform as a Service Comparison- Cloud Foundry vs CloudBees vs CloudSwing

Cloud Platform as a Service Comparison- Cloud Foundry vs CloudBees vs CloudSwing

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers
  Cloud Foundry CloudBeeS CloudSwing
Description Cloud Foundry is the open platform as a service project initiated by VMware. It can support multiple frameworks, multiple cloud providers, and multiple application services all on a cloud scale platform. The CloudBees platform is the first Platform as a Service that lets companies build, test and deploy Java web applications in the cloud. CloudSwing is a solution that allows you to deploy any application on any technology stack to any cloud, creating a fully flexible PaaS (Platform-as-a-Service).
Web-Site www.cloudfoundry.com http://www.cloudbees.com/ https://cloudswing.openlogic.com
Development Status Beta Production Production
Technology Java / Spring, Groovy/Grails, Ruby Rails & Sinatra, Node.js Java Java, Ruby, JavaScript, PHP and other languages.
Open Source Yes No No
Database MongoDB, MySQL and Redis Shared and dedicated MySQL databases, Reliable, distributed Database-as-a-Service, based on Apache CouchDB MySQL
Database as a Service No Yes No
API CLI REST API and CLI tools to automate tasks -
Pricing The pricing of commercial service is not being announced as of now. http://www.cloudbees.com/cloud-platform-pricing.cb http://www.openlogic.com/cloud/pricing.php
DevTest Environment No Yes, Manual and Selenium-driven cross-browser testing on the cloud No
Free Trail Free in beta CloudBees provides a FREE subscription for all of its core platform services – this allows you to get a taste of where next generation software development is heading to. Free Minutes/Month (m1.small only)**-300 There is a Free Plan for CloudSwing that enables you to set up an account with up to 3 members and deploy up to 5 concurrent applications through CloudSwing.
Real-time web monitoring and analytics Hyperic Brings Application Monitoring to Cloud Foundry New Relic CloudSwing Leverages New Relic to Monitor Application
Continuous Integration (CI) server Cloud Foundry Maven Plugin. Jenkins -
Eclipse Plugin Yes CloudBees Toolkit for Eclipse -

How to install Magento in Ubuntu

To install Magento in Ubuntu – Now it’s turn to install another eCommerce ‘Magento’ which is feature-rich eCommerce platform built on open-source technology. Magento is available in two editions: Community and Enterprise.

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

Installing and Configuring Apache $ sudo apt-get install apache2 You may see following message during installation:

apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName

To fix that problem, you need to edit the httpd.conf file. Open the terminal and type $ sudo gedit /etc/apache2/httpd.conf

By default httpd.conf file will be blank. Now, simply add the following line to the file.

ServerName localhost Save the file and exit from gEdit. Finally restart the server. $ sudo /etc/init.d/apache2 restart * Restarting web server apache2 …. waiting             [ OK ] sudo a2enmod rewrite Installing PHP sudo apt-get install php5 php5-curl php5-gd php5-mcrypt php5-mysql Installing MySQL sudo apt-get install mysql-server To know more system requirements click on following link : http://www.magentocommerce.com/system-requirements Now create directory for magento mkdir /home/magento chgrp www-data /home/magento mkdir -p /home/magento/{public,log} Configuring Apache Virtual Host

Now we are going to create simple virtual host configuration file that will help Apache to display the data of directory /home/ubuntu/magento for any HTTP request to localhost.magento.com

Create “magento.com” file in this location “/etc/apache2/sites-available/” with following content.

ServerName localhost.magento.com ServerAlias www.localhost.magento.com DocumentRoot /home/ubuntu/magento/public LogLevel warn ErrorLog /home/ubuntu/magento/log/error.log CustomLog /home/ubuntu/magento/log/access.log combined

Use a2ensite command and restart Apache to load the new configuration file.

sudo a2ensite magento.com sudo service apache2 restart

To ensure that the domain localhost.magento.com resolves locally to the computer require entries to /etc/hosts file.

# For magento 127.0.0.1 localhost.magento.com 127.0.0.1 www.localhost.magento.com

Now hit localhost.magento.com in your browser to check working status after completion of above entries.

Now we will execute installation steps of main topic. Type following command on prompt. It will ask for root user password. mysql -u root -p Now lets create database for Magento. CREATE DATABASE magento; INSERT INTO mysql.user (User,Host,Password) VALUES(‘magento’,’localhost’,PASSWORD(‘magento’)); GRANT ALL PRIVILEGES ON magento.* TO magento@localhost;

Now download latest stable Magento from http://www.magentocommerce.com/download and put zip file into /home/ubuntu/magento/public

For testing Magento, you can download it from http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz

mv magento-sample-data-1.6.1.0/media/* media/ mv magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql sample_data.sql

Now we have to insert sample data into database that we earlier created for Magento.

mysql -u magento -p USE magento; SOURCE sample_data.sql;

Now everything is setup so open your browser and type localhost.magento.com and follow installation steps. You will find following screen.

Here is your Magento is working.

Cost Modeling – Plan for Cloud

Cost Modeling – Plan for Cloud: Cost Modeling of Cloud Deployments on Public Cloud such as AWS, Google, Microsoft Azure and Rackspace with RightScale-PlanForCloud

PlanForCloud allows innovative modeling of the elements of cloud deployments, such as servers, storage, databases and data transfers, as well as usage scenarios that incorporate growth, seasonality and other variability in the consumption of cloud resources. Deployments are run through a simulation to create a detailed 3-year cost report that enables you to accurately forecast costs for new deployments or budget for future usage. You do not need to be on the cloud and we do not require any cloud credentials.

Download Free EBooks and Whitepapers on Big DATA

Reports: each deployment has its own cost report that shows the estimated cost of that deployment over three years from the date of report generation.

It uses Google Money- http://www.google.com/finance/converter to get live exchange rates at the time of report creation in order for your cost reports to be shown in your chosen currency.

Click on http://www.planforcloud.com/

RightScale-PlanForCloud Home Page

RightScale-PlanForCloud Home Page

Sign up for New User or Login as a Guest

RightScale-PlanForCloud: Sign Up

RightScale-PlanForCloud: Sign Up

Log in

RightScale-PlanForCloud: Log in

RightScale-PlanForCloud: Log in

Dashboard

RightScale-PlanForCloud: Dashboard

RightScale-PlanForCloud: Dashboard

Sample Report- 3 year Cost Report

RightScale-PlanForCloud: Sample 3-Year Cost Report

RightScale-PlanForCloud: Sample 3-Year Cost Report

Create New Deployment

deployment represents groups of servers, storage and databases. Each deployment has its own cost report.

RightScale-PlanForCloud: Create New Deployment

RightScale-PlanForCloud: Create New Deployment

Give Resource Name such as Web Servers, Application Servers, Load Balancers;

Select Cloud Type from AWS, Google, Microsoft Azure and Rackspace.

RightScale-PlanForCloud: Cloud Type

RightScale-PlanForCloud: Cloud Type

Select Server Type from the available configurations for selected Cloud; We have selected AWS for our Sample Deployment.

Select Usage parameter

RightScale-PlanForCloud: Server Usage

RightScale-PlanForCloud: Server Usage

Select Quantity and then Select Pattern.

Patterns provide users the facility to scale up and scale down the resources as per their application need; for example in festival season traffic to the application is more than normal scenario; User can provide scale up configuration for that specific period.

Note: Patterns are not available for Reserved Instances as of now.

RightScale-PlanForCloud: Patterns for Scale up and Scale Down

RightScale-PlanForCloud: Patterns for Scale up and Scale Down

Final Server Configuration is

RightScale-PlanForCloud: Server Configuration

RightScale-PlanForCloud: Server Configuration

Storage Deployment

Select Storage for WebServer and Backup; Select Specific Cloud Type and Storage Type as well. User can select Patterns also.

RightScale-PlanForCloud: StorageConfiguration

RightScale-PlanForCloud: StorageConfiguration

Database Configurations

For AWS, MYSQL and Oracle are available as a Database and that also in different flavors.

RightScale-PlanForCloud: AWS Database Selection

RightScale-PlanForCloud: AWS Database Selection

Database Configuration for HPCDemo is

RightScale-PlanForCloud: Database Configuration

RightScale-PlanForCloud: Database Configuration

Data Transfer Configurations

RightScale-PlanForCloud:  Data Transfer Configuration

RightScale-PlanForCloud: Data Transfer Configuration

3 Year cost report for HPCDemo

RightScale-PlanForCloud: 3-Year Cost Report

RightScale-PlanForCloud: 3-Year Cost Report

Detail Report, Year wise

RightScale-PlanForCloud: 3-Year Detail Cost Report

RightScale-PlanForCloud: 3-Year Detail Cost Report

All Deployments

RightScale-PlanForCloud: All Deployments

RightScale-PlanForCloud: All Deployments

I believe PlanForCloud will soon add Cloud Management Cost as well since it has been taken over by RightScale and I guess they were giving same facility before.