Git Product home page Git Product logo

tz's Introduction

Waring: Not support PHP 8.x due to workerman 3.x version not support it.

基于workerman的雅黑探针

实用功能:

系统服务器实时数据网络使用状况
Linux
Windows总流量
Freebsd×
OpenWRT/LEDE
Android

install requirement

Alpine Linux 3.18:

apk update
apk add git composer php7 php7-posix php7-pcntl php7-session php7-json

Ubuntu 20.04:

apt update
apt install php7.4-cli php7.4-curl composer -y

Fedora 37:

dnf update
dnf install php-cli php-json composer

Debian 11:

apt update
apt-get install php7.4-cli composer git

Debian 8.11:

apt update
apt-get install curl php5-cli php5-json git # Debian 8.11
php -r "copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');"
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer

Ubuntu 18.04:

apt install php7.2-cli php7.2-json composer git -y #

Then do:

git clone https://github.com/wwng2333/tz.git
cd tz
composer install
php tz.php start
<?php
use Workerman\Worker;
require_once __DIR__ . '/vendor/autoload.php';

#Worker::$stdoutFile = 'tz.log'; //日志,默认禁用
$http_worker = new Worker("http://0.0.0.0:2345"); //监听地址
$http_worker->name = 'Proberv'; //实例名称
$http_worker->user = 'root'; //以哪个用户运行
$http_worker->count = 3; //子进程数量

tz's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.