Diferencia entre revisiones de «Usuario:ManuelRomero/proyecto/proyectoIternova/borrador»
De WikiEducator
Línea 1: | Línea 1: | ||
− | <source lang= | + | <source lang=bash> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | docker start itenova | |
− | + | docker start nagios1 | |
+ | docker start nagios2 | ||
+ | |||
+ | |||
+ | docker exec iternova bash ./servicios | ||
+ | docker exec nagios1 bash ./servicios | ||
+ | docker exec nagios2 bash ./servicios | ||
+ | |||
+ | |||
+ | gnome-terminal -e "docker exec -ti iternova bash" | ||
+ | |||
+ | |||
+ | |||
+ | docker start host1 | ||
+ | docker start host2 | ||
+ | docker start host3 | ||
+ | docker start host4 | ||
+ | docker start host5 | ||
+ | docker start host6 | ||
+ | |||
+ | |||
+ | |||
+ | docker exec host1 ./services | ||
+ | docker exec host2 ./services | ||
+ | docker exec host3 ./services | ||
+ | docker exec host4 ./services | ||
+ | docker exec host5 ./services | ||
+ | docker exec host6 ./services | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | if [ -z "$1" ] | ||
+ | then | ||
+ | gnome-terminal -e "docker exec -ti nagios1 bash" | ||
+ | gnome-terminal -e "docker exec -ti nagios1 bash" | ||
+ | gnome-terminal -e "docker exec -ti host1 bash" | ||
+ | gnome-terminal -e "docker exec -ti host2 bash" | ||
+ | Escriba ":quit<intro>" para salir de Vim | ||
</source> | </source> |
Revisión de 07:20 8 sep 2017
docker start itenova docker start nagios1 docker start nagios2 docker exec iternova bash ./servicios docker exec nagios1 bash ./servicios docker exec nagios2 bash ./servicios gnome-terminal -e "docker exec -ti iternova bash" docker start host1 docker start host2 docker start host3 docker start host4 docker start host5 docker start host6 docker exec host1 ./services docker exec host2 ./services docker exec host3 ./services docker exec host4 ./services docker exec host5 ./services docker exec host6 ./services if [ -z "$1" ] then gnome-terminal -e "docker exec -ti nagios1 bash" gnome-terminal -e "docker exec -ti nagios1 bash" gnome-terminal -e "docker exec -ti host1 bash" gnome-terminal -e "docker exec -ti host2 bash" Escriba ":quit<intro>" para salir de Vim