Open content-service opened 8 years ago
run "pwd" 有时候双击会执行,大部分的时候run 是没有反应的。
![Uploading image.png…]()
这个我这边是可以执行的,你确认下是不是点击 命令->run 执行命令
还有一个可能,你换个浏览器试下
确认是走的“命令->run 执行命令 ” 我的go环境是linux 下的, 浏览器 谷歌 firefox 测试都是这个样子。
Uploading image.png… 这个图没看到
有这样的信息输出:是否有关系
2016/01/25 21:36:05 [ws.go:105] [E] websocket: close 1005
2016/01/25 21:36:05 [ws.go:83] [E] read /dev/ptmx: bad file descriptor
2016/01/25 21:36:05 [router.go:879] [C] the request url is /admin/ws
2016/01/25 21:36:05 [router.go:880] [C] Handler crashed with error can't find templatefile in the path:wscontroller/get.tpl
2016/01/25 21:36:05 [router.go:886] [C] /usr/local/go/src/runtime/asm_amd64.s:472
2016/01/25 21:36:05 [router.go:886] [C] /usr/local/go/src/runtime/panic.go:426
2016/01/25 21:36:05 [router.go:886] [C] /usr/local/go/src/github.com/astaxie/beego/controller.go:253
2016/01/25 21:36:05 [router.go:886] [C] /usr/local/go/src/github.com/astaxie/beego/controller.go:179
2016/01/25 21:36:05 [router.go:886] [C] /usr/local/go/src/github.com/astaxie/beego/router.go:810
2016/01/25 21:36:05 [router.go:886] [C] /usr/local/go/src/net/http/server.go:2017
2016/01/25 21:36:05 [router.go:886] [C] /usr/local/go/src/net/http/server.go:1464
2016/01/25 21:36:05 [router.go:886] [C] /usr/local/go/src/runtime/asm_amd64.s:1998
2016/01/25 21:36:05 http: response.WriteHeader on hijacked connection
2016/01/25 21:36:05 http: response.Write on hijacked connection
这个是偶尔成功的:大多数点run是没有反应的。
系统是redhat6.4 [root@localhost ~]# go version go version go1.6beta1 linux/amd64
这个错误没关系的 我这边go version go1.5rc1 darwin/amd64
你看下js是否报错
点击不了就是js问题了,跟go的代码没关系了
能否全量打包/usr/local/go 给我 329454530@qq.com 在完全一样的情况下看是否能点击run能输出命令。
点击run 也弹出对话框,就是命令没在对终端对话框里输出,我把go版本切换到“go1.5rc1” 还是不行。给我的感觉是点击”run“ 和点击”终端“的功能是一样的。
----------------通过查run的关联 查到了GoWebSSH.js---------------------- 感觉大多数就走了 cmdId==null 感觉并没有走 cmdId==""?"":("&cmdId="+cmdId))
我这个go是mac版本的,cmdId没有取到估计是js问题了,正常情况下点run cmdId应该是有值的,cmdId就是命令的id。我写js的时候没做过兼容测试,这个bug后续我找台其他的电脑测试看看
[root@localhost ~]# go get github.com/who246/GoWebSSH “#” github.com/who246/GoWebSSH/models gocode/src/github.com/who246/GoWebSSH/models/base.go:17: undefined: orm.DR_Sqlite
这个报错是什么?
日志: 2016/01/25 17:08:26 [router.go:854] [D] | GET | /admin/service/trim | 8.508437ms | match | /admin/service/trim | [ORM] - 2016-01-25 17:08:26 - [Queries/default] - [ OK / db.QueryRow / 0.2ms] - [SELECT
id
,create_time
,modify_time
,username
,ip
,server_name
,login_name
,login_password
FROMserver
WHEREid
= ?] -1
[ORM] - 2016-01-25 17:08:26 - [Queries/default] - [ OK / db.QueryRow / 0.1ms] - [SELECTid
,create_time
,modify_time
,cmd
,username
,name
FROMcommand
WHEREid
= ?] -1