首页 > 代码库 > Lab_2_SysOps_VPC_Linux_v2.5
Lab_2_SysOps_VPC_Linux_v2.5
System Operations - Lab 2: Configuring a Virtual Private Cloud with Amazon VPC - 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.++++2. Provision the NAT Instance++++==================================================================================================================2.2 Provision the NAT Server Instance==================================================================================================================2.2.6 Paste the user data script into the User data field#!/bin/shecho 1 > /proc/sys/net/ipv4/ip_forwardecho 0 > /proc/sys/net/ipv4/conf/eth0/send_redirects/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 0.0.0.0/0 -j MASQUERADE/sbin/iptables-save > /etc/sysconfig/iptablesmkdir -p /etc/sysctl.d/cat <<EOF > /etc/sysctl.d/nat.confnet.ipv4.ip_forward = 1net.ipv4.conf.eth0.send_redirects = 0EOF++++3. Deploy a Bastion Server++++==================================================================================================================3.2 Create the Bastion Server==================================================================================================================3.2.5 Paste the following script into the User data field#!/bin/shyum update -y漏 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab_2_SysOps_VPC_Linux_v2.5
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。