- PHP 5.3+
- Swoole 1.7.16
- Linux, OS X and basic Windows support (Thanks to cygwin)
-
Install via pecl
pecl install swoole
-
Install from source
sudo apt-get install php5-dev git clone https://github.com/swoole/swoole-src.git cd swoole-src phpize ./configure make && make install
1. cd swoole-vmstat/server
2. php server.php
3. 修改web目录下stats.js代码 var ws = new ReconnectingWebSocket("ws://192.168.1.10:8888"); 改成服务器的IP
4. 用浏览器打开web目录下的index.html
1. 在doc/swoole-vmstat.conf
1.github地址 https://github.com/walkor/workerman-vmstat