Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

README.md

为swoole_server设计的远程终端

基于swoole-1.8的多协议特性实现,业务无需做任何修改,只需要加一行代码即可引入一个功能强大的远程终端。

  • 建议只监听本机127.0.0.1或局域网192.168.1.100

注册Shell到swoole_server对象

RemoteShell::listen($serv, '127.0.0.1', 9599);

连接到远程终端

htf@htf-All-Series:~/workspace/proj/remote-shell/tests$ telnet 127.0.0.1 9599
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
e|exec [code]	执行PHP代码
w|worker [id]	切换Worker进程
l|list	打印服务器所有连接的fd
s|stats	打印服务器状态
i|info [fd]	显示某个连接的信息
h|help	显示帮助界面
q|quit	退出终端
#2>

About

Swoole 远程调试器

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.