Lab_1_SysOps_Compute_Linux_v2.5
System Operations - Lab 1: Creating Elastic Compute Cloud (Amazon EC2) Instances (Linux) - 2.5
================================================================================================================== Using this command reference. ================================================================================================================== 1. Locate the section you need. Each section in this file matches a section in the lab instructions. 2. Replace items in angle brackets - < > - with appropriate values. For example, in this command you would replace the value - <JobFlowID> - (including the brackets) with the parameter indicated in the lab instructions: elastic-mapreduce --list <JobFlowID>. You can also use find and replace to change bracketed parameters in bulk. 3. Do NOT enable the Word Wrap feature in Windows Notepad or the text editor you use to view this file. ++++1. Creating Instances++++ ==================================================================================================================
1.2 Create Command Host
================================================================================================================== 1.2.8 Paste text into user data textbox #!/bin/bash
yum update -y ==================================================================================================================
1.6 Create Web Server
================================================================================================================== 1.6.1 Save user data wget https://d2lrzjb0vjvpn5.cloudfront.net/sys-ops/v2.5/lab-1-compute-linux/static/UserData.txt 1.6.2 Run command to create Web server instance aws ec2 run-instances --image-id <ami-id> --user-data file:///home/ec2-user/UserData.txt --key-name <key-name> --security-group-ids <sg-id> --instance-type t2.micro --subnet-id <subnet-id> --associate-public-ip-address --query 'Instances[*].InstanceId' 1.6.3 Assign Name tag to instance aws ec2 create-tags --resources <instance_id> --tags 'Key=Name,Value=WebServer' 1.6.4 Verify instance created successfully aws ec2 describe-instances --instance-ids <instance_id> 1.6.5 See the value of just the State field aws ec2 describe-instances --instance-ids <instance_id> --query 'Reservations[0].Instances[0].State.Name' ==================================================================================================================
1.7 Verify Your Web Server
================================================================================================================== 1.7.1 Query the value of the PublicDnsName of your instance aws ec2 describe-instances --instance-ids <instance_id> --query 'Reservations[0].Instances[0].PublicDnsName' ++++2. Challenge Solutions - Fixing the Web Server Installation++++ ==================================================================================================================
2.2 Fixing the Web Server Installation
================================================================================================================== 2.2.1 Check the status of your HTTP server service httpd status 2.2.2 Examine the user data supplied to this instance curl http://169.254.169.254/latest/user-data 2.2.4 Start your Web server manually sudo service httpd start © 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab_1_SysOps_Compute_Linux_v2.5的更多相关文章
随机推荐
- 网页项目——i家居网站
本文介绍一个网页项目--i家居网站,小妹初来乍到,欢迎大家评论建议O(∩_∩)O~ 详细源代码.各种框架的实现以及素材均已上传百度云,需要的可以下载: 首页展示 用户注册页面 用户登录页面 商家注册页 ...
- JavaScipt 源码解析 异步
我们常见的异步操作: 定时器setTimeout postmessage WebWorkor CSS3 动画 XMLHttpRequest HTML5的本地数据 等等- JavaScript要求在与服 ...
- 樱花漫地集于我心,蝶舞纷飞祈愿相随---总结 顕出:void-sampling 显示:void-sampling
知识点: 分支语句,四则运算,( ̄y▽ ̄)~* 实验过程中遇到的问题及解决方法: 忘记换行,忘记代码,输入法切换(´∀`*) 暂时还得照书写,*★,°*:.☆\( ̄▽ ̄)/$:*.°★* 实验心得体会 ...
- 深入浅出Mybatis系列(一)---Mybatis入门
最近两年 springmvc + mybatis 的在这种搭配还是蛮火的,楼主我呢,也从来没真正去接触过mybatis, 趁近日得闲, 就去学习一下mybatis吧. 本次拟根据自己的学习进度,做一次 ...
- 公用表表达式CTE
公用表表达式CTE表面上和派生表非常相似,看起来只是语义上的区别.但和派生表比较起来,CTE具有几个优势:第一,如果须要在一个CTE中引用另一个CTE,不需要像派生表那样嵌套,相反,只要简单地在同一个 ...
- IT自学论坛
http://yun.baidu.com/share/home?uk=4113898546&view=share#category/type=0
- cocoapods 更新失败 bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)
http://blog.csdn.net/dark_gmn/article/details/49274993 ERROR: Could not find a valid gem 'cocoapods ...
- rpm打包
1,需要安装rpmbuild 2,准备好工作目录: mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} 3,自定义环境: vim ~/.rpmma ...
- Android M新特性之Permissions
User does not have to grant any permissions when they install or upgrade the app. Instead, the app r ...
- 安装生物信息学软件-bowtie2
好吧,这是本周(2016.10.21-28)的学习任务之一:安装bowtie2并学习其使用方法&参数设置 所以,啃文档咯,官方文档Version 2.2.9 http://bowtie-bio ...