Cài đặt hệ thống CD (Phân phối liên tục), Jenkins. | |
[1] | Cài đặt OpenJDK 8, tham khảo tại đây. |
[2] | Cài đặt và khởi động Jenkins. |
# get Jenkins official repository [root@dlp ~]# cd /etc/yum.repos.d [root@dlp yum.repos.d]# curl -O https://pkg.jenkins.io/redhat-stable/jenkins.repo
# get GPG key and install Jenkins [root@dlp yum.repos.d]# rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key [root@dlp yum.repos.d]# yum -y install jenkins
systemctl start jenkins [root@dlp yum.repos.d]# systemctl enable jenkins jenkins.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig jenkins on |
[3] | Nếu Tường lửa đang chạy, hãy cho phép các cổng dịch vụ. |
[root@dlp ~]# firewall-cmd --add-port=8080/tcp --permanent success [root@dlp ~]# firewall-cmd --reload success |
[4] | Truy cập vào [https://(tên máy chủ hoặc địa chỉ IP của máy chủ):8080/] bằng trình duyệt Web từ localhost hoặc bất kỳ Máy chủ khách nào, thì cần phải có mật khẩu quản trị viên ban đầu để vào thiết lập ban đầu. Đảm bảo mật khẩu quản trị viên ban đầu được lưu trong [/var/lib/jenkins/secrets/initialAdminPassword] và nhập mật khẩu đó để vào thiết lập. |
[5] | Đây là thiết lập ban đầu của Jenkins. Chọn cài đặt các plugin được đề xuất hoặc cài đặt từ các plugin đã chọn của riêng bạn. (tiếp tục với [plugin được đề xuất] trong ví dụ này) |