https://github.com/overtrue/php-multi-process-runner
基于PHP拓展PCNTL的多进程执行工具
https://github.com/overtrue/php-multi-process-runner
Last synced: 3 months ago
JSON representation
基于PHP拓展PCNTL的多进程执行工具
- Host: GitHub
- URL: https://github.com/overtrue/php-multi-process-runner
- Owner: overtrue
- License: mit
- Created: 2015-01-16T02:13:12.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-19T06:07:14.000Z (almost 11 years ago)
- Last Synced: 2025-04-04T21:12:34.054Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 172 KB
- Stars: 17
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Multi-process Runner
基于 PHP 拓展 [PCNTL](http://php.net/manual/zh/book.pcntl.php) 的多进程执行工具。
## Usage
下载 pmr 到本地
```shell
wget https://raw.githubusercontent.com/overtrue/php-multi-process-runner/master/pmr
```
添加权限
```shell
sudo chmod +x ./pmr
```
语法:
```shell
./pmr 命令 最大进程数
```
多进程运行一个 php 文件示例:
```shell
./pmr "php test.php" 50
```
开启50个进程运行 `php test.php`
## License
MIT