码迷,mamicode.com
首页 > 系统相关 > 详细

注意linux下面的命令行,要将PATH声明出来

时间:2015-06-19 18:15:00      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:

export PATH=/apps/svr/maven/bin:/apps/svr/jdk7/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/apps/svr/phantomjs/bin:/root/bin:/srv/tools:/root/bin
export INPUTRC=/etc/inputrc
export PWD=/apps/dat/yourProjectName
export JAVA_HOME=/apps/svr/jdk7
export LANG=zh_CN.UTF-8
export SHLVL=1
export CLASSPATH=:/apps/svr/jdk7/lib/tools.jar:/apps/svr/jdk7/lib/dt.jar
mvn -version
cd /apps/dat/yourProjectName/
git pull
mvn clean
mvn install
cd /apps/svr/tomcat7/webapps/
cp /apps/svr/tomcat7/webapps/yourProjectName.war /apps/tomcat_bak/yourProjectName$(date +%Y%m%d-%H%M%S).war
rm -rf yourProjectName yourProjectName.war
scp /apps/dat/yourProjectName/target/yourProjectName.war .

注意linux下面的命令行,要将PATH声明出来

标签:

原文地址:http://www.cnblogs.com/sea520/p/4589124.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!