Deployment and Maintenance / Uninstallation
This article mainly introduces how to uninstall DataFlux Func.
1. Preparation
Before uninstallation, please use the script set export function to export relevant data.
2. Uninstallation Steps
You can uninstall according to the following steps:
2.1 Stop DataFlux Func
Use docker stack to stop the running DataFlux Func.
Bash | |
---|---|
1 |
|
2.2 Delete Installation Directory
The installation directory contains the following contents:
- Configuration files
- MySQL, Redis data volumes
- Files uploaded to DataFlux Func
- Docker stack configuration files
- Database backup files
- System logs
Bash | |
---|---|
1 |
|
The default installation directory is /usr/local/dataflux-func
2.3 Delete Installation Directory Record
The installation directory record is mainly used for reinstallation or upgrades so that the installation script can retrieve the previously installed directory, avoiding the need to use the --install-dir
parameter each time.
Bash | |
---|---|
1 |
|
If you need to automatically reinstall to the same directory later, you can skip this step.
2.4 Delete logrotate Configuration
logrotate configuration is mainly used for automatically compressing and rotating logs generated by DataFlux Func to prevent excessive disk space usage.
Bash | |
---|---|
1 |
|
3. Precautions
The above steps do not include the uninstallation of docker or the cleanup of DataFlux Func images. If necessary, these can be handled separately.