Changes
Page history
miguel.carreira.rial created page: home
authored
Mar 02, 2015
by
Miguel Carreira Rial
Hide whitespace changes
Inline
Side-by-side
home.markdown
View page @
462ede20
...
@@ -19,6 +19,7 @@ Para comprobar que funcione bien insertamos en el espacio de la url de un navega
...
@@ -19,6 +19,7 @@ Para comprobar que funcione bien insertamos en el espacio de la url de un navega
```
sudo apt-get install php5 libapache2-mod-php5 php5-common
```
```
sudo apt-get install php5 libapache2-mod-php5 php5-common
```
Para comprobar que funcione, crearemos un archivo de nombre infor.php con el siguiente contenido:
Para comprobar que funcione, crearemos un archivo de nombre infor.php con el siguiente contenido:
> <?php
> <?php
> phpinfo();
> phpinfo();
...
@@ -74,4 +75,81 @@ Accedemos al terminal de PostgreSQL:
...
@@ -74,4 +75,81 @@ Accedemos al terminal de PostgreSQL:
Cargar un fichero desde la terminal:
Cargar un fichero desde la terminal:
```
\i
ruta/fichero
```
```
\i
ruta/fichero
```
\ No newline at end of file
## Configuración Orion Context Broker
Esta máquina contrendrá la siguiente tecnología:
* MongoDB
* Context Broker
Características del sistema operativo:
* CentOS 6.3
#### Instalar MongoDB
Crearemos el fichero /etc/yum.repos.d/mongodb.repo, donde insertaremos las siguientes lineas, para un SQ 64 bits:
> [mongodb]
> name=MongoDB Repository
> baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
> gpgcheck=0
> enabled=1
Actualizaremos los paquetes del sistema:
```
yum -y update
```
Instalaremos con el siguiente comando:
```
yum install -y mongodb-org
```
Iniciar el servicio mongod (tardará un poco en iniciar la primera vez):
```
service mongod start
```
Parar el servicio mongod:
```
service mongod stop
```
### Instalar Orion Context Broker
Crearemos el fichero /etc/yum.repos.d/testbed-fi-ware.repo e insertamos las siguientes lineas:
> [testbed-fi-ware]
> name=Fiware Repository
> baseurl=http://repositories.testbed.fi-ware.org/repo/rpm/x86_64/
> gpgcheck=0
> enabled=1
Actualizaremos los paquetes del sistema:
```
yum -y update
```
Instalaremos con el siguiente comando:
```
yum install contextBroker
```
Iniciar el servicio contextBroker:
```
/etc/init.d/contextBroker start
```
Parar el servicio contextBroker:
```
/etc/init.d/contextBroker stop
```
Ver el estado:
```
/etc/init.d/contextBroker status
```