Ubuntu安裝Nginx 安裝jenkins
Step 1 – Installing Nginx
sudo apt update
sudo apt install nginx
Step 2 – Adjusting the Firewall
sudo ufw app list
--------
Output
Available applications:
Nginx Full
Nginx HTTP
Nginx HTTPS
OpenSSH
As demonstrated by the output, there are three profiles available for Nginx:
- Nginx Full: This profile opens both port 80 (normal, unencrypted web traffic) and port 443 (TLS/SSL encrypted traffic)
- Nginx HTTP: This profile opens only port 80 (normal, unencrypted web traffic)
- Nginx HTTPS: This profile opens only port 443 (TLS/SSL encrypted traffic)
----
sudo ufw allow 'Nginx HTTP'
sudo ufw status
Debian/Ubuntu
安裝java
sudo apt update
sudo apt install openjdk-11-jre
java -version
安裝jenkins
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
sudo apt-get install jenkins
連線至
IP XXXX:8080
顯示密碼路徑
參考網址
https://www.jenkins.io/doc/book/installing/linux/#debianubuntu
留言
張貼留言