如何启动詹金斯?

如何启动詹金斯?

我使用的是 Ubuntu 16.04。我的 java 在这里

which java
/usr/bin/java

Next
cat /etc/init.d/jenkins
#!/bin/bash
# /etc/init.d/jenkins
# debian-compatible jenkins startup script.
# Amelia A Lewis <[email protected]>
#
### BEGIN INIT INFO
# Provides:          jenkins
# Required-Start:    $remote_fs $syslog $network
# Required-Stop:     $remote_fs $syslog $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start Jenkins at boot time
# Description:       Controls Jenkins Automation Server
### END INIT INFO

PATH=/bin:/usr/bin:/sbin:/usr/sbin

DESC="Jenkins Automation Server"
NAME=jenkins
SCRIPTNAME=/etc/init.d/$NAME

我很困惑如何启动詹金斯。从命令行

jenkins
jenkins: command not found

詹金斯的现状

sudo service jenkins status
● jenkins.service - LSB: Start Jenkins at boot time
   Loaded: loaded (/etc/init.d/jenkins; bad; vendor preset: enabled)
   Active: active (exited) since Thu 2017-06-01 12:41:37 CEST; 29min ago
     Docs: man:systemd-sysv-generator(8)

Jun 01 12:41:36 milenko-System-Product-Name systemd[1]: Starting LSB: Start Jenkins at boot time...
Jun 01 12:41:36 milenko-System-Product-Name jenkins[6944]:  * Starting Jenkins Automation Server jenkins
Jun 01 12:41:36 milenko-System-Product-Name su[6962]: Successful su for jenkins by root
Jun 01 12:41:36 milenko-System-Product-Name su[6962]: + ??? root:jenkins
Jun 01 12:41:36 milenko-System-Product-Name su[6962]: pam_unix(su:session): session opened for user jenkins by (uid=0)
Jun 01 12:41:37 milenko-System-Product-Name jenkins[6944]:    ...done.
Jun 01 12:41:37 milenko-System-Product-Name systemd[1]: Started LSB: Start Jenkins at boot time.
Jun 01 13:10:00 milenko-System-Product-Name systemd[1]: Started LSB: Start Jenkins at boot time.

为什么?

答案1

Jenkins 是一个 Web 应用程序(从显示的输出来看,它已经在您的计算机上运行)。

您可以通过 URL 访问它http://本地主机:8080假设您保留默认设置。

相关内容