Download the PHP package woodynew/alicloud-config-monitor without Composer
On this page you can find all versions of the php package woodynew/alicloud-config-monitor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download woodynew/alicloud-config-monitor
More information about woodynew/alicloud-config-monitor
Files in woodynew/alicloud-config-monitor
Download woodynew/alicloud-config-monitor
More information about woodynew/alicloud-config-monitor
Files in woodynew/alicloud-config-monitor
Vendor woodynew
Package alicloud-config-monitor
Short Description The PHP SDK of Web Service.
License MIT
Package alicloud-config-monitor
Short Description The PHP SDK of Web Service.
License MIT
Please rate this library. Is it a good library?
Informations about the package alicloud-config-monitor
阿里云nacos配置监控组件
本组件是基于
neatlife/php-nacos
基础上开发而来: https://github.com/neatlife/php-nacos
- 服务参考地址:https://help.aliyun.com/product/123350.html
- nacos开发文档:https://nacos.io/zh-cn/docs/open-api.html
- 本组件可以用于laravel 框架,也可以用于非laravel框架。
- 组件运行于命令行,将阿里云账号AK,SK,host,group,nameSpaceId添加到系统环境变量中.
-
docker-compose.yml 添加方式环境变量参考:
- .env_nacos 文件记载6个配置项值(配置到生产环境服务器上):
- 前面3个是微服务参数,后面3个是生成配置的参数.
- 这些配置项的参数具体意义需要访问 https://help.aliyun.com/product/123350.html 学习一下。
安装
-
首先在项目
composer.json
文件的根节点下添加repositories
对象,组件的git地址作为源,并且优先级要高于packagist
,如: - 执行组件安装命令:
composer require alicloud/n8config-monitor
- 如果报无安装权限,则执行
composer config secure-http false
,表示关闭Https访问限制。 - 如果
guzzlehttp/guzzle
版本低于6.5
请升级composer update guzzlehttp/guzzle 6.5
- 如果报无安装权限,则执行
启用
确定配置
- 确保 ALI_MSE_AK,ALI_MSE_SK,ALI_MSE_HOST,ALI_MSE_GROUP,GROUP,ALI_MSE_NAME_SPACE_ID(非必须)已经添加到系统环境变量
- 指定配置快照文件存储目录
- 指定配置落地文件, laravel项目即,.env 文件路径
编写 console 命令
- Laravel 项目参考:
运行
进程常驻
- 建议使用
supervisor
维护进程常驻。参考:
All versions of alicloud-config-monitor with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
guzzlehttp/guzzle Version ^6.5|^7.0.0
monolog/monolog Version ^1.24|^2.0
ext-json Version *
guzzlehttp/guzzle Version ^6.5|^7.0.0
monolog/monolog Version ^1.24|^2.0
ext-json Version *
The package woodynew/alicloud-config-monitor contains the following files
Loading the files please wait ....