Ali cloud ecs a key deployment environment LNMP Tutorial

LNMP representing Linux, Nginx, MySQL, PHP. This article describes how to use Ali cloud resource scheduling service (ROS) a key deployment LNMP environment.
ROS is a free service provided by the official website of Ali cloud, without having to download and install. You can use the ROS resource stack to create JSON format template files, or create a set of Ali cloud resources using sample templates provided by ROS. In this tutorial, we will use the ROS console provides LNMP_basic templates automatically create an instance of ECS and deployment environment LNMP on the instance.
Source: Ali cloud server ECS> establishment tutorial> deploy LNMP> one-click deployment environment LNMP
Here Insert Picture Description
Enter keywords

Procedure
1. Log ROS management console.
2. In the left navigation bar, select key Help> ECS instance related information, you need to get the specifications of ECS instance, can be Zone ID (ZoneId) and mirror ID (ImageId).
3. In the left navigation bar, click the template sample.
4. From the sample templates, find LNMP_basic.
Here Insert Picture Description
5. Click the Preview button to see the JSON file template. Illustrate various top field JSON file shown in the following table.
Here Insert Picture Description
Here Insert Picture Description
6. Click Create stack.
7. Choose a specific geographical region where the drop-down box, and click Next in the lower right corner of the page. Example 2 This choice CHINA.
8. Set the stack parameters:
stack name: Set a stack name can not be repeated, and can not be modified after creation.
Create a timeout: Set a time. If the time period set in the resource success is not created, the timeout is judged. You can choose whether the failure to roll back. If you choose to roll back fails, then create any failure (including the creation of a timeout) occurs during, ROS will delete already created successful resource.
NginxDownloadUrl: Nginx download using the default address.
DBPassword and Please Confirm DBPassword: Set and confirm a password to access the MySQL database. According to the template definition, codes can only include letters and numbers.
ZoneId: Fill in the available area ID you need to create resources. See Step 2.
ImageId: Fill in the mirror ID to use when creating ECS instance. See Step 2.
DBName: Fill in MySQL database name.
DBUser: Fill in the username MySQL database.
DBRootPassword and Please Confirm DBRootPassword: Set and confirm a MySQL root account password. According to the template definition, codes can only include letters and numbers.
InstanceType: Fill ECS instance specifications you need. See Step 2.
SystemDiskCategory: Select cloud disc type, as a system disk.
InstancePassword and Please Confirm InstancePassword: Set and confirm a password instance. According to the template definition, codes can only include uppercase or lowercase letters and numbers.
Here Insert Picture Description
9. Click Create, the page will be prompted to submit the request was successful.
Here Insert Picture Description
10. In the left navigation bar, click View resource management stack state of the stack.
Here Insert Picture Description
11. Click on the name of the newly created stack view NginxWebsiteURL Outputs defined in the output portion of the open stack profile page. You can access this address LNMP create a good environment.
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/qq_43303887/article/details/90897966