教程地址:Linux
1:
sudo wget -O /etc/yum.repos.d/jenkins.repo \
https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
sudo yum upgrade
# Add required dependencies for the jenkins package
sudo yum install java-11-openjdk
sudo yum install jenkins
sudo systemctl daemon-reload
建议查看官网
启动詹金斯
您可以使用以下命令启用 Jenkins 服务以在启动时启动:
sudo systemctl enable jenkins
您可以使用以下命令启动 Jenkins 服务:
sudo systemctl start jenkins
您可以使用以下命令检查 Jenkins 服务的状态:
sudo systemctl status jenkins
如果一切设置正确,您应该会看到如下输出:
Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2018-11-13 16:19:01 +03; 4min 57s ago
...