{"id":7268,"date":"2020-06-08T22:44:33","date_gmt":"2020-06-09T01:44:33","guid":{"rendered":"https:\/\/meunegocio.uol.com.br\/blog\/?p=7268"},"modified":"2026-01-15T11:38:21","modified_gmt":"2026-01-15T14:38:21","slug":"dicas-de-uso-para-o-cloud-server","status":"publish","type":"post","link":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/","title":{"rendered":"Dicas de uso para o Cloud Server"},"content":{"rendered":"<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Independentemente da distribui\u00e7\u00e3o Linux que voc\u00ea tenha escolhido para o seu servidor ser, Debian\/Ubuntu ou CentOS, o UNIX, por baixo dos panos, ser\u00e1 bem semelhante, assim como o OSx do seu Mac.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">E isso \u00e9 uma coisa boa, j\u00e1 que \u00e9 poss\u00edvel compilar uma s\u00e9rie de dicas que podemos usar para facilitar nosso dia a dia na administra\u00e7\u00e3o desses sistemas.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">O comando de ajuda<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Sempre que voc\u00ea tiver d\u00favidas sobre quais as op\u00e7\u00f5es de tal comando, digite&nbsp;&#8211;help&nbsp;na frente do comando&nbsp;(ex.:tail &#8211;help), e ser\u00e3o mostradas todas as op\u00e7\u00f5es e, caso precise de mais ajuda, acesse o manual, digitando&nbsp;man&nbsp;(ex.: man tail).<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Instalando pacotes<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Seja&nbsp;apt-get&nbsp;ou&nbsp;yum, quando quisermos instalar um pacote&nbsp;yum install&nbsp;&nbsp;ou&nbsp;apt-get install&nbsp;&nbsp;seremos perguntados se \u201ctemos certeza\u201d de que queremos instalar. \u00c9 poss\u00edvel pular essa confirma\u00e7\u00e3o apenas passando a op\u00e7\u00e3o&nbsp;-y&nbsp;junto do install:<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">apt-get install -y&nbsp;ou yum install -y<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Tamb\u00e9m funciona com o&nbsp;remove.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Criando atalhos personalizados<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Voc\u00ea j\u00e1 deve ter alguma experi\u00eancia com UNIX e sabe que o comando&nbsp;ls&nbsp;\u00e9 respons\u00e1vel por listar arquivos e diret\u00f3rios, por\u00e9m, ele n\u00e3o mostra arquivos ocultos nem maiores informa\u00e7\u00f5es, como as permiss\u00f5es ou quem \u00e9 o dono daquele arquivo.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Com o comando&nbsp;ls -l, listamos essas informa\u00e7\u00f5es a mais, mas se quisermos ver os arquivos ocultos, tamb\u00e9m, precisamos da flag -a, ficando&nbsp;ls -la.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Digitar quatro letras e um h\u00edfen pode n\u00e3o parecer grande coisa. Mas e se reduzirmos esse esfor\u00e7o para apenas duas letras mais simples de ser alcan\u00e7adas no teclado, como&nbsp;ll&nbsp;e&nbsp;la?<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">O comando&nbsp;alias&nbsp;existe exatamente para isso. Podemos fazer diretamente no terminal:<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">alias la=\u201dls -laG\u201d<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">O \u00fanico por\u00e9m \u00e9 que perderemos essa customiza\u00e7\u00e3o quando o terminal for reiniciado. Se quisermos mant\u00ea-la permanentemente, precisamos adicionar essa linha no arquivo .bash_profile&nbsp;(ele \u00e9 carregado toda vez que abrimos o terminal e aplica os scripts que colocarmos nele).<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Edite o&nbsp;.bash_profile&nbsp;do seu usu\u00e1rio, com&nbsp;vim ~\/.bash_profile, e adicione os alias que julgar necess\u00e1rios.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Dica r\u00e1pida: se voc\u00ea digitar apenas&nbsp;1s,ll&nbsp;ou algum outro atalho personalizado que voc\u00ea criou, vai listar o conte\u00fado do diret\u00f3rio atual. Mas se voc\u00ea quiser ver o conte\u00fado de qualquer diret\u00f3rio, sem necessariamente precisar entrar nele, digite o comando e depois o diret\u00f3rio de interesse, exemplo:<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">ll \/var\/www\/<\/p>\n<p style=\"margin-bottom: 20px; font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Assim, eu consigo ver o que tem dentro de&nbsp;\/var\/www&nbsp;sem precisar sair de onde eu estava.<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t\t<a href=\"http:\/\/clicklogger.rm.uol.com.br\/?prd=939&amp;grp=src:13;chn:546;cpg:cross-sell-banner-site-pronto;&amp;msr=Cliques%20de%20Origem:1&amp;oper=11&amp;redir=https:\/\/cadastro.uol.com.br\/indexb.html?eos=yes&amp;skin=cadastrounificado\/visitor\/pf&amp;skinPath=meunegocio&amp;promochild=PROMGOOADMN05\"><br \/>\n<img decoding=\"async\" src=\"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2020\/04\/banner_uolmn_googleads_academia.gif\" title=\"banner_uolmn_googleads_academia\" alt=\"banner_uolmn_googleads_academia\">\t\t\t\t\t\t\t\t<\/a><\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">O comando tail<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Administrar um servidor est\u00e1 ligado diretamente a entender como ele est\u00e1 se comportando e como as aplica\u00e7\u00f5es que est\u00e3o rodando nele est\u00e3o respondendo ou retornando erros. Saber como ler ou debugar bem um log de erros pode ser de grande ajuda para voc\u00ea.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">O comando&nbsp;tail&nbsp;sozinho funciona como o&nbsp;cat&nbsp;\u2212 apenas mostra o conte\u00fado de certo arquivo (exceto que o&nbsp;tail&nbsp;se limita a mostrar apenas as \u00faltimas linhas desse arquivo, enquanto o&nbsp;cat&nbsp;joga para o output todo o arquivo).<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">O tail&nbsp;possui uma op\u00e7\u00e3o bem interessante, que lhe permite \u201cescutar\u201d as altera\u00e7\u00f5es em um arquivo, mostrando em tempo real qualquer adi\u00e7\u00e3o de conte\u00fado. Toda vez que algu\u00e9m acessa o seu site, \u00e9 gravada uma entrada no&nbsp;access.log&nbsp;do servidor web.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">tail -f \/var\/log\/nginx\/access.log<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Fa\u00e7a um teste: deixe uma aba do terminal com o comando acima e acesse qualquer URL da sua aplica\u00e7\u00e3o. Instantaneamente, vai aparecer no terminal o registro de sua visita.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Misturando com o pipe&nbsp;<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Lembra que eu falei sobre interpretar bem um log?<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Para isso, precisamos ser capazes de localizar informa\u00e7\u00f5es no nosso log.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Sabemos que o&nbsp;cat&nbsp;mostra na tela todo o conte\u00fado de certo arquivo, mas, e se quisermos ver apenas certo padr\u00e3o? Por exemplo, num arquivo de erros do Apache quisermos ver apenas os erros que tal IP viu?<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Podemos fazer o seguinte:<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">cat \/var\/log\/apache2\/error.log | grep &#8220;client 187.12.34.567&#8221;<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Logicamente, trocando o IP ali.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Assim como podemos fazer isso com qualquer parte da linha de log, como se eu quiser olhar apenas as linhas de erro que possuem \u201cmysql_num_rows()\u201d:<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">cat \/var\/log\/apache2\/error.log | grep &#8220;mysql_num_rows()&#8221;<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">E uma dica interessante aqui \u00e9 adicionar no seu .bash_profile um highlight para o&nbsp;grep:<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">alias grep=&#8217;grep &#8211;color=auto&#8217;<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Assim, quando o&nbsp;grep&nbsp;encontrar o padr\u00e3o que voc\u00ea pediu, ele ser\u00e1 mostrado \u201ccolorido\u201d na tela, facilitando a visualiza\u00e7\u00e3o do que foi procurado.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Apagando o conte\u00fado de arquivos completamente<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Deletar um arquivo \u00e9 f\u00e1cil. Basta usar&nbsp;rm&nbsp;ou&nbsp;rm -r&nbsp;para diret\u00f3rios. Mas e se quisermos apagar apenas o conte\u00fado daquele arquivo, sem deletar o arquivo?<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Imagine um log ou um script de centenas de linhas. Entrar no arquivo, selecionar tudo com o vim e apagar n\u00e3o \u00e9 nada pr\u00e1tico.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Para isso, \u00e9 bem mais simples fazer um:<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">echo -n &gt; \/var\/arquivo<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Com o&nbsp;echo -n&nbsp;estamos escrevendo um \u201cvazio\u201d sem \u201cnova linha\u201d dentro do arquivo. Se tiv\u00e9ssemos o interesse de realmente escrever algo, bastaria colocar a string depois do echo:<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">echo \u201cAlgum texto qualquer\u201d &gt; \/var\/arquivo<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Assim escrevemos dentro do arquivo sem ao menos abri-lo com o vim.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">O &gt; (sinal de maior que) vai substituir tudo o que h\u00e1 no arquivo pela nova string. Se quisermos adicionar conte\u00fado, em vez de trocar, usamos dois sinais de &gt;&gt;<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">echo \u201cAdicionando texto\u201d &gt;&gt; \/var\/arquivo<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">O novo texto ser\u00e1 adicionado ap\u00f3s a \u00faltima linha do arquivo.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Criando diret\u00f3rios<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Okay, criar diret\u00f3rios \u00e9 simples, basta um&nbsp;mkdir&nbsp;&lt;nome_do_diret\u00f3rio&gt;&lt;\/nome_do_diret\u00f3rio&gt;, mas e se precisarmos criar v\u00e1rios diret\u00f3rios encaixados?<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">public\/css\/fonts<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Ter\u00edamos de digitar<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">mkdir public<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">cd public<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">mkdir css<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">cd css<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">mkdir fonts<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">O que \u00e9 bastante chato, uma vez que para cada novo diret\u00f3rio filho temos de estar dentro do pai dele antes de usar o&nbsp;mkdir&nbsp;novamente. Felizmente, existe a op\u00e7\u00e3o&nbsp;-p, possibilitando-nos criar uma \u00e1rvore completa com um s\u00f3 comando:<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">mkdir -p public\/css\/fonts<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Apagando com confirma\u00e7\u00e3o recursiva<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Tenho quase certeza de que voc\u00ea j\u00e1 precisou apagar um diret\u00f3rio .git&nbsp;e, por ser um diret\u00f3rio oculto, cheio de arquivos que n\u00e3o podem ser apagados diretamente, um simples<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">rm -r .git<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">faz com que voc\u00ea tenha de confirmar a exclus\u00e3o de dezenas de arquivos com um y (yes). O que \u00e9 bastante chato! Ainda bem que existe o comando&nbsp;yes.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Digite apenas&nbsp;yes&nbsp;no seu terminal e vai imprimir um&nbsp;y&nbsp;embaixo do outro infinitamente, at\u00e9 voc\u00ea parar a execu\u00e7\u00e3o com um Ctrl + C. Esse comando se encaixa perfeitamente em situa\u00e7\u00f5es como a que eu descrevi:<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">yes | rm -r .git<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">O diret\u00f3rio .git ser\u00e1 apagado sem nenhuma confirma\u00e7\u00e3o manual nossa.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Executando diversos comandos em uma \u00fanica linha<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Muitas vezes, precisamos executar diversos comandos ou passar para um colega de trabalho, e enviar diversas linhas \u00e9 um tanto demorado. Podemos \u201cconcatenar\u201d comandos para serem executados com uma \u00fanica linha, utilizando o operador &amp;&amp;. Desde que o comando anterior responda algo diferente de falso, o pr\u00f3ximo comando ser\u00e1 executado. Exemplo:<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">cd \/var\/www\/ &amp;&amp; ll<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Vai entrar na pasta \/var\/www, e depois vai listar o conte\u00fado dela utilizando o atalho que criamos acima.<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Concluindo<\/p>\n<p style=\"font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\">Ainda h\u00e1 muitas outras coisas para ajud\u00e1-lo a administrar seu servidor, mas fica para um pr\u00f3ximo post.<\/p>\n<p style=\"margin-bottom: 20px; font-size: 17px; line-height: 24px; word-break: break-word; color: #666666; font-family: UOLText, Arial, sans-serif; letter-spacing: normal;\"><em>William Moraes<\/em><br \/>\n<em>Colunista UOL HOST<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Independentemente da distribui\u00e7\u00e3o Linux que voc\u00ea tenha escolhido para o seu servidor ser, Debian\/Ubuntu ou CentOS, o UNIX, por baixo dos panos, ser\u00e1 bem semelhante, assim como o OSx do seu Mac. E isso \u00e9 uma coisa boa, j\u00e1 que \u00e9 poss\u00edvel compilar uma s\u00e9rie de dicas que podemos usar para facilitar nosso dia a [&hellip;]<\/p>\n","protected":false},"author":24,"featured_media":7270,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56,87,38,39],"tags":[],"class_list":["post-7268","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-computing","category-produtos-uol-host","category-solucoes","category-tecnologia"],"gutentor_comment":0,"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Dicas de uso para o Cloud Server -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dicas de uso para o Cloud Server -\" \/>\n<meta property=\"og:description\" content=\"Independentemente da distribui\u00e7\u00e3o Linux que voc\u00ea tenha escolhido para o seu servidor ser, Debian\/Ubuntu ou CentOS, o UNIX, por baixo dos panos, ser\u00e1 bem semelhante, assim como o OSx do seu Mac. E isso \u00e9 uma coisa boa, j\u00e1 que \u00e9 poss\u00edvel compilar uma s\u00e9rie de dicas que podemos usar para facilitar nosso dia a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-09T01:44:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-15T14:38:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2020\/06\/cloud-server-1430341398530_600x250.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"250\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Yuri Torres\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yuri Torres\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/\"},\"author\":{\"name\":\"Yuri Torres\",\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/#\/schema\/person\/41505c2cd07dc07109e30bea51edee93\"},\"headline\":\"Dicas de uso para o Cloud Server\",\"datePublished\":\"2020-06-09T01:44:33+00:00\",\"dateModified\":\"2026-01-15T14:38:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/\"},\"wordCount\":1344,\"publisher\":{\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2020\/06\/cloud-server-1430341398530_600x250.jpg?wsr\",\"articleSection\":[\"Cloud Computing\",\"Produtos UOL Host\",\"Solu\u00e7\u00f5es\",\"Tecnologia\"],\"inLanguage\":\"pt-BR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/\",\"url\":\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/\",\"name\":\"Dicas de uso para o Cloud Server -\",\"isPartOf\":{\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2020\/06\/cloud-server-1430341398530_600x250.jpg?wsr\",\"datePublished\":\"2020-06-09T01:44:33+00:00\",\"dateModified\":\"2026-01-15T14:38:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#primaryimage\",\"url\":\"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2020\/06\/cloud-server-1430341398530_600x250.jpg?wsr\",\"contentUrl\":\"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2020\/06\/cloud-server-1430341398530_600x250.jpg?wsr\",\"width\":600,\"height\":250},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/uolhost.uol.com.br\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dicas de uso para o Cloud Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/#website\",\"url\":\"https:\/\/uolhost.uol.com.br\/blog\/\",\"name\":\"Blog UOL Host\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/uolhost.uol.com.br\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/#organization\",\"name\":\"Blog UOL Host\",\"url\":\"https:\/\/uolhost.uol.com.br\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2025\/01\/UOL_Host.png?wsr\",\"contentUrl\":\"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2025\/01\/UOL_Host.png?wsr\",\"width\":2000,\"height\":393,\"caption\":\"Blog UOL Host\"},\"image\":{\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/#\/schema\/person\/41505c2cd07dc07109e30bea51edee93\",\"name\":\"Yuri Torres\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/uolhost.uol.com.br\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4c96a05faea9fdf86f95d5b723e438c9cc14ad5c342d76486e5a4c8ac8259492?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4c96a05faea9fdf86f95d5b723e438c9cc14ad5c342d76486e5a4c8ac8259492?s=96&d=mm&r=g\",\"caption\":\"Yuri Torres\"},\"description\":\"Profissional de Reda\u00e7\u00e3o e Marketing, com 10 anos de experi\u00eancia no desenvolvimento de estrat\u00e9gias de conte\u00fado voltadas \u00e0 comunica\u00e7\u00e3o de marcas. Atua na cria\u00e7\u00e3o de materiais que fortalecem a presen\u00e7a digital, ampliam o engajamento e contribuem para o alcance de resultados alinhados aos objetivos de neg\u00f3cio, com experi\u00eancia no atendimento a empresas de diferentes segmentos. LinkedIn\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/yuri-torres-271093108\/\"],\"url\":\"https:\/\/uolhost.uol.com.br\/blog\/author\/yuri-torres\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dicas de uso para o Cloud Server -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/","og_locale":"pt_BR","og_type":"article","og_title":"Dicas de uso para o Cloud Server -","og_description":"Independentemente da distribui\u00e7\u00e3o Linux que voc\u00ea tenha escolhido para o seu servidor ser, Debian\/Ubuntu ou CentOS, o UNIX, por baixo dos panos, ser\u00e1 bem semelhante, assim como o OSx do seu Mac. E isso \u00e9 uma coisa boa, j\u00e1 que \u00e9 poss\u00edvel compilar uma s\u00e9rie de dicas que podemos usar para facilitar nosso dia a [&hellip;]","og_url":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/","article_published_time":"2020-06-09T01:44:33+00:00","article_modified_time":"2026-01-15T14:38:21+00:00","og_image":[{"width":600,"height":250,"url":"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2020\/06\/cloud-server-1430341398530_600x250.jpg","type":"image\/jpeg"}],"author":"Yuri Torres","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Yuri Torres","Est. tempo de leitura":"7 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#article","isPartOf":{"@id":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/"},"author":{"name":"Yuri Torres","@id":"https:\/\/uolhost.uol.com.br\/blog\/#\/schema\/person\/41505c2cd07dc07109e30bea51edee93"},"headline":"Dicas de uso para o Cloud Server","datePublished":"2020-06-09T01:44:33+00:00","dateModified":"2026-01-15T14:38:21+00:00","mainEntityOfPage":{"@id":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/"},"wordCount":1344,"publisher":{"@id":"https:\/\/uolhost.uol.com.br\/blog\/#organization"},"image":{"@id":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#primaryimage"},"thumbnailUrl":"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2020\/06\/cloud-server-1430341398530_600x250.jpg?wsr","articleSection":["Cloud Computing","Produtos UOL Host","Solu\u00e7\u00f5es","Tecnologia"],"inLanguage":"pt-BR"},{"@type":"WebPage","@id":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/","url":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/","name":"Dicas de uso para o Cloud Server -","isPartOf":{"@id":"https:\/\/uolhost.uol.com.br\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#primaryimage"},"image":{"@id":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#primaryimage"},"thumbnailUrl":"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2020\/06\/cloud-server-1430341398530_600x250.jpg?wsr","datePublished":"2020-06-09T01:44:33+00:00","dateModified":"2026-01-15T14:38:21+00:00","breadcrumb":{"@id":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#primaryimage","url":"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2020\/06\/cloud-server-1430341398530_600x250.jpg?wsr","contentUrl":"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2020\/06\/cloud-server-1430341398530_600x250.jpg?wsr","width":600,"height":250},{"@type":"BreadcrumbList","@id":"https:\/\/uolhost.uol.com.br\/blog\/dicas-de-uso-para-o-cloud-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/uolhost.uol.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"Dicas de uso para o Cloud Server"}]},{"@type":"WebSite","@id":"https:\/\/uolhost.uol.com.br\/blog\/#website","url":"https:\/\/uolhost.uol.com.br\/blog\/","name":"Blog UOL Host","description":"","publisher":{"@id":"https:\/\/uolhost.uol.com.br\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/uolhost.uol.com.br\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/uolhost.uol.com.br\/blog\/#organization","name":"Blog UOL Host","url":"https:\/\/uolhost.uol.com.br\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/uolhost.uol.com.br\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2025\/01\/UOL_Host.png?wsr","contentUrl":"https:\/\/uolhost.uol.com.br\/blog\/wp-content\/uploads\/2025\/01\/UOL_Host.png?wsr","width":2000,"height":393,"caption":"Blog UOL Host"},"image":{"@id":"https:\/\/uolhost.uol.com.br\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/uolhost.uol.com.br\/blog\/#\/schema\/person\/41505c2cd07dc07109e30bea51edee93","name":"Yuri Torres","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/uolhost.uol.com.br\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4c96a05faea9fdf86f95d5b723e438c9cc14ad5c342d76486e5a4c8ac8259492?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4c96a05faea9fdf86f95d5b723e438c9cc14ad5c342d76486e5a4c8ac8259492?s=96&d=mm&r=g","caption":"Yuri Torres"},"description":"Profissional de Reda\u00e7\u00e3o e Marketing, com 10 anos de experi\u00eancia no desenvolvimento de estrat\u00e9gias de conte\u00fado voltadas \u00e0 comunica\u00e7\u00e3o de marcas. Atua na cria\u00e7\u00e3o de materiais que fortalecem a presen\u00e7a digital, ampliam o engajamento e contribuem para o alcance de resultados alinhados aos objetivos de neg\u00f3cio, com experi\u00eancia no atendimento a empresas de diferentes segmentos. LinkedIn","sameAs":["https:\/\/www.linkedin.com\/in\/yuri-torres-271093108\/"],"url":"https:\/\/uolhost.uol.com.br\/blog\/author\/yuri-torres\/"}]}},"_links":{"self":[{"href":"https:\/\/uolhost.uol.com.br\/blog\/wp-json\/wp\/v2\/posts\/7268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uolhost.uol.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/uolhost.uol.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/uolhost.uol.com.br\/blog\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/uolhost.uol.com.br\/blog\/wp-json\/wp\/v2\/comments?post=7268"}],"version-history":[{"count":1,"href":"https:\/\/uolhost.uol.com.br\/blog\/wp-json\/wp\/v2\/posts\/7268\/revisions"}],"predecessor-version":[{"id":20286,"href":"https:\/\/uolhost.uol.com.br\/blog\/wp-json\/wp\/v2\/posts\/7268\/revisions\/20286"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/uolhost.uol.com.br\/blog\/wp-json\/wp\/v2\/media\/7270"}],"wp:attachment":[{"href":"https:\/\/uolhost.uol.com.br\/blog\/wp-json\/wp\/v2\/media?parent=7268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uolhost.uol.com.br\/blog\/wp-json\/wp\/v2\/categories?post=7268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uolhost.uol.com.br\/blog\/wp-json\/wp\/v2\/tags?post=7268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}