当前位置:网站首页>Jenkins learning (I) -- Jenkins installation
Jenkins learning (I) -- Jenkins installation
2022-07-03 09:14:00 【Fill your head with water】
install
Linux Next Jenkins install
Download address :https://jenkins.io/download/
1. Here, download and install on the server , Enter the following command to install the download dependency :
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
# Enter the command if :command not found!
# Need to install wget, Enter the following command to use yum install wget:
# yum -y install wget
2. Install the secret key
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
3. install
yum install epel-release # repository that provides 'daemonize'
yum install jenkins
# If the version number is displayed, the installation is successful
4. Modify port number ( Default 8080, It can be left unchanged )
vi /etc/sysconfig/jenkins
5. An error will be reported when running directly
# service jenkins restart
yes jdk Reasons for configuration
6. To configure jdk The installation directory ( Subject to your own installation directory )( See the picture below ):
vi /etc/init.d/jenkins Fill in your own jdk The installation path /bin/java
5. restart
service jenkins restart
Stop running :service jenkins stop
Tuo :
restart :http://ip:8080/restart
stop it :http://ip:8080/stop
Here's the picture The successful
jenkins Definition of relevant catalogue :
/usr/lib/jenkins/ | jenkins The installation directory ,war The bag will be here . |
/etc/sysconfig/jenkins | jenkins The configuration file ,“ port ”,“JENKINS_HOME” You can configure it here . |
/var/lib/jenkins/ | default JENKINS_HOME. |
/var/log/jenkins/jenkins.log | jenkins Log files . |
To configure
linux install jenkins After that, a system named initialAdminPas sword Documents , Open it with notepad , Copy the contents inside .
Next, you will see whether to download the recommended plug-ins , Click skip plug-in installation
Be careful :
To avoid port occupation , It is suggested that 8080 Ports should be uncommon ports
If the change fails , Open the terminal ,cd To Jenkins Installation directory ( namely jenkins.war In the directory ), Mine is /usr/lib/jenkins Execute the following command :
java -jar jenkins.war --ajp13Port=-1 --httpPort=8081
边栏推荐
- 【点云处理之论文狂读经典版10】—— PointCNN: Convolution On X-Transformed Points
- Instant messaging IM is the countercurrent of the progress of the times? See what jnpf says
- Just graduate student reading thesis
- State compression DP acwing 91 Shortest Hamilton path
- 常见渗透测试靶场
- Binary tree sorting (C language, char type)
- Use the interface colmap interface of openmvs to generate the pose file required by openmvs mvs
- Methods of using arrays as function parameters in shell
- Discussion on enterprise informatization construction
- Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code
猜你喜欢
Tree DP acwing 285 A dance without a boss
AcWing 788. Number of pairs in reverse order
[point cloud processing paper crazy reading classic version 10] - pointcnn: revolution on x-transformed points
记忆化搜索 AcWing 901. 滑雪
求组合数 AcWing 885. 求组合数 I
Just graduate student reading thesis
Divide candy (circular queue)
We have a common name, XX Gong
LeetCode 57. 插入区间
2022-2-13 learning xiangniuke project - version control
随机推荐
PIC16F648A-E/SS PIC16 8位 微控制器,7KB(4Kx14)
We have a common name, XX Gong
Method of intercepting string in shell
Sword finger offer II 091 Paint the house
LeetCode 871. Minimum refueling times
LeetCode 57. 插入区间
Divide candy (circular queue)
20220630学习打卡
Install third-party libraries such as Jieba under Anaconda pytorch
[point cloud processing paper crazy reading classic version 14] - dynamic graph CNN for learning on point clouds
Binary tree sorting (C language, int type)
浅谈企业信息化建设
状态压缩DP AcWing 91. 最短Hamilton路径
What is the difference between sudo apt install and sudo apt -get install?
精彩回顾|I/O Extended 2022 活动干货分享
传统办公模式的“助推器”,搭建OA办公系统,原来就这么简单!
Memory search acwing 901 skiing
剑指 Offer II 091. 粉刷房子
Parameters of convolutional neural network
即时通讯IM,是时代进步的逆流?看看JNPF怎么说