您好,登錄后才能下訂單哦!
1.安裝maven
下載http://mirror.bit.edu.cn/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.zip
(1)改名 apache-maven-3.0.4移動到/usr目錄的時候,我會把其改名為maven,這是為了方便使用。
(2)修改環境變量:
vi /etc/profile
#maven
export MAVEN_HOME=/usr/local/maven
export PATH=${MAVEN_HOME}/bin:${PATH}
(3)環境變量生效
source /etc/profile
(4)驗證:mvn -v
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T19:57:37+08:00)
Maven home: /usr/local/maven
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /usr/local/jdk1.7.0_51/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-358.el6.x86_64", arch: "amd64", family: "unix"
2.jenkins下載
http://mirror.xmission.com/jenkins/war/1.613/jenkins.war
(1)Jenkins 配置
拷貝下載的 jenkins.war 到 tomcat的webapps目錄下:
cp -RP jenkins.war /usr/lcoal/tomcat/webapps/
vi /etc/profile
export JENKINS_HOME=/usr/local/tomcat/webapps/jenkins
source /etc/profile
3.Apachetomcat 安裝
http://apache.fayea.com/tomcat/tomcat-7/v7.0.61/bin/apache-tomcat-7.0.61.tar.gz
啟動tomcat服務器
cd bin
./startup
4.git 軟件安裝
wget https://www.kernel.org/pub/software/scm/git/git-1.8.3.4.tar.gz
./configure
make && make install
5.訪問tomcat和Jenkins工程
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。