Deploy Python+django project with NGINX+UWSGI on Amazon Cloud Server full version (i)--Cloud server application and configuration

Source: Internet
Author: User

I. Pre-conditions

1, can be connected to the outside network (the local area belongs to the LAN does not open the external network)

2. A credit card that can be traded in foreign currency (I use the CMB credit card)

Second, the process

1, Baidu Amazon Cloud Server, access to the official website;

2. Registered Account

3, binding credit card, Brush $1.00 authorization

。。。 The process steps step by step

Iii. Creating an instance

1. Go to the console and click on the top left corner service-Calculate-EC2

2. Click Create Instance

3, choose the free server, the next step, to the storage of the time the highest optional 30G

4, the last boot time, will be prompted to bind the security key, the new user chose to create a new key, name and click to download

Iv. Configuration

1, security group, (in order to make the subsequent deployment of the server can be accessed by the extranet), click on the left security group, the new user should have only one default security group, right click Edit Inbound Rules, click Add Rule, add TCP rule by default, port range 0-9000, source Select any IP, followed by auto-populate, Click Save.

2, Elastic IP, (in order to make subsequent remote connection server convenient), the role is fixed IP, click Assign new address, after allocation right click to select the associated address, in the popup page select the associated instance, click the instance, the private IP can select an existing instance, click Save.

V. Connecting to a remote server

1, the Mac Terminal Connection, open the Terminal command, navigate to the file directory where the key is stored, follow the steps shown in https://www.cnblogs.com/wendaobiancheng/p/9042425.html

2, Pycharm Connect, click Tools-deployment-configuration,

Set type to SFTP

SFTP Host: for IP address

Port:22

Username Server user name (reference document https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html according to your server type)

Auth Type:key Pair

Private key file: Key path

After the configuration, click Test, if the test is successful, click OK to save

3, win connection, use Putty, please search the documents on the Internet by yourself.

Deploy Python+django project with NGINX+UWSGI on Amazon Cloud Server full version (i)--Cloud server application and configuration

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.