Quick start -d/reload/restart/stop hyperf(~2.1.0 & ~2.2.0) server

Overview

hyperf-helper

1. quick start -d/reload/restart/stop server

2. support hyperf ~2.1.0 & ~2.2.0

3. support CentOS7+, Ubuntu 18.0.4+, macOS

4. support swoole-cli

5. support hyperf phar

install

composer require lobtao/hyperf-helper:dev-main

daemonize mode start server

php ./bin/hyperf.php server:start -d
swoole-cli -d swoole.use_shortname='Off' ./bin/hyperf.php server:start -d
php ./hyperf-skeleton.phar server:start -d

stop server,default by master pid

php ./bin/hyperf.php server:stop
swoole-cli -d swoole.use_shortname='Off' ./bin/hyperf.php server:stop
php ./hyperf-skeleton.phar server:stop

stop server by app name

php ./bin/hyperf.php server:stop -a
swoole-cli -d swoole.use_shortname='Off' ./bin/hyperf.php server:stop -a
php ./hyperf-skeleton.phar server:stop -a

stop server by port

php ./bin/hyperf.php server:stop -p
swoole-cli -d swoole.use_shortname='Off' ./bin/hyperf.php server:stop -p
php ./hyperf-skeleton.phar server:stop -p

safe reload worker&task process, default

php ./bin/hyperf.php server:reload
swoole-cli -d swoole.use_shortname='Off' ./bin/hyperf.php server:reload
php ./hyperf-skeleton.phar server:reload

safe reload task process only

php ./bin/hyperf.php server:reload -t
swoole-cli -d swoole.use_shortname='Off' ./bin/hyperf.php server:reload -t
php ./hyperf-skeleton.phar server:reload -t

view server status, default by master pid

php ./bin/hyperf.php server:status
swoole-cli -d swoole.use_shortname='Off' ./bin/hyperf.php server:status
php ./hyperf-skeleton.phar server:status

view server status by app name

php ./bin/hyperf.php server:status -a
swoole-cli -d swoole.use_shortname='Off' ./bin/hyperf.php server:status -a
php ./hyperf-skeleton.phar server:status -a

view server status by port

php ./bin/hyperf.php server:status -p
swoole-cli -d swoole.use_shortname='Off' ./bin/hyperf.php server:status -p
php ./hyperf-skeleton.phar server:status -p

restart server

php ./bin/hyperf.php server:restart
swoole-cli -d swoole.use_shortname='Off' ./bin/hyperf.php server:restart
php ./hyperf-skeleton.phar server:restart

quick shell

1. php ./bin/hyperf.php vendor:publish lobtao/hyperf-helper
2. chmod +x ./start.sh ./server.sh
3. command list
./start.sh
./server.sh start -d
./server.sh restart
./server.sh reload
./server.sh stop
./server.sh status
You might also like...
This component, based on the Symfony serializer and async-aws, is a human-readable and quick abstraction to easily store serialized objects in DynamoDB 🚀.

DynamoDB Storable This component, based on the Symfony serializer and async-aws, is a human-readable and quick abstraction to easily store serialized

ATVController for android devices running with RDM POGO ATLAS. Quick, simple and dirty add controls with a GUI view

ATVController - WIP - Much to add and fix. ATVController for android devices running with RDM POGO ATLAS. Quick, simple and dirty adb controls wit

A quick,easy and safe way of accessing Mysql-like databases from within a PHP program

Mysqli-Safe A simple, easy-to-use and secure way of accessing a Mysql database from within your PHP programs Mysqli-safe is a wrapper around the mysql

Hi Im L, I found a box that I believe it's contain Kira's real ID. for open that box we need to find three keys. let's start looking for them
Hi Im L, I found a box that I believe it's contain Kira's real ID. for open that box we need to find three keys. let's start looking for them

DeathNote ctf Description are you smart enaugh to help me capturing the three keys for open the box that contain the real ID of kira? Let's start solv

Learn how to run WordPress with Docker. Read about our experiences and start off with an easy boilerplate.
Learn how to run WordPress with Docker. Read about our experiences and start off with an easy boilerplate.

Hi! We're Dan and Jay. We're a two person team with a passion for open source products. We created Server Side Up to help share what we learn. Find us

A great Start for your next Magento Theme's local.xml file

Magento-local.xml-Template A Great Start for your next Magento Theme's local.xml file - ?xml version="1.0"? layout !-- Add/Remove Items From H

In order to use the Korean Language on your Magento 2 store, it is time to start with Magento 2 Korean Language Pack in the set of informative documentations by Mageplaza. Magento 2 Korean Language Package is published by Magento 2 Translation Project at Crowdin, so all phrases will be replaced by the Korean language according to the contribution to that project. Please following up the guides in this post to convert the language with ease! The Easiest way to start using PHP CS Fixer and PHP_CodeSniffer with 0-knowledge
The Easiest way to start using PHP CS Fixer and PHP_CodeSniffer with 0-knowledge

The Easiest Way to Use Any Coding Standard Features Blazing fast Parallel run Use PHP_CodeSniffer || PHP-CS-Fixer - anything you like 2nd run under fe

Go to block theme for Bloggers, where you can start effortlessly.

=== grigora-blocks === Contributors: latracal Tested up to: 5.9 Requires at least: 5.9 Requires PHP: 7.4 Version: 2.03.001 License: GPLv2 or later Lic

Releases(0.0.5)
Owner
lobtao
lobtao
Auto RELOAD dan "live server" untuk PHP file

PHP BrowserSync Auto Reload your Browser and PHP file ini adalah auto reload php file atau browser, jika ada perubahan di file php atau di file js dan

Reza Ola 2 Jan 14, 2022
Quick start Symfony 5 project via docker-compose

Quick Docker Symfony This repository will allow you to start a Symfony project very quickly with PostgreSQL 14, pgAdmin 4 and one of three php version

null 2 Aug 7, 2022
BroRelo - Browser Auto Refresh / Reload for Firefox, Chrome & Opera

BroRelo - Browser Auto Refresh / Reload for Firefox, Chrome & Opera Ubuntu 21.10 | Apache/2.4.48 | PHP 8.0.18 This package can reload windows regardle

eypsilon 3 Jul 27, 2022
Stop players from having spaces in their name in Pocketmin Servers.

SpaceRemover Engelish Stop players from having spaces in their name in Pocketmin Servers. Preview Help ‼ If your server does not have players with nam

Unknown Null 3 Jul 31, 2022
Simple user settings facade for Hyperf. Settings are stored as JSON in a single database column, so you can easily add it to an existing table.

hyperf-user-settings Simple user settings util for hyperf Settings are stored as JSON in a single database column, so you can easily add it to an exis

lysice 1 Oct 15, 2021
Supper quick use Aliyun OSS or Tencent COS or Qiniu Koa to get、put、delete Object.

An SDK integrating Alibaba cloud, Tencent cloud and qiniu cloud object storage

null 6 Sep 26, 2021
A quick naked theme to demonstrate how easy it is to support Gutenberg using ACF blocks

ACF Gutenberg Demo Theme A quick naked theme to demonstrate how easy it is to support Gutenberg using ACF blocks demo.mp4 Files I have found a useful

Stirtingale 1 Oct 28, 2021
Phalcon Builder - is a packaging system that make it easy and quick to build Phalcon packages such as rpms, debs, etc. Phalcon's distribution that hosted at PackageCloud.

Phalcon Builder - is a packaging system that make it easy and quick to build Phalcon packages such as rpms, debs, etc. Phalcon's distribution that hos

The Phalcon PHP Framework 26 Oct 7, 2022
BreadBooru is a light, quick, and easy to setup imageboard with themes, images, and video support

BreadBooru a bad imageboard, that has nothing to do with (dan/gel)booru, and yet still has booru in the name BreadBooru is a light, quick, and easy to

bread 2 Jan 22, 2022
Quick package/plugin/component (repo) lookup for your favourite package managers

Package Managers (Download latest release) Package Repo Search Quick package/plugin/component (repo) lookup for your favourite package managers.

will Farrell 689 Dec 27, 2022