我在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
我用命令
开始jenkinssudo service jenkins start
我得到了输出
Starting jenkins (via systemctl): [ OK ]
但詹金斯没有跑步。
我试过ps ax | grep -i jenkins并没有名为jenkins的进程正在运行。
我试过service --status-all
但我看不到詹金斯。
我试图访问ip:8080,它也没有显示任何内容。
但是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.
答案 0 :(得分:0)
供将来参考,以及那些不想阅读评论的人。除了检查系统日志之外,您还应该检查Jenkins日志,该日志在大多数* nix系统上都位于/var/log/jenkins/jenkins.log
。在这种情况下,对/var/libs/jenkins
的权限不足。
顺便说一句,如果你在该日志中找不到任何错误,那么你可能会遇到某种类型的ip-table问题,无法从外部访问Jenkins服务器。