#yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc-c++ perl-ExtUtils-MakeMaker wget autoconf -y #wget https://www.kernel.org/pub/software/scm/git/git-2.7.3.tar.gz tar xf git-2.7.3.tar.gz #cd git-2.7.3 #make configure #./configure --prefix=/usr/local/git #make profix=/usr/local/git #make install #echo "export PATH=$PATH:/usr/local/git/bin" > /etc/profile.d/git.sh #source /etc/profile.d/git.sh
wget http://mirrors.shu.edu.cn/apache/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gzjava
#cd /usr/local/ #wget -c wget http://mirror.bit.edu.cn/apache/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz #tar -zxf apache-maven-3.5.2-bin.tar.gz #echo "export PATH=$PATH:/usr/local/apache-maven-3.5.2/bin" > /etc/profile.d/maven.sh #source /etc/profile.d/maven.sh
mvn -version 查看版本linux
#yum install subversion -y #mkdir /svnrepo #svnadmin create /svnrepo/project1 #建立一個新的Subversion項目
=c++
啓動項目1:svnserve -d -r /svnrepo/project1/
啓動整個項目:svnserve -d -r /svnrepo/git
svn添加完用戶重啓ps -ef | greo scv | grep -v grep | awk '{print $2}' | xargs kill -9在啓動web
某些狀況下會遇到openjdk沒法編譯java程序,或在編譯中存在異常,須要咱們手動安裝jdk,首先去Oracle官網下載對應版本的jdkapache
#tar -zxvf jdk-8u121-linux-x64.gz -C /usr/local #ln -sv /usr/local/jdk1.8.0_121 /usr/local/jdk1.8 #echo "export PATH=$PATH:/usr/local/jdk1.8/bin" >/etc/profile.d/java.sh #source /etc/profile.d/java.sh
手動安裝的git,web界面只需添加具體可執行路徑便可bash
針對以前手動安裝的maven須要在web界面配置進行結合。
系統管理—全局工具配置(Maven Configuration)配置:curl
此處爲手動安裝的maven,須要取消自動安裝maven,name能夠自定義,MAVEN_HOME指定下載安裝的maven具體文件目錄maven
對應手動安裝的jdk,須要web配置java_home路徑svn