Updated on 2024-05-10 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 shows the configuration.

Table 1 Parameters

Parameter

Description

Action Name

Name of an action displayed in the deployment actions area.

Environment

Target environment.

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

  • Enable this action.
  • Continue the task even if this action fails.
  • Execute this action with the sudo permission.

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