Today, try installing the hyperf microservice framework
Alibaba cloud ACM is selected when installing the service
The console keeps making such mistakes
[ERROR] Client error: `GET http://139.196.135.144:8080/diamond-server/config.co?tenant=&dataId=&group=DEFAULT_GROUP` resulted in a `404 Not Found` response: config data not exist [line:113] in /www/hyperf/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
Solution:
Modify the configuration in hyperf/config/autoload/config_center.php in the project root directory
return [
'enable' => (bool) env('CONFIG_CENTER_ENABLE', false), // set to false
'driver' => env('CONFIG_CENTER_DRIVER', 'aliyun_acm'),
'mode' => env('CONFIG_CENTER_MODE', Mode::PROCESS),
'drivers' => [
'aliyun_acm' => [
'driver' => Hyperf\ConfigAliyunAcm\AliyunAcmDriver::class,
'interval' => 5,
'endpoint' => env('ALIYUN_ACM_ENDPOINT', 'acm.aliyun.com'),
'namespace' => env('ALIYUN_ACM_NAMESPACE', ''),
'data_id' => env('ALIYUN_ACM_DATA_ID', ''),
'group' => env('ALIYUN_ACM_GROUP', 'DEFAULT_GROUP'),
'access_key' => env('ALIYUN_ACM_AK', ''),
'secret_key' => env('ALIYUN_ACM_SK', ''),
'ecs_ram_role' => env('ALIYUN_ACM_RAM_ROLE', ''),
],
],
];
Or the zone applies for Alibaba cloud ACM, and it is OK to fill in the relevant configuration successfully. It is recommended to close it in the development stage
Read More:
- How to Solve Application failed to start error
- How to Solve Rabbitmq Error: Failed to start RabbitMQ broker
- How to Solve Error: could not read ok from ADB Server.failed to start daemon error: cannot connect to daemon
- How to Solve Error while executing: am start -n
- How to Solve “License Manager Error -8” Error After MATLAB2018a is Installed
- How to Solve Logstash error: failed to execute action
- How to Solve elasticsearch root user start Error
- How to Solve Ogg start error message ogg-00014
- [Solved] Springboot project Create to start Error: APPLICATION FAILED TO START
- Error while trying to run project:unable to start debugging.the debugger is not properly installed. run setup to install or repa
- How to Solve hadoop3.x.x sh start-dfs.sh Startup Error
- How to Solve Error: Heartbeating to master:7182 failed.
- How to Solve Error: Failed to load ApplicationContext
- [Solved] docker failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition
- How to Solve Error: failed to load response
- How to Solve NPM update check failed Error
- How to Solve Springboot Error: Failed to convert value of type
- How to Solve Docker failed to initialize Error
- How to Solve Loadrunner Error: Failed to find .cfg file
- How to Solve Clickhouse restart error: Cannot obtain value of path from config file…