Ir para conteúdo
  • Cadastre-se

Marlon

Membro
  • Postagens

    112
  • Registro em

  • Última visita

Tudo que Marlon postou

  1. ja resolvi, usei o gparted, mesmo assim obrigado
  2. acabei de aumentar o hd do meu vps que so tinha 2gb [root@localhost ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 2,0G 1,2G 656M 65% / tmpfs 939M 0 939M 0% /dev/shm o /dev/vda2 e o swap e assim que eu extendi, criou um /dev/vda3 como faço para excluir o 3 e extender o 1 ? Comando (m para ajuda): p Disk /dev/vda: 107.4 GB, 107374182400 bytes 16 heads, 63 sectors/track, 208050 cylinders Units = cilindros of 1008 * 512 = 516096 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000285a6 Dispositivo Boot Start End Blocks Id System /dev/vda1 * 3 4066 2048000 83 Linux Partition 1 does not end on cylinder boundary. /dev/vda2 4066 4162 48128 82 Linux swap / Solaris Partition 2 does not end on cylinder boundary. /dev/vda3 1 1 472+ 5 Estendida Partições lógicas fora da ordem do disco
  3. amigo, instalei varnish em outro vps aqui, e funcionou, desta vez instalei o debian consegui arrumar as portas etc.... so que, sempre que adiciono a linha sub vcl_fetch { da este erro root@WS-908RL ~# service varnish restart [FAIL] Stopping HTTP accelerator: varnishd failed! [FAIL] Starting HTTP accelerator: varnishd failed! Message from VCC-compiler: Invalid return "pass" ('input' Line 59 Pos 21) return (pass); --------------------####-- ...in subroutine "vcl_fetch" ('input' Line 54 Pos 5) sub vcl_fetch { ----#########-- ...which is the "vcl_fetch" method Legal returns are: "deliver" "error" "hit_for_pass" "restart" Running VCC-compiler failed, exit 1 VCL compilation failed sub vcl_fetch { /* Host: www.mysite.com */ if (req.http.host ~ "^(?:www\.)?mysite.com") { /* Do not cache POST requests */ if (req.request == "POST") { >>>>>>>LINHA 59 <<<<<<< return (pass); } /* If the request is for pictures, javascript, css, etc */ if (req.url ~ "\.(jpg|jpeg|png|gif|css|js)$") { /* Cache it, and make it last 2 hours */ set beresp.ttl = 7200s; /* Make the request static by removing any cookies set by those static files */ unset beresp.http.set-cookie; /* Deliver the cached object */ return (deliver); } /* If I am logged in to wordpress, I DO NOT WANT TO SEE cached pages */ if (req.http.cookie ~ "wordpress_logged_in") { return (pass); } else { /* Cache anything for 2 minutes. When the cache expires it will be cached again and again, at the time of the request */ set beresp.ttl = 120s; return (deliver); } } } varnishd -V varnishd (varnish-3.0.5 revision 1a89b1f) Copyright © 2006 Verdens Gang AS Copyright © 2006-2011 Varnish Software AS
  4. a porta é 8081 http://nginx.via220.com:8081/ acessa o link e o vps do varnish http://nginx.via220.com:8081/ nao funciona nem a cacete
  5. sim, esta como abaixo o sub_vclfeth nao funciona o varnish nao iniciar quando inicio..... e ai amigo, o que devo fazer ? backend default { .host = "localhost"; .port = "8081"; } sub vcl_recv { /* These rules will apply for all the requests served */ /* Post requests will not be cached */ if (req.request == "POST") { return (pass); } /* Normalize encoding/compression */ if (req.http.Accept-Encoding) { if (req.http.Accept-Encoding ~ "gzip") { set req.http.Accept-Encoding = "gzip"; } elsif (req.http.Accept-Encoding ~ "deflate") { set req.http.Accept-Encoding = "deflate"; } else { remove req.http.Accept-Encoding; /* unknown algorithm, just remove */ } } /* Host: www.mysite.com; these rules will apply only for mysite.com */ if (req.http.host ~ "^(?:www\.)?mysite.com") { unset req.http.vary; /* Remove the following line if your site is serving content in the language it reads from the Accept-Language header */ unset req.http.accept-language; /* If I am logged in to wordpress, I DO NOT WANT TO SEE cached pages */ if (req.http.cookie ~ "wordpress_logged_in") { return (pass); } else { /* If I'm just a regular visitor */ /* If the request is for pictures, javascript, css, etc */ if (req.url ~ "\.(jpg|jpeg|png|gif|css|js)$") { /* Remove the cookie and make the request static */ unset req.http.cookie; return (lookup); } /* Try to lookup in the cache */ return (lookup); } } /* If the host header is empty, just return error */ error 404 req.http.host; return (lookup); }
  6. sim, ispconfig listen 8080; meusite listen 8085; apps.vhost listen 8081; edit--- estava na pasta conf.d edeitei o arquivo default.conf..... agora estou com a seguinte dúvida porque quando eu acesso http://nginx.via220.com/ nao aparece o site e quando acesso http://nginx.via220.com:8081/ nao consigo entender isso.... como faço para o varnish pegar os dados la na porta 8081 ?
  7. pessoal, hoje terminei de configurar.... o varnish esta na porta 80 funcionando sendo que o nginx, eu nao consigo mudar geito nenhum ele so da este erro [root@localhost ~]# service nginx start Iniciando o nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] still could not bind() [FALHOU] [root@localhost ~]# porque o varnish esta na 80 parece que o nginx usa a porta 80 + a porta que eu quero pro site ta foda isso
  8. consegui configurar o varnish para rodar na porta 80 mas o nginx esta rodando tb na 80, e nao iniciar eu nao consigo mudar de geito nenhum o site muda de porta, mas o nginx não como faço ? nem o google ajuda
  9. QUANDO ADICIONO O sub vcl_fetch { /* Host: www.mysite.com */ if (req.http.host ~ "^(?:www\.)?mysite.com") { /* Do not cache POST requests */ if (req.request == "POST") { return (pass); } /* If the request is for pictures, javascript, css, etc */ if (req.url ~ "\.(jpg|jpeg|png|gif|css|js)$") { /* Cache it, and make it last 2 hours */ set beresp.ttl = 7200s; /* Make the request static by removing any cookies set by those static files */ unset beresp.http.set-cookie; /* Deliver the cached object */ return (deliver); } /* If I am logged in to wordpress, I DO NOT WANT TO SEE cached pages */ if (req.http.cookie ~ "wordpress_logged_in") { return (pass); } else { /* Cache anything for 2 minutes. When the cache expires it will be cached again and again, at the time of the request */ set beresp.ttl = 120s; return (deliver); } } } o varnish nao inicia e nao tem log de erro ==edit== essa linha que estava fazendo o varnish nao iniciar so o que achei estranho em toda essa configura que esta no tutorial e que o nginx esta rodando na porta 80 o varnish porta 8081 como vou saber que o varnish esta sendo util ? devo por o varnish na porta 80 e o nginx para 8081 ? if (req.request == "POST") { return (pass); }
  10. muito obrigado Admin PDH era disso que eu precisava
  11. voce usa apache ou nginx + varnish ? isso e varnish cache ? o vps e debian https://www.varnish-cache.org/installation/debian pode me passar a config do varnish e um link tutorial correto ? vlw
  12. pesquisei aqui, o CloudLinux ele é o que exatamente ? sistema operacional ? sistema para instalar no cpanel ???? n entendi mcliano> eu instalei o cpanel, e o site nao passa de 300 on...... com nginx + de 400 SEM ERROS, voce deve ter esquecido de algo , mas nginx achei otimo
  13. eu tenho um dedicado de 8gb processador intel i5 4 nucleos de 3.1 esta com nginx e esta rodando um site em wordpress a memoria nao passa de 500mb o processador nao passa de 50% e quando o site atigente 500 pessoas comessa a dar leg fique aquele " aguardando resposta do servidor " quando atinge 700 nem se fala.... eta e a conf do meu nginx tem algo errado ? como faço para alocar mais memoria para o nginx ? preciso fazer upgrade no servidor ? user www-data; worker_processes 4; pid /var/run/nginx.pid; events { worker_connections 2048; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 4096; server_tokens off; server_names_hash_bucket_size 1024; server_name_in_redirect off; fastcgi_read_timeout 300; include /etc/nginx/mime.types; default_type application/octet-stream; ## # Logging Settings ## access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; ## # Gzip Settings ## gzip on; gzip_disable "msie6"; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 32 16k; gzip_http_version 1.1; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; ## # nginx-naxsi config ## # Uncomment it if you installed nginx-naxsi ## #include /etc/nginx/naxsi_core.rules; ## # nginx-passenger config ## # Uncomment it if you installed nginx-passenger ## #passenger_root /usr; #passenger_ruby /usr/bin/ruby; ## # Virtual Host Configs ## include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; }
  14. kkkk a combinação do whmcs e hostbill ashashashash mas nao, nunca usei nao
  15. Instalei o ffmpeg no meu whm. Ele é bem pesado, tem como eu deixar que alguns usuarios usem este recurso ? e tambem limitar o processamento ? pois não achei esta opção, mas se que tem, pois eu ja comprei uma hospedagem na arvixe e tem o limite de processamento no cpanel obrigado ae
  16. Fico feliz com esta resposta, odeio fazer o mal na internet obrigado
  17. Pessoal, um cliente quer algo para poder mandar SPAW o que devo comprar ?
  18. estou com um problema grave, mudei o ip e coloquei so os dois clientes que realmente usam o e-mail para trabalho so que o ip esta entrando nessa puta de http://www.uceprotect.net/en/rblcheck.php eu não consigo entender mais isso
  19. eu ja tinha visto, to fazendo aqui rpa ver
  20. Pessoal, o ip do ns1 esta na blacklist como faço para que os ips de ALGUNS clientes, possam ser enviados por outro ip ?
  21. estou seguindo este tutorial estou usando centos 6 64 http://www.tecmint.com/install-phpmyadmin-for-apache-or-nginx-on-rhelcentos-6-3-5-8-fedora-17-12/ quando eu chego na parte do vi etc/nginx/sites-available/phpMyAdmin este "sites-available" não existe não sei o que faço, coloquei na pasta o nginx e ainda criei a pasta sites available depois vem # mkdir -p /var/log/nginx/phpmyadmin # cd /etc/nginx/sites-enabled # ln -s /etc/nginx/sites-available/phpMyAdmin o mkdir funcionou agora o resto, também n existe, fico puto com isso
  22. tiros = pulicia tirus = bandido vagabundo traficante de cadeia
×
×
  • Criar Novo...

Informação Importante

Concorda com os nossos termos?

-