SCMLife.com

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 3041|回复: 3

[求助] jenkins启动后,firefox无法连接

[复制链接]
发表于 2017-5-8 17:35:07 | 显示全部楼层 |阅读模式
[opzoon@localhost jenkins]$ java -jar /usr/lib/jenkins/jenkins.war &
, m: v- |( e9 Q# l$ p) _% ]" g. S[1] 7873* k- x/ |! [: o8 P+ Y" e2 ]2 X9 E
[opzoon@localhost jenkins]$ Running from: /usr/lib/jenkins/jenkins.war
- N3 d$ J3 I$ g% c0 z: E) Awebroot: EnvVars.masterEnvVars.get("JENKINS_HOME")# z0 W2 K2 @2 o7 h' p: k+ T
May 08, 2017 4:33:05 AM Main deleteWinstoneTempContents
8 F9 _( r! {* V$ S/ i& [& s- pWARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war' i5 ]; C. ^# h* e& N1 ~' l0 ~
May 08, 2017 4:33:05 AM org.eclipse.jetty.util.log.JavaUtilLog info
/ y6 `! f7 |& y3 f) CINFO: Logging initialized @1248ms
, _2 d: b8 \5 y4 nMay 08, 2017 4:33:05 AM winstone.Logger logInternal( u  V6 t* e8 \
INFO: Beginning extraction from war file
- u/ C, C  K" p8 R8 [$ p! XMay 08, 2017 4:33:05 AM org.eclipse.jetty.util.log.JavaUtilLog warn4 z% e* e' F; X, n& t
WARNING: Empty contextPath+ p- I1 j$ L' I" f7 E$ j. A
May 08, 2017 4:33:05 AM org.eclipse.jetty.util.log.JavaUtilLog info
5 K9 F5 ?" w0 q% @INFO: jetty-9.2.z-SNAPSHOT
( F$ L) X) e+ ^/ OMay 08, 2017 4:33:07 AM org.eclipse.jetty.util.log.JavaUtilLog info2 a' |8 E! G& u4 D8 D
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet, W+ I1 j- G" ]+ {* P1 j
Jenkins home directory: /home/opzoon found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
, y4 a1 j+ G  I6 s4 [, sMay 08, 2017 4:33:08 AM org.eclipse.jetty.util.log.JavaUtilLog info
) U# G9 x7 K& P6 {# {  aINFO: Started w.@2892d68{/,file:/home/opzoon/war/,AVAILABLE}{/home/opzoon/war}
) ]* A! U3 I9 N9 X+ `& z6 h) w* UMay 08, 2017 4:33:08 AM org.eclipse.jetty.util.log.JavaUtilLog info% x( }9 C1 {% p; j6 `4 T
INFO: Started ServerConnector@7674f035{HTTP/1.1}{0.0.0.0:8080}( `  h# h- _9 j0 K9 r
May 08, 2017 4:33:08 AM org.eclipse.jetty.util.log.JavaUtilLog info
9 w9 m$ j7 f/ H. xINFO: Started @4939ms
- w8 d7 a+ o1 Z2 cMay 08, 2017 4:33:08 AM winstone.Logger logInternal
/ T. Z# W1 k' H& BINFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
- t- G1 J( ]( lMay 08, 2017 4:33:10 AM jenkins.InitReactorRunner$1 onAttained
( s$ m) i5 D. N, h/ g* c$ IINFO: Started initialization  w3 t: F  \: u! P- _
May 08, 2017 4:33:10 AM jenkins.InitReactorRunner$1 onAttained
. @* z: }  ?( q% s9 Q! @INFO: Listed all plugins
4 z0 Z4 j3 a. d8 v( }1 k4 SMay 08, 2017 4:33:24 AM jenkins.InitReactorRunner$1 onAttained& z! m9 z8 v9 i1 ]% W
INFO: Prepared all plugins  }& A* @( N' P, d) B
May 08, 2017 4:33:24 AM jenkins.InitReactorRunner$1 onAttained' T  G% U) p' t7 Y& u
INFO: Started all plugins
, Y: `+ w: S' Q9 A5 lMay 08, 2017 4:33:27 AM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
) e7 Z, i/ `9 [( b+ ]7 PINFO: Failed to instantiate optional component hudson.plugins.build_timeout.operations.AbortAndRestartOperation$DescriptorImpl; skipping
7 S8 H1 U3 N: c& j! `  HMay 08, 2017 4:33:29 AM jenkins.InitReactorRunner$1 onAttained
; w% N. N. l, EINFO: Augmented all extensions
+ w# s6 M8 P' q+ R) b( T% _7 z* V/ UMay 08, 2017 4:33:29 AM jenkins.InitReactorRunner$1 onAttained
" o; o* Z; ^1 _* \0 Y0 rINFO: Loaded all jobs* l7 y: m4 t5 P+ i" v
May 08, 2017 4:33:30 AM hudson.model.AsyncPeriodicWork$1 run! p; k8 Z* @+ r+ n6 O% o" f
INFO: Started Download metadata
" Q' z3 t% E! L, \; d' TMay 08, 2017 4:33:30 AM hudson.model.AsyncPeriodicWork$1 run
2 Z  q7 h! J% D/ w3 q3 m0 Y& U& XINFO: Finished Download metadata. 17 ms6 l! X2 h5 t# h4 [
May 08, 2017 4:33:30 AM jenkins.InitReactorRunner$1 onAttained1 W) @# [: x* f
INFO: Completed initialization
$ e' B% {7 |* ^. L& V5 yMay 08, 2017 4:33:31 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh. X  F3 G8 M6 ~# j8 V# x+ A  K
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@2e03fabc: display name [Root WebApplicationContext]; startup date [Mon May 08 04:33:31 EDT 2017]; root of context hierarchy2 G$ R2 f6 k1 c/ r8 S( F1 A
May 08, 2017 4:33:31 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory0 N7 D* {& j2 A" @3 ~
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@2e03fabc]: org.springframework.beans.factory.support.DefaultListableBeanFactory@239588c5
6 C+ j. m2 P6 x8 c* R* cMay 08, 2017 4:33:31 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons' `/ B; Q! J  r/ |' M
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@239588c5: defining beans [authenticationManager]; root of factory hierarchy9 e: _: Y4 C3 X) j
May 08, 2017 4:33:31 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
$ c: z" v# I5 W4 }/ S2 @; KINFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@7766f37f: display name [Root WebApplicationContext]; startup date [Mon May 08 04:33:31 EDT 2017]; root of context hierarchy: I/ i/ |# ?2 A. _8 ?2 t
May 08, 2017 4:33:31 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory1 K! P) l3 y7 \, w$ K  W' h
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@7766f37f]: org.springframework.beans.factory.support.DefaultListableBeanFactory@5d98a310
) _4 _/ R2 P* W1 C9 [) lMay 08, 2017 4:33:31 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons0 k& g$ r; \3 Z6 L2 [+ ?9 N
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5d98a310: defining beans [filter,legacy]; root of factory hierarchy: X1 \) G* [( ?) X
May 08, 2017 4:33:36 AM hudson.WebAppMain$3 run
8 V2 a& ?! Y* S+ \INFO: Jenkins is fully up and running" G0 K2 L3 F0 y- b
( x/ b$ [* ]! k
6 p& P# u9 T/ M% x6 m
=====================
$ k( S* W: G7 t6 q执行java -jar /usr/lib/jenkins/jenkins.war & 命令后,提示jenkins is fully up and running,但是firefox通过IP地址加8080端口确无法连接,是什么原因呢, c7 x) }5 `: ]" y/ i- {

5 W( i+ j" ?4 C. N$ java -version4 ~- O5 T1 m1 T8 b" _  L
java version "1.8.0_77": W2 b2 C& Z3 J- m: P
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
+ c/ y) R: z. e2 d0 ^1 fJava HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)/ r% t* n# H1 M) k0 t
) h4 R& G5 f% z! H* v( Q7 q
$ J: H: Y9 }* v: D( X( K+ y

1 n  T% ~* Z) ?/ O
发表于 2017-5-24 10:49:26 | 显示全部楼层
没有设置环境变量JENKINS_HOME
( L% t5 u* d6 `  o' S% o2 ?
回复 支持 反对

使用道具 举报

发表于 2017-6-21 16:07:31 | 显示全部楼层
恩恩楼上回答是正确的
回复 支持 反对

使用道具 举报

发表于 2017-9-9 18:18:31 | 显示全部楼层
先查看一下 jenkins 的进程,再看看 jenkins 对应的端口号。3 \  `. @% i; v
2 \- Q8 d6 R: E
ps -ef|grep jenkins
- p8 U) K6 @/ i/ H7 {1 pps -ef|grep java" a" J1 e3 x2 y$ q2 G3 }' d

1 Z+ ]: u1 G% z2 y+ O! r查看 jenkins 进程,查看对应的端口号信息。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

SCMLife推荐上一条 /4 下一条

QQ|小黑屋|手机版|无图版|SCMLife.com ( 京ICP备06056490号-1 )

GMT+8, 2018-6-22 09:54 , Processed in 0.065027 second(s), 6 queries , Gzip On, MemCache On.

Powered by SCMLife X3.4 Licensed

© 2001-2017 JoyShare.

快速回复 返回顶部 返回列表