zoukankan      html  css  js  c++  java
  • Lab_6_SysOps_AutoScaling_Linux_v2.5

    System Operations - Lab 6: Using Amazon Elastic Load Balancer (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. Create a New Amazon Machine Image++++
    
    
    ==================================================================================================================
    1.4 Create New EC2 Instance
    ==================================================================================================================
    
    
    1.4.1 Inspect the script UserData.txt
    
    more UserData.txt
    
    1.4.2 Create your new EC2 instance
    
    aws ec2 run-instances --key-name <key-name> --instance-type t2.micro --image-id <ami-id> --user-data file:///home/ec2-user/UserData.txt --security-group-ids <sg-id> --subnet-id <subnet-id> --associate-public-ip-address
    
    1.4.3 Monitor the instance status
    
    aws ec2 describe-instance-status --instance-id <new-instance-id>
    
    1.4.4 Obtain public DNS name of new Web server
    
    aws ec2 describe-instances --instance-id <new-instance-id> --query 'Reservations[0].Instances[0].NetworkInterfaces[0].Association.PublicDnsName'
    
    1.4.5 Test Web server using curl command
    
    curl http://<public-dns-address>/ec2-stress/index.php
    
    ==================================================================================================================
    1.5 Create a Custom AMI
    ==================================================================================================================
    
    
    1.5.1 Create a new AMI based on the new instance
    
    aws ec2 create-image --name WebServer --instance-id <new-instance-id>
    
    
    
    漏 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 相关阅读:
    java web 入门实例servlet篇(显示后台数据库列表,删除某一条记录并显示)
    我的成长比价系列:java web开发过程中遇到的错误一:sql语句换行错误
    spring mvc + velocity 搭建实例程序maven版本并且使用的是tomcat容器而不是jetty(step by step)
    spring mvc学习笔记(一)web.xml文件配置的一点重要信息
    与数据库连接的页面增删改查 的easyui实现(主要是前端实现)
    oracle 11g 空表导出
    EMCA和EMCTL的简单用法
    vs2010补丁
    CAS 策略已被 .NET Framework 弃用
    sqlserver2008 链接服务器 2000
  • 原文地址:https://www.cnblogs.com/oskb/p/5943385.html
Copyright © 2011-2022 走看看