[Spanish] Instalacion y Configuracion Tomcat via ssh

Andres Herrera t763rm3n at gmail.com
Mon Mar 11 10:40:32 PDT 2013


Hola, te adjunto unas lineas de la instalación que realicé en AWS espero te
sirvan.

===============================================================================
AMI: ubuntu/images/ebs/ubuntu-precise-12.04-amd64-server-20120616
(ami-4438b474) Alarm Status: none

#################### TOMCAT

sudo apt-get install tomcat6

/var/lib/tomcat6/webapps/ROOT/index.html


#################### geoserver-opengeo

wget -qO- http://apt.opengeo.org/gpg.key | apt-key add -

echo "deb http://apt.opengeo.org/ubuntu lucid main" >> /etc/apt/sources.list

apt-get update

apt-cache search opengeo

apt-get install opengeo-geoserver


#################### PostgreSQl 9.1

sudo apt-get install postgresql postgresql-client postgresql-contrib

sudo su postgres -c psql template1

template1=# ALTER USER postgres WITH PASSWORD 'password';    --->> t763rm3n
template1=# \q

sudo passwd -d postgres
sudo su postgres -c passwd   --- >>>   t763rm3n

sudo vim /etc/postgresql/9.1/main/postgresql.conf

change lines:

listen_addresses = '*'
password_encryption = on

sudo vim /etc/postgresql/9.1/main/pg_hba.conf

host all all 0.0.0.0/0 md5 # wide-open, you may want to make this

sudo /etc/init.d/postgresql restart

#################### POSTGIS

sudo apt-get install postgis gdal-bin binutils libgeos-3.2.2 libgeos-c1
libgeos-dev libgdal1-dev libxml2 libxml2-dev libxml2-dev checkinstall proj
libpq-de

sudo mkdir -p '/usr/share/postgresql/9.1/contrib/postgis-1.5'

wget http://postgis.refractions.net/download/postgis-1.5.3.tar.gz

tar zxvf postgis-1.5.3.tar.gz && cd postgis-1.5.3/

sudo apt-get install postgresql-server-dev-9.1 postgresql-contrib-9.1

sudo ./configure && sudo make && sudo checkinstall --pkgname postgis-1.5.3
--pkgversion 1.5.3-src --default


sudo su postgres -c'createdb -E UTF8 -U postgres template_postgis'
sudo su postgres -c'createlang -d template_postgis plpgsql;'
sudo su postgres -c'psql -U postgres -d template_postgis -c"CREATE
EXTENSION hstore;"'
sudo su postgres -c'psql -U postgres -d template_postgis -f
/usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql'
sudo su postgres -c'psql -U postgres -d template_postgis -f
/usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql'
sudo su postgres -c'psql -U postgres -d template_postgis -c"select
postgis_lib_version();"'
sudo su postgres -c'psql -U postgres -d template_postgis -c "GRANT ALL ON
geometry_columns TO PUBLIC;"'
sudo su postgres -c'psql -U postgres -d template_postgis -c "GRANT ALL ON
spatial_ref_sys TO PUBLIC;"'
sudo su postgres -c'psql -U postgres -d template_postgis -c "GRANT ALL ON
geography_columns TO PUBLIC;"'



#################### Apache + php5 + pgsql

sudo aptitude install apache2 php5-pgsql libapache2-mod-php5
libapache2-mod-auth-pgsql


sudo /etc/init.d/apache2 restart
sudo /etc/init.d/postgresql restart

/var/www/
index.php

<?php
  phpinfo();
?>


####################  MAPSERVER

sudo apt-get install libhdf4-doc libhdf4-alt-dev hdf4-tools ogdi-bin

sudo apt-get install cgi-mapserver libmapscript-ruby
libmapscript-ruby1.8 libmapscript-ruby1.9.1 mapserver-bin mapserver-doc
perl-mapscript php5-mapscript python-mapscript

TEST:   /usr/lib/cgi-bin/mapserv -v
===============================================================================



2013/3/11 Javier Diaz <javidiaz1977 at gmail.com>

> Gracias Rosa Aguilar y JC por sus respuestas.
>
> Saludos
>
>
> El 8 de marzo de 2013 20:41, JC <seryoda at gmail.com> escribió:
>
> Otra opcion es usar VNC,si deseas hacer la instalaciòn en  forma remota
>> desde una maquina con win
>>
>>
>> El 8 de marzo de 2013 11:29, Javier Diaz <javidiaz1977 at gmail.com>escribió:
>>
>>> Buen dia amigos.
>>>
>>> Quisiera saber si alguien tiene disponible algun tutorial o informacion
>>> sobre instalacion y configuracion de Tomcat y postgresql+postgis en forma
>>> remota via ssh.
>>>
>>> El servidor corre sobre Debian 5 y el cliente para acceder en maquinas
>>> corriendo  guindows, ubuntu y archlinux.
>>>
>>> Saludos
>>> Javier
>>>
>>> _______________________________________________
>>> Spanish mailing list
>>> http://lists.osgeo.org/mailman/listinfo/spanish
>>> http://es.osgeo.org
>>> http://twitter.com/osgeoes
>>>
>>>
>>
>> _______________________________________________
>> Spanish mailing list
>> http://lists.osgeo.org/mailman/listinfo/spanish
>> http://es.osgeo.org
>> http://twitter.com/osgeoes
>>
>>
>
> _______________________________________________
> Spanish mailing list
> http://lists.osgeo.org/mailman/listinfo/spanish
> http://es.osgeo.org
> http://twitter.com/osgeoes
>
>


-- 
========================

Ing. Fabio Andres Herrera
Analista de Sistemas de Información Geográfica
Centro de Investigación de la Caña de Azúcar de Colombia (Cenicaña)
Tel: (57) (2) 687 6611 - Ext. 5187
faherrera at cenicana.org
http://www.cenicana.org

---------------------------------
Topographic Engineer
Santiago de Cali
Colombia / South America
Blog:   http://andresherreracali.blogspot.com
E-mail: fandresherrera at hotmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/spanish/attachments/20130311/096c25ee/attachment.html>


More information about the Spanish mailing list