ubantu Jenkins 安装
时间: 2024-01-18 20:51:34 浏览: 73
你可以按照以下步骤在 Ubuntu 上安装 Jenkins:
1. 更新系统软件包列表:
```
sudo apt update
```
2. 安装 Java Development Kit (JDK):
```
sudo apt install openjdk-8-jdk
```
3. 添加 Jenkins 软件包的密钥:
```
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
```
4. 将 Jenkins 软件包存储库添加到系统源列表中:
```
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
```
5. 更新软件包列表:
```
sudo apt update
```
6. 安装 Jenkins:
```
sudo apt install jenkins
```
7. 启动 Jenkins 服务:
```
sudo systemctl start jenkins
```
8. 确认 Jenkins 服务已成功启动:
```
sudo systemctl status jenkins
```
9. 打开你的浏览器,访问 `http://your_server_ip_or_domain:8080`(将 `your_server_ip_or_domain` 替换为你的服务器 IP 地址或域名)。
10. 在浏览器中,你将被要求提供初始管理员密码。你可以通过以下命令获取密码:
```
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
```
11. 复制初始管理员密码并在浏览器中粘贴。
12. 根据提示完成 Jenkins 的安装向导。
现在,你已经成功安装了 Jenkins。你可以根据需要配置和使用 Jenkins 来进行持续集成和交付等任务。
阅读全文
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)