Linux,maven,redis,android,java,yum,ant deployment-related commands

Source: Internet
Author: User

(Linux system view)

getconf Long_bit View the number of system bits


(Java environment variable)

Export java_home=/home/gcweb/usr/java/jdk1.7.0_45

Export path= $JAVA _home/bin: $PATH

If you need to modify it into a system variable:

CD ~

VI. bash_profile

Then start editing, exit Esc-->:-->q only exit, do not save


(Android Configuration)

Cd/home/gcweb/usr/sdk

wget http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz

TAR-ZXVF android-sdk_r22.6.2-linux.tgz

Cp-r/home/gcweb/usr/sdk/android-sdk-linux/*/home/gcweb/usr/sdk Copy entire folder

RM-RF android-sdk-linux/

Export ANDROID_HOME=/HOME/GCWEB/USR/SDK

Export path= $ANDROID _home/tools: $ANDROID _home/platform-tools: $PATH

Android Image Update SDK, if the URL is not, with the corresponding IP

Android List SDK--proxy-host 219.216.128.25--proxy-port 80-s-U

Android Update SDK--proxy-host 219.216.128.25--proxy-port 80-s-U

ADB (see if Android installs successfully)


Yum installation (view the system version prior to installation, search the response image file according to the version):

/ETC/YUM.REPOS.D The following files are all deleted, please do a backup before deleting

Wget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-5.repo

Centos-base.repo Updating image files

Yum Makecache Flush Cache

Yum list|grep XULRunner Query 32-bit runtime, non-CentOS is IA32

Yum Install xulrunner.i686


(Running Jenkins)

Export java_home=/home/jdk1.8.0_141

Export path= $JAVA _home/bin: $PATH

Cd/home/jenkins

Java-jar Jenkins.war


(Install ant,android Source Packaging tool--http://ant.apache.org/bindownload.cgi)

Download apache-ant-1.10.1-bin.tar.gz, copy to/home/gcweb/usr/ant

Cd/home/gcweb/usr/ant

Tar-vxzf apache-ant-1.10.1-bin.tar.gz

Cp-r/home/gcweb/usr/ant/apache-ant-1.10.1/*/home/gcweb/usr/ant Copy entire folder

RM-RF APACHE-ANT-1.10.1/

Export java_home=/home/gcweb/usr/java/jdk1.8.0_111

Export path= $JAVA _home/bin: $PATH

Export ANDROID_HOME=/HOME/GCWEB/USR/SDK

Export path= $ANDROID _home/tools: $ANDROID _home/platform-tools: $PATH

Export ant_home=/home/gcweb/usr/ant/

Export path= $PATH: $ANT _home/bin

--Start Android packaging

Cd/home/androidsrc/ceshi

Android update project-p./hell0-n hell0-t 11

--android test Project Generation and packaging

Android Create Project-n test-a mainactivity-k com.time2011.test-t 11-p./test

CD test (go to the Project test directory below)

Ant Debug (Release Debug Version)


(Maven installation)

cd/home/gcweb/usr/

wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz

TAR-ZXVF apache-maven-3.2.5-bin.tar.gz

Export maven_home=/home/gcweb/usr/apache-maven-3.2.5

Export Path=${path}:${maven_home}/bin

This article is from "It Technology male" blog, please be sure to keep this source http://shengguimin.blog.51cto.com/3162140/1949409

Linux,maven,redis,android,java,yum,ant deployment-related commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.