Updated on 2025-04-29 GMT+08:00

Starting or Stopping Node.js

This action aims to start or stop the Node.js service based on a specified path in a host. The following figure shows the configuration page.

Table 1 Parameters

Parameter

Description

Action Name

Customized action name displayed in the deployment actions Enter 1 to 128 characters. Do not start or end with a space. Use letters, digits, spaces, and these special characters: -_,;:./()

Environment

Select a host cluster as the deployment object.

Operation

Start and Stop are available.

Absolute Path

Path of the Node.js service.

Command Parameters

Optional.

  • The Node.js running parameters refer to the parameters of application.
  • If you choose Start for Operation, you can configure parameters, such as the listening port of Node.js to start Node.js.

Action Control

You can configure whether to enable this setting.

  • Keep running on failure: whether to continue the task even if this action fails.
  • Execute this action with the sudo permission: whether to use the sudo permission to deploy this action.

If you encounter any problem during deployment, see Solutions to Common Problems.