下载:wget https://github.com/joewalnes/websocketd/releases/download/v0.2.12/websocketd-0.2.12-linux_amd64.zip
解压:unzip websocketd-0.2.12-linux_amd64.zip //除了websocketd之外可删除。
移动:mv websocketd /usr/bin/websocketd
配置全局变量:
(1)vim /etc/profile
(2)添加:export PATH=$PATH:/usr/bin/websocketd
启动:websocketd --port=8080 (php echo.php | bash echo.sh)