简体   繁体   English

无法在Redhat上启动詹金斯

[英]Unable to start jenkins on redhat

I dowloaded and installed jenkins with the following commands on redhat (3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux) 我在redhat上使用以下命令下载并安装了jenkins(3.10.0-327.el7.x86_64#1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU / Linux)

sudo wget  https://pkg.jenkins.io/redhat-stable/jenkins-2.32.2-1.1.noarch.rpm
rpm -ivh jenkins-2.32.2-1.1.noarch.rpm

And I started jenkins with the command 然后我用命令启动了詹金斯

sudo service jenkins start

I got the output 我得到了输出

Starting jenkins (via systemctl):                          [  OK  ]

But jenkins is not running. 但是詹金斯没有参加比赛。 I tried ps ax | 我试过ps ax | grep -i jenkins and no process named jenkins is running. grep -i jenkins,并且没有名为jenkins的进程正在运行。 I tried service --status-all and i can't see jenkins. 我尝试了service --status-all ,但看不到詹金斯。 I tried to access ip:8080 which is also not showing anything. 我尝试访问ip:8080,它也没有显示任何内容。 But with systemctl status jenkins.service I can see that it started 但是通过systemctl status jenkins.service我可以看到它已经开始

  ● jenkins.service - LSB: Jenkins Continuous Integration Server
   Loaded: loaded (/etc/rc.d/init.d/jenkins)
   Active: active (exited) since Fri 2017-02-10 16:07:42 EST; 2min 7s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 16649 ExecStop=/etc/rc.d/init.d/jenkins stop (code=exited, status=0/SUCCESS)
  Process: 16672 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=0/SUCCESS)

Feb 10 16:07:42 AWSINTDEV11.equinoxfitness.com systemd[1]: Starting LSB: Jenkins Continuous Integration Server...
Feb 10 16:07:42 AWSINTDEV11.equinoxfitness.com runuser[16673]: pam_unix(runuser:session): session opened for user jenkins by (uid=0)
Feb 10 16:07:42 AWSINTDEV11.equinoxfitness.com jenkins[16672]: Starting Jenkins [  OK  ]
Feb 10 16:07:42 AWSINTDEV11.equinoxfitness.com systemd[1]: Started LSB: Jenkins Continuous Integration Server.

For future reference and those who doesn't bother to read the comments. 供以后参考,以及那些不介意阅读评论的人。 Besides checking the system logs you should check the Jenkins log, which on most *nix systems is located in /var/log/jenkins/jenkins.log . 除了检查系统日志之外,您还应该检查Jenkins日志,该日志在大多数* nix系统上位于/var/log/jenkins/jenkins.log In this case it was insufficient permissions to /var/libs/jenkins . 在这种情况下,对/var/libs/jenkins权限不足。

BTW, If you can't find any errors in that log either, then you probably have some sort of ip-table issue where the Jenkins server can't be accessed from the outside. 顺便说一句,如果您在该日志中也找不到任何错误,则可能是某种IP表问题,导致无法从外部访问Jenkins服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM