tencent cloud

All product documents
Tencent Cloud Lighthouse
Building Node.js Development Environment
Last updated: 2022-06-16 16:42:25
Building Node.js Development Environment
Last updated: 2022-06-16 16:42:25

Overview

Node.js is an event-driven I/O server-side JavaScript environment based on the Chrome V8 engine. Fast and powerful, it can be used to build all kinds of web applications and work as the backend service environment for mini programs.
Note:
In the following example, we use the Node.js application image, which is based on CentOS 8.2 64-bit. Note that application images are subject to updates from time to time, and the actual image information on the purchase page shall prevail.

Directions

1. Log in to the Lighthouse console and configure the following parameters:
Region and Availability zone: Select the region and AZ near your target users to reduce the network latency and improve their access speed.
Image: Select the Node.js application image.
Instance bundle: Select an instance bundle according to the required instance configuration (including CPU, memory, system disk, bandwidth, and monthly traffic).
Instance name: Enter a custom instance name. If it is left empty, the selected image name will be used as the name by default. When multiple instances are created in a batch, their names will be consecutive with auto-incrementing suffixes. For example, if you enter "LH" as the name and select 3 as the quantity, 3 instances "LH1", "LH2", and "LH3" will be created.
Purchase period: One month by default.
Quantity: One instance by default.
2. Click Buy now to submit your order and make the payment as prompted.

Relevant Operations

Viewing application information

1. Log in to the Lighthouse console.
2. In the instance list, select the target instance created with the Node.js application image to enter its details page.
3. Select the Pre-installed application tab to enter the application details page.

You can view the configuration items of pre-installed applications.
Node.js and NGINX software installation paths.
The npm and npx paths of Node.js, and the primary configuration file path of NGINX.

Using FTP tool to upload code and debug

1. Log in to the instance created with the Node.js application image. Set up the FTP service as instructed in Building FTP Service using Linux Instance.
2. Use an FTP tool (such as WinSCP) on your local computer to upload your website code to the instance and test and debug the service.

Enabling HTTPS access

You can install an SSL certificate and enable HTTPS access for your website. See Installing Certificate on NGINX Server.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon