Criando e acessando uma instância com um servidor web
Tags: oracle, programming, tutorial, braziliandevs
Published: 2024-07-17 17:08:02

## Criando a nova instância ##
![Tela Inicial do Oracle Cloud](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dun5o61ezwbbpymokvbg.png)

![Tela de instâncias - primeiro acesso](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/en3lacjflpn1g3lcq4lr.png)

![Tela de instâncias - selecionar o root](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kz8oajtqleak7r3zgeq5.png)


![Tela de instâncias - CREATE INSTANCE](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/znuhry4ab1xd5pi3qm04.png)


![Tela de instâncias - criando sua instância](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uq5hgsbbvgrl1zb66dwq.png)

Shape é o único disponivel Always Free. Imagem tem várias
![Tela de instâncias - escolhendo SO](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uyonsf9er54swxnj64id.png)

Criar VCN
![Tela de instâncias - selecionando networking](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j3ypcihuukxv1fj2ib1i.png)


![Tela de instâncias - chave SSH](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r3cg1j0ow6tcvnypzdud.png)


![Tela de instâncias - finalizar criação](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/95b7eock8fxkr2maj7oc.png)


![Instancia criada](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w1va226gjngjd0zz6ybg.png)

## Acessando sua nova instância ##
![Gerenciamento da instancia](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w1va226gjngjd0zz6ybg.png)

![Métricas de uso e outras configurações](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gbpno1xpbmmlt5csh5i0.png)

Para acessar, gosto de usar o MobaXterm. (Outras alternativas PUTTY....)

![MobaXterm - Tela geral](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z67qkyzx7jast2kluicu.png)


![MobaXterm - Nova sessão](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xiji3vggvfn6cqgi46xe.png)

Selecionar SSH
Colocar o ip que aparece no console e o usuario (OPC)
E na aba de advanced, mapear para a private key que baixou durante a criação da instancia
![MobaXterm - Detalhes da nova sessão](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sxbu99apdqjjhq3kaznp.png)

![MobaXterm - instancia aberta](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vi2v4jmbuezhumn85hri.png)

## Instalando e iniciando o servidor web ##
https://oracle-base.com/articles/linux/apache-tomcat-9-installation-on-linux
https://howtodoinjava.com/tomcat/run-tomcat-in-default-http-port-80/

![Tomcat - Primeiro acesso](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lf1uq8topj0lylfbe7q5.png)

1. VSCODE com Extensão SFTP
2. Criar senha e habilitar usuario para sftp

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/frtv7qxqcy9kv571ucvn.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/siuirgv2w1inb5v7in94.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/laksou9uo7a9t4rm4o2r.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q6n23362d85qwobkhvkq.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ofgus3se47746yvljyrs.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5p7hx6h68xi9t2oxoipl.png)