28 May 2010

September 7th, 2008

Recently, I setup GeoServer on Ubuntu 8.04. It would be nice to share
some information with everybody. it is not easy to install everything.
Firstly, you need Ubuntu, you can download and install it by yourself
from www.ubuntu.org. beside that, you need JDK6, Tomcat6 and

about how to install JDK and tomcat

here is a very good article from howtogeek.com. how to setup tomcat 6 on ubuntu.

Step1. install JDK

open terminal , type 'sudo apt-get install sun-java6-jdk'

do not switch off the terminal.

step2. install Tomcat6

use commands

'wget http://apache.hoxt.com/tomcat/tomcat-6/v6.0.xx/bin/apache-tomcat-6.0.14.tar.gz'

'tar xvzf apache-tomcat-6.0.xx.tar.gz'

there are three versions tomcat, 14,16,18, choose your version, replace 'xx'

follow the article, move all the installation file to '/usr/local/tomcat'

use commands

'sudo mv apache-tomcat-6.0.14 /usr/local/tomcat'

open another terminal , use command 'sudo nautilus'

it will open a new fie explorer , use the file explorer open this file


at the 7th line add

'export JAVA_HOME=/usr/lib/jvm/java-6-sun'

save it and close the explorer.

go back to the articles. setup automatically startup .

easy way is download the file, put it at '/etc/init.d/'

in the terminal, use command 'sudo /etc/init.d/tomcat restart' , btw,
if you want to stop tomcat, use command 'sudo /etc/init.d/tomcat stop'

after restart it, if everything fine. open our Firefox , via tomcat
by address

then you depoly your geoserver.war files. everything done.

Xiaoyu Guan (Sam)

No comments: