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.
- 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.
- Click Buy now to submit your order and make the payment as prompted.
Viewing application information
- Log in to the Lighthouse console.
- In the instance list, select the target instance created with the Node.js application image to enter its details page.
- 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.
- 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.
- 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.