โ๏ธ Deployment
Minimum Hardware Requirementsโ
- CPU: 2 cores
- Memory: 4G
- Disk Storage: 200G
- Operating System: Linux/Mac
- System Architecture: amd64/arm64
Program Dependenciesโ
APIPark
depends on MYSQL, Redis, InfluxDB
databases. Below are the required versions for these databases:
Name | Version Requirement |
---|---|
MYSQL | >=5.7.x |
Redis | >=6.2.x |
InfluxDB | >=2.6 |
Deploy APIParkโ
You can choose any of the following methods to deploy APIPark
with one click (applicable to both amd64/arm64 architectures):
One-click Deployment Script
Supported systems:
- CentOS 7.9 (representative for 7.x)
- CentOS 8.5 (representative for 8.x)
- Ubuntu 20.04
- Ubuntu 22.04
- Debian 12.4
- Alibaba Cloud Linux 3.2104
- Alibaba Cloud Linux 2.1903
Currently, only the above systems have been tested for installation. If you need one-click deployment for other systems, please submit an Issue.
Enter the one-click deployment command:
curl -sSO https://download.apipark.com/install/quick-start.sh; bash quick-start.sh
Follow the prompts to deploy. Once deployment is complete, the deployment information will be displayed as follows:
Configure InfluxDBโ
Initialize InfluxDBโ
The one-click deployment script installs the InfluxDB database by default. Upon completion, it will display the access address for InfluxDB as shown below:
- Open the InfluxDB address in a browser.
- Fill in the initialization information, including username, password, organization name, and bucket name.
Here, the Organization Name
should be apipark
, and the Bucket Name
should be apinto
.
Create API Tokensโ
InfluxDB API Tokens are tokens used for authentication and authorization, allowing users and applications to securely access InfluxDB data and functions. Their main purposes are as follows:
- Access Control: API Tokens can be used to control who can access data in the InfluxDB database. Each token can be associated with different permission levels, restricting access to specific databases, organizations, or resources.
- Read/Write Permissions: API Tokens can distinguish between read and write permissions. You can create read-only tokens, write-only tokens, or tokens with both read and write permissions, thereby controlling the operational capabilities of different users or applications.
- Secure Communication: API Tokens can work with HTTPS to ensure communication with InfluxDB is encrypted and secure, preventing unauthorized access and data breaches.
- Multi-user Management: In multi-user or multi-tenant environments, API Tokens allow for the generation of different tokens for each user or application, with permissions assigned as needed.
- Audit and Tracking: Through API Tokens, you can track which users or applications access what data at what time, facilitating logging and security audits.
- After accessing the InfluxDB browser page, select
API Tokens
.
- Generate an
All Access API Token
.
- Enter description information and click
SAVE
.
- Copy the generated
API Token
as it will be needed later for monitoring in Configure APIPark.