Goloo
Intern
Intern
  • UID1489
  • Fans0
  • Follows0
  • Posts1
Reads:2318Replies:1

Alibaba Cloud Tech Share deploy Java

Created#
More Posted time:Jan 18, 2017 14:10 PM
First of all, this Alibaba from China is very worthy of recognition.



Alibaba let me know that China is not only excellent subway technology, cloud computing is not only advanced, and cheap.

———— From Canada Ali Cloud User

Install JDK, Tomcat, and the configuration process on the cloud. Finally, an example to demonstrate the deployment of the Java web project in Ali cloud.

Get ready:Download putty and FileZlilla Local remote SSH into the process of personal Ali cloud server is very simple, there is no longer.

1.http://www.Oracle.com/technetwork/Java/javase/downloads/index-jsp-138363.html Download JDK. Adopt FileZlilla Ali cloud
2.Open putty. Enter the IP address, follow the prompts to enter the user name and password. (password for you to login to Ali cloud password).
3.Configure directory: First create a directory

  1. cd usr  
  2. mkdir java  
  3. cd java  
  4. mkdir jdk  
Then unzip the JDK tar file to the directory above:
  1. tar zxvf jdk-8u73-linux-x64.gz -C /usr/java/jdk  


4.Configuration environment variable
input:

  1. vi /etc/profile  
  2. gedit   /etc/profile  

Add content
  1. #set java environment  
  2. export JAVA_HOME=/usr/java/jdk/jdk1.8.0_73  
  3. export JRE_HOME=/usr/java/jdk/jdk1.8.0_73/jre  
  4. export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
  5. export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$JAVA_HOME:$PATH


Note that this is changed to the corresponding JDK directory, and to root users to make changes, otherwise can not save
Save after execution
  1. source /etc/profile  
Verify installation input:
  1. java -version  
=
Set :
A.Download Tomcat to http://tomcat.apache.org/ download, here the author is using the tomcat7. and Tomcat will be downloaded to the local computer, through the FileZlilla upload this package to the personal cloud server.
B.I install Tomcat to /usr/Java/tomcat

  1. tar zxvf apache-tomcat-7.0.68.tar.gz -C /usr/java/tomcat  
  2. <p>Note that the Tomcat directory should be created in advance</p>
  3. <p style="text-align: center;"><img src="http://img.blog.csdn.net/20160222205518942" alt="">  
  4. </p><p>  
  5. </p>
  6. vi setclasspath.sh
  7. export JAVA_HOME=/usr/java/jdk/jdk1.8.0_65  
  8. export JRE_HOME=/usr/java/jdk/jdk1.8.0_65/jre  
  9. ./startup.sh  






The installation is complete.



fridayyo
Post banned
Post banned
  • UID214
  • Fans5
  • Follows15
  • Posts357
1st Reply#
Posted time:Jan 18, 2017 15:58 PM
Sorry, the user is banned
Guest