GatewayWorker作個簡單的聊天demo

簡單的聊天demo:GatewayWorker demo來實現。php

 

1. GatewayWorker3.0.7 在CentOS7.4  PHP7.1下安裝:git

參考:http://www.workerman.net/gatewaydoc/github

最新的GatewayWorker下載:服務器

https://github.com/walkor/GatewayWorker/releasesphp7

 

2. Linux下GatewayWorker demo下載地址:測試

http://www.workerman.net/download/GatewayWorker.zip.net

須要安裝PHP posix擴展,PHP7.1須要安裝php71w-process.x86_64 命令行

yum search php71w-code

yum install -y php71w-process.x86_64ip

 

3. 解壓安裝GatewayWorker demo:

unzip GatewayWorker.zip

cd GatewayWorker

啓動GatewayWorker:

php start.php start

 

四、在命令行窗口運行 telnet 127.0.0.1 8282,輸入任意字符便可聊天(非本機測試請將127.0.0.1替換成實際ip)。注意:若是telnet超時請檢查服務器防火牆(iptables)

相關文章
相關標籤/搜索