承接 zozo/supervisor-monitor-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zozo/supervisor-monitor-bundle

Composer 安装命令:

composer require zozo/supervisor-monitor-bundle

包简介

This Bundle provides interface to monitor supervisor server processes

关键字:

README 文档

README

This bundle provides a way to monitor supervisor process and control those states.

  • Configure multiple supervisor server services.
  • Start, Stop, Restart individual or all services.

Config

  1. Enable the bundle on config/bundles.php

  2. Configure the bundle

    # config/packages/zo_supervisor_monitor.yaml
    
    zo_supervisor_monitor:
        servers:
            local:
                host: http://localhost
                port: 9001
                username: null
                password: null
            test:
                host: http://localhost
                port: 9001
                username: null
                password: null
    
    
  3. Register routes for bundles

    	# config/routes.yaml
    
    	zo_supervisor_monitor:
    	    resource: "@ZOSupervisorMonitorBundle/Resources/config/routing.yml"
    	    prefix:   /supervisor/
    
    
  4. Set Container

        # config/services.yaml
    
       ZO\Bundle\SupervisorMonitorBundle\Controller\MonitorController:
         calls:
             - method: setContainer
               arguments: [ '@service_container' ]
    
    

Find the supervisor monitor page at /supervisor/monitor.

Widget

  1. Supervisor client is exposed as service zo_supervisor_monitor.util.client.
  2. Supervisor configured servers process information can be fetched as,
    	$client = $this->container->get('zo_supervisor_monitor.util.client');
    	$res = $this->client->getServersListVersion();
    	// $res = array('services' => $services, 'version' => $version);
    
  3. Supervisor monitor view can be found at ZOSupervisorMonitorBundle::services.html.twig. Remember to pass services and version variable to the view.

统计信息

  • 总下载量: 228
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固