How does Linux install Jenkins on an Ubuntu system server? [Detailed tutorial]

1. Update Ubuntu package list
```
sudo apt-get update
```
2. Install Java runtime environment
```
sudo apt-get install openjdk-8-jdk
```
3. Import Jenkins GPG key
```
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
```
4. Add Jenkins package repository
```
sudo sh -c ' echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
```
5. Update Ubuntu package list
```
sudo apt-get update
```
6. Install Jenkins
```
sudo apt-get install jenkins
```
7. Start Jenkins service
```
sudo systemctl start jenkins
```
8. Check the Jenkins service status```
sudo
systemctl status jenkins
```
9. Access the Jenkins management interface through a browser: http://<your server IP or domain name>:8080/
10. Follow the prompts to complete Jenkins Initial setup, including creating an administrator account and installing recommended plugins.
11. Perform necessary configurations, such as configuring the mail server, etc.
```

Note: If there is a firewall on the server, access to port 8080 needs to be opened.
```

The server adopts high-end five-network CN2 GIA/GT network with stable bandwidth, fast speed and low delay, which provides strong support for customers' business expansion on a global scale.

For more details, please visit Lan Yiyun's official website: www.tsyvps.com

The CN2 network of Hong Kong's five networks  has excellent domestic speed and supports functions such as VPC intranet interconnection, snapshots, and backups.

China Mobile + China Unicom + China Telecom + Education Network + Radio and Television - Five Network CN2 - ultra-low latency!

Guess you like

Origin blog.csdn.net/tiansyun/article/details/130004243