NutzCN Logo
问答 nutz版本的ngrok 安装配置文档
发布于 104天前 作者 menglinxi 169 次浏览 复制 上一个帖子 下一个帖子
标签:

求 nutz版本的 ngrok 安装配置文档。git的 readme,不够详细。无法部署成功。

4 回复
[root@localhost ngrok]# make
go fmt ngrok/...
src/ngrok/server/control.go
GOOS="" GOARCH="" go get github.com/jteeuwen/go-bindata/go-bindata
bin/go-bindata -nomemcopy -pkg=assets -tags=debug \
		-debug=true \
		-o=src/ngrok/client/assets/assets_debug.go \
		assets/client/...
bin/go-bindata -nomemcopy -pkg=assets -tags=debug \
		-debug=true \
		-o=src/ngrok/server/assets/assets_debug.go \
		assets/server/...
go get -tags 'debug' -d -v ngrok/...
github.com/inconshreveable/mousetrap (download)
github.com/rcrowley/go-metrics (download)
Fetching https://gopkg.in/yaml.v1?go-get=1
Parsing meta tags from https://gopkg.in/yaml.v1?go-get=1 (status code 200)
get "gopkg.in/yaml.v1": found meta tag main.metaImport{Prefix:"gopkg.in/yaml.v1", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v1"} at https://gopkg.in/yaml.v1?go-get=1
gopkg.in/yaml.v1 (download)
github.com/inconshreveable/go-vhost (download)
github.com/alecthomas/log4go (download)
github.com/nsf/termbox-go (download)
github.com/mattn/go-runewidth (download)
github.com/gorilla/websocket (download)
Fetching https://gopkg.in/redis.v3?go-get=1
Parsing meta tags from https://gopkg.in/redis.v3?go-get=1 (status code 200)
get "gopkg.in/redis.v3": found meta tag main.metaImport{Prefix:"gopkg.in/redis.v3", VCS:"git", RepoRoot:"https://gopkg.in/redis.v3"} at https://gopkg.in/redis.v3?go-get=1
gopkg.in/redis.v3 (download)

卡这里不动了。。。

这个是golang写的, 要翻墙编译, java版的在这里 https://github.com/nutzam/nutzmore/tree/master/nutz-plugins-ngrok

ok。。折腾java版本的去。

18-01-15 15:43:16.352 INFO [main] Select SystemLog as Nutz.Log implement
18-01-15 15:43:16.484 DEBUG [main] config key=srv_host value=17sy8.cn
18-01-15 15:43:16.698 DEBUG [main] config key=ssl_jks_path value=17sy8.cn.jks
18-01-15 15:43:16.699 DEBUG [main] config key=redis value=true
18-01-15 15:43:16.795 DEBUG [main] Using 95 castor for Castors
18-01-15 15:43:16.798 DEBUG [main] config key=webadmin_password value=sss
2018-01-15 15:43:16.838:INFO::main: Logging initialized @653ms to org.eclipse.jetty.util.log.StdErrLog
2018-01-15 15:43:17.184:INFO:oejs.Server:main: jetty-9.4.z-SNAPSHOT, build timestamp: 2017-11-22T05:27:37+08:00, git hash: 82b8fb23f757335bb3329d540ce37a2a2615f0a8
18-01-15 15:43:17.273 INFO [main] NutFilter[org.nutz.mvc.NutFilter-7e0b0338] starting ...
18-01-15 15:43:17.398 DEBUG [main] Locations count=2 time use 114ms
18-01-15 15:43:17.402 INFO [main] [loc=/data/ngrok/webadmin/WEB-INF/classes]not exist
18-01-15 15:43:17.408 DEBUG [main] Locations count=3 time use 8ms
18-01-15 15:43:17.473 DEBUG [main] Loading by class org.nutz.mvc.impl.NutLoading
18-01-15 15:43:17.476 INFO [main] Nutz Version : 1.r.65-SNAPSHOT 
18-01-15 15:43:17.476 INFO [main] Nutz.Mvc[org.nutz.mvc.NutFilter-7e0b0338] is initializing ...
18-01-15 15:43:17.476 DEBUG [main] Web Container Information:
18-01-15 15:43:17.519 DEBUG [main]  - Default Charset : UTF-8
18-01-15 15:43:17.524 DEBUG [main]  - Current . path  : /data/ngrok/.
18-01-15 15:43:17.525 DEBUG [main]  - Java Version    : 1.8.0_11
18-01-15 15:43:17.526 DEBUG [main]  - File separator  : /
18-01-15 15:43:17.526 DEBUG [main]  - Timezone        : Asia/Shanghai
18-01-15 15:43:17.527 DEBUG [main]  - OS              : Linux amd64
18-01-15 15:43:17.528 DEBUG [main]  - ServerInfo      : jetty/9.4.z-SNAPSHOT
18-01-15 15:43:17.529 DEBUG [main]  - Servlet API     : 3.1
18-01-15 15:43:17.529 DEBUG [main]  - ContextPath     : 
18-01-15 15:43:17.530 DEBUG [main]  - context.tempdir : null
18-01-15 15:43:17.531 DEBUG [main]  - MainModule      : org.nutz.plugins.ngrok.server.netty.NgrokWebAdmin
18-01-15 15:43:17.533 DEBUG [main] >> app.root = /data/ngrok/webadmin
18-01-15 15:43:17.546 DEBUG [main] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*anno", "org.nutz.plugins.ngrok.server.netty"],init=[])
18-01-15 15:43:17.569 INFO [main]  > scan 'org.nutz.plugins.ngrok.server.netty'
18-01-15 15:43:17.577 DEBUG [main] Found 11 resource by src( org/nutz/plugins/ngrok/server/netty/ ) , regex( ^.+[.]class$ )
18-01-15 15:43:17.587 INFO [main]    > add 'ngrokNettyServer                        ' - org.nutz.plugins.ngrok.server.netty.NgrokNettyServer
18-01-15 15:43:17.589 INFO [main]    > add 'ngrokWebAdmin                           ' - org.nutz.plugins.ngrok.server.netty.NgrokWebAdmin
18-01-15 15:43:17.605 INFO [main] ... NutIoc init complete
18-01-15 15:43:17.609 INFO [main] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
18-01-15 15:43:17.615 DEBUG [main] beetl init ....
18-01-15 15:43:17.621 DEBUG [main] no custom RESOURCE_LOADER found , select WebAppResourceLoader
18-01-15 15:43:17.622 DEBUG [main] no custom DIRECT_BYTE_OUTPUT found , set to true
18-01-15 15:43:17.684 DEBUG [main] beetl init complete
18-01-15 15:43:17.686 DEBUG [main] @Views(BeetlViewMaker.class,DefaultViewMaker.class)
18-01-15 15:43:17.692 DEBUG [main] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
18-01-15 15:43:17.703 DEBUG [main] module class location 'file:/data/ngrok/nutz-plugins-ngrok.jar'
18-01-15 15:43:17.704 DEBUG [main]  > scan 'org.nutz.plugins.ngrok.server.netty'
18-01-15 15:43:17.707 DEBUG [main] Found 11 resource by src( org/nutz/plugins/ngrok/server/netty/ ) , regex( ^.+[.]class$ )
18-01-15 15:43:17.710 DEBUG [main]    >> add 'org.nutz.plugins.ngrok.server.netty.NgrokWebAdmin'
18-01-15 15:43:17.711 DEBUG [main] Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
18-01-15 15:43:17.730 INFO [main] Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
18-01-15 15:43:17.738 DEBUG [main] Get 'ngrokWebAdmin'<interface org.nutz.mvc.ActionFilter>
18-01-15 15:43:17.740 DEBUG [main] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
18-01-15 15:43:17.741 DEBUG [main] 	 >> Load definition name=ngrokWebAdmin
18-01-15 15:43:17.742 DEBUG [main] Found IocObject(ngrokWebAdmin) in AnnotationIocLoader(packages=[org.nutz.plugins.ngrok.server.netty])
18-01-15 15:43:17.743 DEBUG [main] 	 >> Make...'ngrokWebAdmin'<interface org.nutz.mvc.ActionFilter>
18-01-15 15:43:17.744 DEBUG [main] Save object 'ngrokWebAdmin' to [app] 
18-01-15 15:43:17.747 DEBUG [main] Load class org.nutz.plugins.ngrok.server.netty.NgrokWebAdmin without AOP
18-01-15 15:43:17.774 DEBUG [main] name=server not found, search for type=org.nutz.plugins.ngrok.server.netty.NgrokNettyServer
18-01-15 15:43:17.775 DEBUG [main] Found IocObject(ngrokNettyServer) in AnnotationIocLoader(packages=[org.nutz.plugins.ngrok.server.netty])
18-01-15 15:43:17.775 DEBUG [main] Get 'ngrokNettyServer'<class org.nutz.plugins.ngrok.server.netty.NgrokNettyServer>
18-01-15 15:43:17.778 DEBUG [main] 	 >> Load definition name=ngrokNettyServer
18-01-15 15:43:17.779 DEBUG [main] Found IocObject(ngrokNettyServer) in AnnotationIocLoader(packages=[org.nutz.plugins.ngrok.server.netty])
18-01-15 15:43:17.779 DEBUG [main] 	 >> Make...'ngrokNettyServer'<class org.nutz.plugins.ngrok.server.netty.NgrokNettyServer>
18-01-15 15:43:17.780 DEBUG [main] Save object 'ngrokNettyServer' to [app] 
18-01-15 15:43:17.783 DEBUG [main] Load class org.nutz.plugins.ngrok.server.netty.NgrokNettyServer without AOP
18-01-15 15:43:17.793 INFO [main] Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
18-01-15 15:43:17.829 DEBUG [main]    '/ngrokd/client/kill'       >> (NgrokWebAdmin.java:96).kill          : Object     | @Ok(json:full) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
18-01-15 15:43:17.835 DEBUG [main] Get 'ngrokWebAdmin'<interface org.nutz.mvc.ActionFilter>
18-01-15 15:43:17.859 DEBUG [main]    '/adminlte/page/?/?'        >> (NgrokWebAdmin.java:109).page         : void       | @Ok(beetl:/adminlte/${pathargs[0]}/${pathargs[1]}.html) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
18-01-15 15:43:17.867 DEBUG [main] Get 'ngrokWebAdmin'<interface org.nutz.mvc.ActionFilter>
18-01-15 15:43:17.868 DEBUG [main]    '/admin/hotplug/list'       >> (NgrokWebAdmin.java:119).hotplugList  : Object     | @Ok(json ) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
18-01-15 15:43:17.876 DEBUG [main] Get 'ngrokWebAdmin'<interface org.nutz.mvc.ActionFilter>
18-01-15 15:43:17.879 DEBUG [main]    '/', '/index'               >> (NgrokWebAdmin.java:114).index        : void       | @Ok(beetl:/adminlte/index.html) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
18-01-15 15:43:17.883 DEBUG [main] Get 'ngrokWebAdmin'<interface org.nutz.mvc.ActionFilter>
18-01-15 15:43:17.894 DEBUG [main]    '/ngrokd/client/query'      >> (NgrokWebAdmin.java:67).query         : Object     | @Ok(json:full) @Fail(http:500) | by 1 Filters | (I:UTF-8/O:UTF-8)
18-01-15 15:43:17.895 INFO [main] Found 5 module methods
18-01-15 15:43:17.896 DEBUG [main] @Localization not define
18-01-15 15:43:17.897 INFO [main] Setup application...
18-01-15 15:43:17.898 DEBUG [main] Get 'ngrokWebAdmin'<interface org.nutz.mvc.Setup>
18-01-15 15:43:17.899 DEBUG [main] Save object 'conf' to [app] 
18-01-15 15:43:17.899 DEBUG [main] Get 'conf'<>
18-01-15 15:43:17.900 INFO [main] Nutz.Mvc[org.nutz.mvc.NutFilter-7e0b0338] is up in 368ms
2018-01-15 15:43:17.902:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@1e730495{/,file:///data/ngrok/webadmin/,AVAILABLE}
18-01-15 15:43:17.905 DEBUG [ngrok.server] using redis auth provider
2018-01-15 15:43:17.971:INFO:oejs.AbstractConnector:main: Started ServerConnector@2ccb46c{HTTP/1.1,[http/1.1]}{0.0.0.0:9081}
2018-01-15 15:43:17.971:INFO:oejs.Server:main: Started @1786ms
18-01-15 15:43:18.222 DEBUG [qtp940553268-10] Found mapping for [GET] path=/ : NgrokWebAdmin.index(NgrokWebAdmin.java:114)
18-01-15 15:43:18.223 DEBUG [qtp940553268-10] Get 'ngrokWebAdmin'<class org.nutz.plugins.ngrok.server.netty.NgrokWebAdmin>
18-01-15 15:43:18.242 DEBUG [ngrok.server] try to load Java KeyStore File ...
18-01-15 15:43:18.244 DEBUG [ngrok.server] load jks from 17sy8.cn.jks
18-01-15 15:43:18.263 INFO [main] Server is up!
18-01-15 15:43:18.263 INFO [main] Create admin port at 9082
18-01-15 15:43:18.272 INFO [main] Local socket is up at :9082 with 1 action ready
18-01-15 15:43:18.273 DEBUG [main] Waiting for new socket
18-01-15 15:43:18.395 DEBUG [ngrok.server] start Contrl Port=4443
18-01-15 15:43:18.479 DEBUG [ngrok.server] start Contrl Port=4443 OK.
18-01-15 15:43:18.479 DEBUG [ngrok.server] start Http Port=9080
18-01-15 15:43:18.481 DEBUG [ngrok.server] start Http Port=9080 OK.
18-01-15 15:45:04.627 DEBUG [qtp940553268-16] Found mapping for [GET] path=/ : NgrokWebAdmin.index(NgrokWebAdmin.java:114)
18-01-15 15:45:04.627 DEBUG [qtp940553268-16] Get 'ngrokWebAdmin'<class org.nutz.plugins.ngrok.server.netty.NgrokWebAdmin>

Socket error Event: 32 Error: 10053.
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(ngrok) at 15:49:46.
添加回复
请先登陆
回到顶部