Habilitar Keep-alive no apache
Para habilitar o keep-alive no apache, verifique se no arquivo httpd.conf existe as duas linhas abaixo e se ambas estão habilitadas. LoadModule deflate_module modules/mod_deflate.so LoadModule expires_module modules/mod_expires.so Se as linhas estiverem no arquivo e habilitadas, faça os dois passos abaixo. Crie o arquivo /etc/httpd/conf.d/deflate.conf e cole o conteúdo abaixo …
| 
					 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29  | 
						 AddOutputFilterByType DEFLATE text/plain  AddOutputFilterByType DEFLATE text/html  AddOutputFilterByType DEFLATE text/xml  AddOutputFilterByType DEFLATE text/css  AddOutputFilterByType DEFLATE text/javascript  AddOutputFilterByType DEFLATE image/svg+xml  AddOutputFilterByType DEFLATE image/x-icon  AddOutputFilterByType DEFLATE application/xml  AddOutputFilterByType DEFLATE application/xhtml+xml  AddOutputFilterByType DEFLATE application/rss+xml  AddOutputFilterByType DEFLATE application/javascript  AddOutputFilterByType DEFLATE application/x-javascript  DeflateCompressionLevel 9 # Browser specific settings  BrowserMatch ^Mozilla/4 gzip-only-text/html  BrowserMatch ^Mozilla/4.0[678] no-gzip  BrowserMatch bMSIE !no-gzip !gzip-only-text/html  BrowserMatch bOpera !no-gzip  # Setup custom deflate log  DeflateFilterNote Input instream  DeflateFilterNote Output outstream  DeflateFilterNote Ratio ratio  LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate # Example of log file  CustomLog logs/deflate_log DEFLATE  | 
					
Crie agora o arquivo […]
Habilitar o SNMP e Ping no Endian
Existem situações onde queremos colocar um sistema para monitorar externamente nossa rede. Bom, existem diversos sistemas e formas de fazer isto. Uma dica é utilizar um sistema que monitore inclusive a “saúde” do equipamento e para isto precisamos habilitar no SNMP da máquina. Para quem usa o Endian Firewall, é necessário que sejam feitas algumas […]
Habilitando o SNMP no CentOS 6
Para instalar o SNMP em um servidor CentOS, basta seguir os seguintes comandos:
| 
					 1 2 3 4 5  | 
						yum install net-snmp chkconfig snmpd on service snmpd start  | 
					
Lembre-se de verificar as as portas utilizadas pelo SNMP estão liberadas no seu servidor. Se quiser alterar algo na configuração, edite o arquivo /etc/snmp/snmpd.conf
Procurar no log do Zimbra
As vezes precisamos saber “o que aconteceu” com um determinado e-mail. No caso do Zimbra, basta você procurar no arquivo /var/log/zimbra.log Neste arquivo fica logado tudo que o servidor recebe e entrega. Uma dica: Podemos usar o comando: cat arquivo |grep -i “item procurado” > novoarquivo Exemplo: cat zimbra.log |grep -t xpto.com.br > log.txt Neste […]