Ŀ¼
一、安装 telnet
1、安装必要软件包
2、配置修改
二、重启服务
1、超级守护进程
2、23端口
三、启动 skynet 控制台服务
四、telnet 连接
五、skynet 命令行
一、安装 telnet
1、安装必要软件包
yum install -y memcached yum install -y telnet yum install -y telnet-server
2、配置修改
vi /etc/xinetd.d/telnet
disable = no二、重启服务
1、超级守护进程
[root@localhost /]# service xinetd restart Stopping xinetd: [ OK ] Starting xinetd: [ OK ]2、23端口
[root@localhost /]# netstat -tnlp
三、启动 skynet 控制台服务
skynet.newservice("debug_console",8000)
四、telnet 连接
[root@localhost ~]# telnet 127.0.0.1 8000 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Welcome to skynet console
五、skynet 命令行
help call call address ... clearcache clear lua code cache cmem Show C memory info debug debug address : debug a lua service exit exit address : kill a lua service gc gc : force every lua service do garbage collect help This help message info info address : get service infomation inject inject address luascript.lua kill kill address : kill service list List all the service log launch a new lua service with log logoff logoff address logon logon address mem mem : show memory status ping ping address service List unique service shrtbl Show shared short string table info signal signal address sig snax lanuch a new snax service start lanuch a new lua service stat Dump all stats task task address : show service task detail <CMD OK>
转载请标明出处:利用 telnet 调试 skynet
文章来源: 利用 telnet 调试 skynet