您的位置:首页 > 其它

新服配置(三)

2015-12-03 09:51 405 查看

jenkins


Installation

wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins



Upgrade

Once installed like this, you can update to the later version of Jenkins (when it comes out) by running the following commands:

sudo apt-get update
sudo apt-get install jenkins


(aptitude or apt-get doesn't make any difference.)
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu

Java 版本切换

update-alternatives --config java

ÓÐ 3 ¸öºòÑ¡Ïî¿ÉÓÃÓÚÌæ»» java (Ìṩ /usr/bin/java)¡£

  Ñ¡Ôñ       ·¾¶                                          ÓÅÏȼ¶  ×´Ì¬

------------------------------------------------------------

* 0            /usr/lib/jvm/java-6-oracle/jre/bin/java          1073      ×Ô¶¯Ä£Ê½

  1            /usr/lib/jvm/java-6-oracle/jre/bin/java          1073      ÊÖ¶¯Ä£Ê½

  2            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1071      ÊÖ¶¯Ä£Ê½

  3            /usr/lib/jvm/java-7-oracle/jre/bin/java          1072      ÊÖ¶¯Ä£Ê½

Ҫά³Öµ±Ç°Öµ[*]Çë°´»Ø³µ¼ü£¬»òÕß¼üÈëÑ¡ÔñµÄ±àºÅ£º
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: