2013年9月3日星期二

ubuntu-12.01-LTS how to install java environment and tomcat?

Recently want to build their own a website, foreground and background of the code have been written.
no servers, from online rent one, rent a beautiful orange: ubuntu-12.01-LTS
but encountered a problem, I sent those found online tutorial install java environment can not be used,
Use
sudo apt-get prompted to find the version number of the version information
Use
wget-c Download
Download results to file, there are only 5kb, is html type.
how should get?
Later on the map, find help
------ Solution ----------------------------- ---------------
jdk you can go to the official website (http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html) download the source code, and then use a tool like winscp uploaded to your server, install just fine (actually the extract, configure the environment variables)
Then if the jsp, then you can install it under tomcat
------ Solution ---------------------- ----------------------
jdk installation: http://linuxtoy.org/archives/install_jdk_6_in_ubuntu.html
tomcat directly download a. tar unpack should be fine
------ Solution ------------------------ --------------------
If you are renting a server, generally will not give you permission to install software it. Consult your server provider, as java environment configuration, I think your problem is due to server permissions, configuration is very simple
export JAVA_HOME = / opt/jdk1.7.0_25
export CLASSPATH = $ JAVA_HOME / lib
export PATH = $ JAVA_HOME / bin: $ PATH

on several paths
------ Solution ------------------------------- -------------
Reference:
https://www.digitalocean.com/community/articles/how-to-install-apache-tomcat-on-ubuntu-12-04
tomcat installation is relatively simple
------ For reference only ---------------------------- -----------

VPS server, of course, you can install the software, or how to deploy website yet. .
you this is an environment variable, the premise is installed only after the configuration environment variable.
------ For reference only -------------------------------------- -

The first step:
You can download it through apt-get by typing:
sudo apt-get install tomcat7
This will not work. . . Because my software center does not exist inside tomcat7 this.
But the problem finally solved.
thank all of you help.
Solution Reference:
http://blog.csdn.net/aa5279aa/article/details/9919435

没有评论:

发表评论