我尝试在 Amazon Linux 实例上安装 Jenkins 并收到如下错误

问题描述 投票:0回答:1

我尝试在 Amazon Linux 实例上安装 Jenkins 并收到错误:

Job for jenkins.service failed because the control process exited with error code.
See “systemctl status jenkins.service” and “journalctl -xeu jenkins.service” for details.
Created symlink /etc/systemd/system/multi-user.target.wants/jenkins.service → /usr/lib/systemd/system/jenkins.service.
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; preset: disabled)
Active: activating (start) since Wed 2024-04-17 07:50:35 UTC; 4ms ago
Main PID: 27761 (jenkins)
Tasks: 2 (limit: 1114)
Memory: 532.0K
CPU: 3ms
CGroup: /system.slice/jenkins.service
├─27761 /bin/sh /usr/bin/jenkins
└─27768 “[jenkins]”

Apr 17 07:50:35 ip-172-31-15-220.us-west-1.compute.internal systemd[1]: Starting jenkins.service - Jenkins Continuous Integration Server…

我使用的Linux脚本是:

cd /opt/
sudo yum update –y
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io-2023.key
sudo yum install jenkins -y
systemctl daemon-reload
sudo systemctl start jenkins
sudo systemctl enable jenkins
systemctl status jenkins

在解决这个问题上有任何帮助可以帮助我在 DevOps 学习中取得进步吗

我正在尝试安装 Jenkins 以继续安装 Kubernetes,因为端口:8080 似乎已停用。

linux amazon-web-services maven kubernetes jenkins
1个回答
0
投票

验证您是否安装了 java (

java --version
),因为 Jenkins 需要 java。

直接运行 Jenkins 以更好地理解错误。

/usr/bin/jenkins
© www.soinside.com 2019 - 2024. All rights reserved.