Download presentation
Presentation is loading. Please wait.
Published byElizabeth Clark Modified over 9 years ago
1
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Chapter 4 How to use cloud computing? Kai Liu, Qunying Huang, Jizhe Xia, Zhenlong Li, and Peter Lostritto 1
2
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Learning Objectives Get familiar with two popular cloud services Understand web application using a simple case Learn the basic steps to deploy the web application onto cloud services 2
3
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Learning Materials Videos: o Chapter_4-Video_1.mp4 o Chapter_4-Video_2.mp4 Scripts, Files and others: o index.html 3
4
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Learning Modules 1.Introduction: popular cloud services 2.“Hello Cloud” web application General steps Special considerations 3.Deploy the “Hello Cloud” onto Cloud Services Amazon AWS Windows Azure 4.Conclusion and discussions 4
5
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Two Popular Cloud Computing Services Amazon AWS Since 2006 Comprehensive platform which offers a list of cloud services such as computing, storage, content delivery, database, deployment & management, networking and other services (Varia and Mathew, 2012). URL: http://aws.amazon.com/ 5
6
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Two Popular Cloud Computing Services Windows Azure Since 2008 Microsoft cloud service which has four parts including Windows Azure, SQL Azure, Windows Azure AppFabric, and Windows Azure Marketplace (Chappell, 2010). URL: www.windowsazure.com 6
7
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Learning Modules 1.Introduction: popular cloud services 2.“Hello Cloud” web application General steps Special considerations 3.Deploy the “Hello Cloud” onto Cloud Services Amazon AWS Windows Azure 4.Conclusion and discussions 7
8
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. “Hello Cloud” web application Homepage of “Hello Cloud” website 8
9
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Hello Cloud Amazon AWS Windows Azure Apache Cloudstack Eucalyptus Cloud Nimbus OpenNebula HTML file contents 9
10
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Web application Containers Apache HTTP Server (httpd) Open Source HTTP server for modern operating systems including Unix and Windows Apache Tomcat Server Open Source Software implementation of the Java Servlet and JavaServer Pages (JSP) Microsoft Internet Information Services (IIS) Deployed by Microsoft for Microsoft Windows 10
11
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Learning Modules 1.Introduction: popular cloud services 2.“Hello Cloud” web application HTML page Web application context 3.Deploy the “Hello Cloud” onto Cloud Services Amazon AWS Windows Azure 4.Conclusion and discussions 11
12
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Deploy “Hello Cloud” onto AWS 12 Video: Chapter_4-Video_1.mp4
13
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 1. Sign up for AWS 13 Play Video(1) Video: Chapter_4-Video_1.mp4 0:00 – 0:29
14
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 2. Authorize Network Access There are two purposes in this step: Allowing users to access the instance with SSH (Secure Shell) or RDP (Remote Desktop) Accepting web traffic on specific port 14 Video: Chapter_4-Video_1.mp4 0:30 – 1:18
15
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Interface of EC2 dashboard 15
16
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Authorize Network Access using Security Groups 16 1. Create "hellocloud" group; 2. Create a new rule for SSH; 3. Create a new rule for HTTP
17
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 3. Launch an Instance Create Key Pair 17 Video: Chapter_4-Video_1.mp4 1:18 – 4:17
18
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. 18 Launching a new instance by searching and using AMI from AWS Marketplace
19
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 4. Login to the instance ssh -i ssh-keypair.pem username@ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.comusername@ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com Login to the instance from Linux or Mac OS Machine 19 Video: Chapter_4-Video_1.mp4 4:17 – 6:49
20
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Convert Amazon Key Pair to Private Key Login to the instance from Windows machine, using Putty: http://www.chiark.greenend.org.uk/ ~sgtatham/putty/ 20
21
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. (b) Select private key (a) Input Host Name 21 (c) Type root as login name
22
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 5. Install and Configure the web server $: yum install httpd $: service httpd start $: chkconfig httpd on $: iptables -I INPUT -p tcp --dport 80 -j ACCEPT $: service iptables save Install httpd Enable port 80 in firewall 22 Video: Chapter_4-Video_1.mp4 6:49 – 7:16
23
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 6. Transfer "Hello Cloud" file onto the instance $: scp -i myfirstkey.pem index.html ubuntu@ ec2-54-235-3-170.compute- 1.amazonaws.com:/root Transfer files from Linux or Mac OS Machine 23 Video: Chapter_4-Video_1.mp4 7:16 -- 8:07
24
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. WinSCP login Transfer files from Windows machine, u sing WinSCP: http://winscp.net/eng/index.php http://winscp.net/eng/index.php 24
25
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Transfer File using WinSCP 25
26
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 7. Deploy the application $:mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcomebak.conf $:mv /root/index.html /var/www/html $:service httpd restart 26 Video: Chapter_4-Video_1.mp4 8:07 – 9:59
27
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 8. Create an AMI from the running instance 27 Video: Chapter_4-Video_1.mp4 10:00 – 13:58
28
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Deploy “Hello Cloud” onto Azure 28 Click here to view the video demonstrating the steps.
29
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 1. Sign up for Windows Azure 29 Video: Chapter_4-Video_2.mp4 0:00 – 0:49
30
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 2. Create a virtual machine Launch Windows Virtual Machine 30 Video: Chapter_4-Video_2.mp4 0:49 – 6:28
31
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 3. Authorize Network Access 31 a) Add an endpoint; b) Specify the details of the endpoint Video: Chapter_4-Video_2.mp4 6:28 – 8:10
32
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 4. Login to the Virtual Machine Windows Azure Cloud Management interface 32 Video: Chapter_4-Video_2.mp4 8:10 – 8:47
33
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 5. Turn on IIS Turn on IIS in the virtual machine 33 Video: Chapter_4-Video_2.mp4 8:47 – 11:53
34
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 6. Transfer “Hello Cloud” file onto Virtual Machine Cloud consumers can simply copy and paste or drag and drop files between local computer and virtual machine. 34 Video: Chapter_4-Video_2.mp4 11:53 – 13:52
35
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 7. Deploy the application 1)First, create a folder named hellocloud under "C:\inetpub\wwwroot" directory in the virtual machine 2)Then, copy the home page of "Hello Cloud" application to hellocloud folder. 35
36
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Step 8. Capture an image of running virtual machine 1)Run sysprep in virtual machine 2)Shut down the virtual machine in Cloud Management Interface 3)Click "Capture" button in the bottom of Cloud Management Interface to capture the image. 36 Video: Chapter_4-Video_2.mp4 13:52 - end
37
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Learning Modules 1.Introduction: popular cloud services 2.“Hello Cloud” web application HTML page Web application context 3.Deploy the “Hello Cloud” onto Cloud Services Amazon AWS Windows Azure 4.Conclusion and discussions 37
38
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. General Steps to deploy a simple web application 38
39
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Discussion Questions 1.What are the differences between terminating an instance and stopping it on Amazon AWS? How to clean up an instance on AWS if you won't use the instance anymore? 2.What's the differences between shutting down a virtual machine and deleting it on Windows Azure? 3. What are the general steps of deploying a simple web applic ations onto EC2 and Windows Azure? 4.How to authorize network access in EC2 and Azure? 5.What is the role of the "key pair" in EC2? 6.What is "instance image" in cloud? Why is the relationship b etween an instance and an image. 39
40
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. References Chappell, David. "Introducing the windows azure platform." David Chappell & Associates White Paper (2010). Varia, J.and Mathew, S. 2012. Overview of Amazon Web Services. Available from: from: http://d36cz9buwru1tt.cloudfront.net/AWS_Overview.pdf[Accessed 23 January 2013]. 40
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.