Centos6.8部署jenkins2.46.2
阿新 • • 發佈:2018-06-27
pub yum ttext usr jdk1 jdk1.8 使用 默認 roo jenkins的安裝大致有兩種方式:1,使用docker鏡像運行在docker容器中;2,以war包形式運行。
重啟一下jenkins
新密碼為admin cd git-2.13.0
make configure
./configure --prefix=/usr/local/git
make
make install
echo "export PATH=$PATH:/usr/local/git/bin" > /etc/profile.d/git.sh
source /etc/profile.d/git.sh tar -zxf apache-maven-3.3.9-bin.tar.gz && \
echo "export PATH=$PATH:/usr/local/apache-maven-3.3.9/bin" > /etc/profile.d/maven.sh && \
source /etc/profile.d/maven.sh
密碼修改
cd /root/.jenkins/users/admin/ #此為admin用戶的目錄,也可以對應自己創建的用戶
vim config.xml //定位到<passwordHash>那一行
刪除該行,改為
<passwordHash>#jbcrypt:$2a$10$pDQks0ytOkCfmpdgpLygrOC3uY7i/XnZHBKRQDhrBPwKoN2f5Kz8C</passwordHash>
新密碼為admin
jenkins配置默認會存放在用戶主目錄下的.jenkins文件夾中,如test用戶
[root@iZ232zv25vtZ ~]# cd /home/test/.jenkins
安裝git
先安裝編譯git需要的包
yum install zlib-devel perl-ExtUtils-MakeMaker gettext curl-devel expat-devel openssl-devel
下載並安裝
wget https://www.kernel.org/pub/software/scm/git/git-2.13.0.tar.gz
tar xf git-2.13.0.tar.gz
make configure
./configure --prefix=/usr/local/git
make
make install
echo "export PATH=$PATH:/usr/local/git/bin" > /etc/profile.d/git.sh
source /etc/profile.d/git.sh
安裝maven
cd /usr/local/ && wget -c wget http://mirror.bit.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz &&\
echo "export PATH=$PATH:/usr/local/apache-maven-3.3.9/bin" > /etc/profile.d/maven.sh && \
source /etc/profile.d/maven.sh
openjdk1.8.0_121
Centos6.8部署jenkins2.46.2