Summary:
Yum (called the Yellow dog Updater, Modified) is a front end package manager Shell Fedora and RedHat and CentOS in. RPM-based package management, can automatically download from the specified server RPM package and installed, you can automatically handle dependencies, and install all packages depending on, again and again without the cumbersome download and installation.
So by yum download the rpm package, it can automatically process the relationship of dependency, for the installation location is the default, so we do not need to Jenkins placed under Tomcat, we will save a lot of trouble.
Installation specific steps:
Note: You need to install before installing jenkins JDK, and stable version of the proposed installation, do not install openjdk, there may be incompatibility.
1. Import Yum Source:
# Adding the repository key ( 添加存储库密钥)
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
# Adding the package repository address to our repository list(添加包仓库地址,我们的资料库列表中)
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
Description: /etc/yum.repos.d/ yum source means into the storage path.
Now, with the information needed to install Jenkins on the server. Before installing Jenkins, if java is not already installed on the server, you will need to install Java, which is first installed JDK.
After installing the JDK, you can install the Jenkins.
2.yum installation Jenkins
command:yum install jenkins
: Intermediate [y / N] may occur Is this ok
input "y" can.
Description: The last successful installation, display jenkins.noarch package, then the package is noarch What does it mean?
It is an abbreviation noarch no architecture, indicating that the package can be used on various of cpu.
References: Baidu Encyclopedia: https://baike.baidu.com/item/noarch/5351882?fr=aladdin
3. Jenkins server as a service starts:
systemctl start jenkins
4. Check the current state Jenkins:
systemctl status jenkins
5. Set the boot from the start jenkins:
systemctl enable jenkins
6. Enter the browser: http: // public network ip: port number (mine is 8002) / jenkins be able to access the
7. Follow the specified directory is given, find the password, go after, you can install the recommended plugins:
8. Install recommended plug-ins, after the bin, instance configuration, and then create the first user:
This, Jenkins successful installation!
Uninstall jenkins yum install:
rpm -e jenkins #rpm卸载
rpm -ql jenkins #检查是否卸载成功
find / -iname jenkins | xargs -n 1000 rm -rf #彻底删除残留文件
In addition, if you need to see the installation information jenkins, etc. can refer to this blog:
https://blog.csdn.net/qq_34272964/article/details/93474659