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的更多相关文章
随机推荐
- Debian添加raw裸设备
一.检查系统是否已经启用了raw模块 root@frog:~# lsmod|grep raw 如果系统没有启用raw模块! 二. 设置系统自动启用raw root@frog:~# echo raw & ...
- VMWARE + CENTOS在windows下配置cocos2d-x android开发环境
VMWARE + CENTOS在windows配置cocos2d-x android开发环境 之前使用cygwin在windows开发android,后来使用了c++11特性,在cygwin中更新工具 ...
- Windows7系统下JAVA运行环境下载、安装和设置(第二次更新:2012年03月14日)
1.下载 地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html,(由于Sun于2009年被oracle收购所以网址 ...
- RabbitMQ基础概念详细介绍
http://blog.csdn.net/column/details/rabbitmq.html 转至:http://www.ostest.cn/archives/497 引言 你是否遇到过两个(多 ...
- 解决Linux下Tomcat日志目录下的catalina.log日志文件过大的问题
本文摘自:(http://blog.csdn.net/stevencn76/article/details/6246162) 分类: Java技术专区2011-03-13 12:25 5017人阅读 ...
- Windows Store App 旋转特效
使用Projection类可以实现界面元素的三维效果,它可以使界面上的元素在三维空间中沿着X轴.Y轴或者Z轴旋转一定的角度,在透视转换中此类又称为元素的Projection属性,用于对元素使用3D特效 ...
- 什么是Angular? 我们为什么要学习它?
在我更新Ionic的时候有人问我什么是 Angular,我们为什么要学习它啊?这个是我的疏忽了,在没有告诉你们什么是 Angular 的时候就让大家着手去学习 Ionic .那么今天就让我们认识一下什 ...
- PHPCMS出错Call to undefined function sitename()
一站点使用PHPCMS V9.4.2,因很久未升级,在使用后台的在线升级,升级到9.5.4后,出现“Call to undefined function sitename()”错误(注原模板未升级), ...
- 转: JSTL SQL标签库 使用
SQL标签库 JSTL提供了与数据库相关操作的标签,可以直接从页面上实现数据库操作的功能,在开发小型网站是可以很方便的实现数据的读取和操作.本章将详细介绍这些标签的功能和使用方法. SQL标签库从功能 ...
- 【Android】Android清除本地数据缓存代码
最近做软件的时候,遇到了缓存的问题,在网上看到了这个文章,感觉不错.分享给大家看看 文章出处:http://www.cnblogs.com/rayray/p/3413673.html /* * 文 件 ...