CloudFront distribution points, bind S3 buckets
Preparing the WordPress configuration document
Preparing the configuration document for VirtualHost
Uploading the configuration document into the S3 bucket
Configure bash shell scripts, including Lamp,wordpress,aws,crontab and S3 synchronization, and more
Create a EC2 virtual machine, specify the bootstrap command created in 14 steps
U
This is the third part of PowerShell's creation of the AWS high-availability blog, and let's look at how the post-half work is done.
Create EC2-S3 role, which is assigned to EC2 virtual machines so that they automatically have access to S3 content after they are created.
Create a VPC Network
Create 2 subnets of a VPC, located in different AZ
Create an Internet gateway
Configure the routing table
Create and configure the EC2 security Grou
be omitted directly650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/83/63/wKiom1dx_iKhLygDAAAvES_DlNI872.png "style=" float: none; "title=" 9.PNG "alt=" Wkiom1dx_ikhlygdaaaves_dlni872.png "/>If I don't remember the full name, I can match it with a regular command, such as I need to know any service operation related to Securitygroup.Get-awscmdletname–apioperation Securitygroup-matchwithregex650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/83/63/wKiom1dx_ieDBoJ7AADvME6rZuU645
The theory and the basic architecture have been explained in the previous article, this one directly to see the specific script implementation. First, take a look at the implementation of the previous 10 steps.
Create EC2-S3 role, which is assigned to EC2 virtual machines so that they automatically have access to S3 content after they are created.
Create a VPC Network
Create 2 subnets of a VPC, located in different AZ
Create an Internet gateway
Configure the routing table
Create an
=" Wkiom1dzbk_c2izhaai3hz_lkru661.png "/>Also confirm on the webpage, create successfully.650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/83/6E/wKioL1dzblTTUdK_AACTcUyXLpQ114.png "style=" float: none; "title=" 13.PNG "alt=" Wkiol1dzblttudk_aactcuyxlpq114.png "/>If you need to delete an instance, you can performRemove-ec2instance-instanceid i-0bb1bc83486b933b1Such a basic EC2 operation is completed, tomorrow to see the relevant configuration of S3.This article is from the "Mapo Tofu" b
/wyfs02/M00/83/C9/wKioL1d8mVDwO_AuAABzWFt89vU649.png "title=" 9.PNG " Style= "Float:none;" alt= "Wkiol1d8mvdwo_auaabzwft89vu649.png"/>The next step is to specify the resources that EC2 can access, specifying all of the S3 resources$policy 2 = @ "{" "Version": "2012-10-17", "Statement": [{"Effect": "Allow", "notaction": "s3:*", "Resource": "*" }]} "@ write-iamrolepolicy-policydocument $policy 2-rolename" newec2-s31 "-policyname" ALLOWS3 "After execution, you can see that it's been configured.650)
://s3.51cto.com/wyfs02/M02/83/AA/wKioL1d6CmWR2StsAADCflHoudk047.png "title=" 13.PNG "alt=" Wkiol1d6cmwr2stsaadcflhoudk047.png "/>In fact, the auto scaling group created the corresponding policy and alarm so I took a lot of effort. Because AWS does not know for what reason, his creation command is Write-asscalingpolicy, and the corresponding read command is get-aspolicy, the Delete command is Remove-aspolicy, completely does not conform to the naming s
' -DefaultCacheBehavior_MinTTL1000 ' -distributionconfig_ priceclass "Priceclass_all" ' -cachebehaviors_quantity0 ' -Aliases_Quantity1 ' -aliases_item "Test.beanxyz.com"After the command has been executed, it is created and can be used in about 15 minutes.650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/84/25/wKiom1eHBWfyxdcSAAA0x-_PLbY218.png "style=" float: none; "title=" 1.PNG "alt=" Wkiom1ehbwfyxdcsaaa0x-_plby218.png "/>At the same time, on my GoDaddy DNS I added an alias to m
} #Add new Routenew-ec2route-destinationcidrblock "0.0.0.0/0"-gatewayid $igwid-routetableid $ RouteTable. RoutetableidAs shown below650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/83/8E/wKioL1d1_z7zG2PeAAArGIDYbJY472.png "style=" float: none; "title=" 10.PNG "alt=" Wkiol1d1_z7zg2peaaargidybjy472.png "/>I can also force associations to the corresponding subnets. If it is in the default main routing table, all subnets will automatically inherit VPC-related routes, of course, I created a
/wKiom1eFsjjhmJY2AABI9C9reeY614.png "title=" 5.PNG " alt= "Wkiom1efsjjhmjy2aabi9c9reey614.png"/>Next, do a simple test.Beans directly created a CentOS 7 server, after installing MARIADB, connect to the endpoint of my RDS instance to seeConnection Successful650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/84/19/wKiom1eFsAuSTHNQAAA8-IM8uXY046.png "style=" float: none; "title=" 3.PNG "alt=" Wkiom1efsausthnqaaa8-im8uxy046.png "/>View Database650) this.width=650; "src=" Http://s3.51cto.com/
/yuanpicture/myobject.txt" Start-process-filepath $url650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/83/7C/wKiom1d0ktnSv4ymAAAieOcRIcs574.png "style=" float: none; "title=" 13.PNG "alt=" Wkiom1d0ktnsv4ymaaaieocrics574.png "/>If you want to download a file, you can implement it by Read-s3objectFor example, I downloaded this file to the current folder, named Test.txtRead-s3object Yuanpicture-key myobject.txt-file Test.txt650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/83/7B/
Before you start
The Rational functional Tester is a GUI-based automated and regression testing tool for automating test scenarios across many products from a variety of organizations. The Test team uses it to create a set of automated scripts. Such a set of scripts is also called an Automation suite. The Test team then runs these
directory tcl/bin/, Python package management is Easy_install and Pip, Tcl's package management tool is teacupThis problem occurs1C:\windows\system32>Teacup.exe Install Expect2Resolving Expect ... Not foundinchThe archives.3 4While a more fuzzy search disregarding Caseand accepting5 substrings was did, we is sorry to say that it yielded no possible6Candidates forinstallation either.7 8 Questions to consider:9Have you spelled the name correctly?Tenincluding the proper Caseof characters? One ANo
Monkeyrunner script, this undoubtedly poured a basin of cold water AH ~ ~There is no way to have their own efforts, Emperor not bear it ~ ~ Suddenly think of Monkeyrunner script in execution, is monkeyrunner+ script execution way, is not I add monkeyrunner.bat to the Python interpreter is good, say try to try.1. Open Windows->preferences->python Interpreter, 2. Select New,interpreter name, interpreter executable find the Monkeyrunner.bat file, and then select OK.3. In this case, point proceed
. If you do not add "start/b", start the Appium service and stay in the Appium log state, will not return to execute the subsequent Python script.Third, stop Appium serviceWhen the use case finishes, close the current Appium service. The implementation is that the Python script calls bat to close the Appium service. The Python script passes the port of the Appium server into the bat, the bat script obtains its process PID based on the port number, and then gets the app name and closes through Ta
( Env.software_zabbix_url.split ('/') [ -1][0:-7]): local ("./configure--prefix=%s--enable-server--enable-agent--with-mysql --with-net-snmp--with-libcurl "%env.software_make_ Path) local ("make Makeinstall ") #使用nginx的默认路径, You can modify the local yourself ("Cp-rfrontends /php/%s/zabbix "%env.project_html_path) local ("cpmisc/init.d/fedora/core/*/etc/init.d/") local ("chmod+x/etc/init.d/zabbix_* Chkconfig--addzabbix_server ") local ("chkconfig--addzabbix_agentdchkconfigzabbix_agentd on ")
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.