Updated on 2025-08-13 GMT+08:00

Starting or Stopping Nginx

This action aims to start or stop the Nginx service in a specified path in an environment. The following table describes the configuration parameters.

Table 1 Parameters

Parameter

Description

Action Name

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

Environment

Deployment object. Select an environment whose resource type is host cluster.

Operation

Start Nginx, Reload configuration file, Stop Nginx immediately, and Quit Nginx gracefully are available.

Nginx Installation Path

Enter the installation path of the Nginx service in the target environment.

Modify configuration file before execution

Enable or disable this function based on whether to modify the Nginx configuration file on the target host.

Nginx Configuration File Path

Path of the Nginx configuration file on the target host.

Configuration File Backup Path

Target path for backing up the original Nginx configuration file on the target host.

Configuration File Content

Content of the new configuration file.

Action Control

You can configure whether to enable the settings.

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

If you encounter any problems during deployment, see Starting or Stopping Nginx.