Go Back   cPanel Forums > International Discussions > Discusión en Español

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-22-2008, 08:01 AM
Registered User
 
Join Date: May 2006
Posts: 85
auhosting is on a distinguished road
intento borrar logs para liberar /usr y no me deja

cuando intento borrar los logs de la particion /usr no me deja hacerlo
esto es lo que hago

root@ [/usr/local/apache/domlogs]# rm -rf *
-bash: /bin/rm: Argument list too long
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-23-2008, 06:37 AM
Registered User
 
Join Date: Apr 2003
Location: Madrid -Spain
Posts: 62
Hispalab
Cuidado que estamos borrando como root.... prueba en un sitio donde no puedas hacer algo de lo que arrepentirte antes de hacerlo en el servidor en producción.

Opción a lo bruto pero la más segura... borra el directorio y lo vuelves a crear:
rm -Rf /usr/local/apache/domlogs
mkdir /usr/local/apache/domlogs
chown root:wheel /usr/local/apache/domlogs
chmod 711 /usr/local/apache/domlogs

Hay opciones más elaboradas pero que si te equivocaras podrías destruirlo todo.
Saludos,
__________________
--
Luis M. Rodríguez
netmaster@hispalab.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-23-2008, 07:18 AM
Registered User
 
Join Date: May 2006
Posts: 85
auhosting is on a distinguished road
bueno por lo general y una vez cada 6 meses yo borraba esto ejecutando
[/usr/local/apache/domlogs]# rm -rf *

pero desde hace poco ya no me deja hacerlo intentare lo que me indicas, gracias por tus comentarios.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-23-2008, 07:24 AM
Registered User
 
Join Date: Apr 2003
Location: Madrid -Spain
Posts: 62
Hispalab
en el whm puedes hacer que los borre una vez creadas las estadísticas para cada dominio.
Tweak Settings > marca "Delete each domain's access logs after stats run"

Saludos,
__________________
--
Luis M. Rodríguez
netmaster@hispalab.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-22-2009, 11:34 PM
Registered User
 
Join Date: May 2006
Posts: 85
auhosting is on a distinguished road
solo debes ejecutar
find . -name '*' | xargs rm
y se borraran
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-23-2009, 12:11 AM
cPanelDon's Avatar
cPanel Staff (Administrator)
 
Join Date: Nov 2008
Location: Houston, Texas, U.S.A.
Posts: 489
cPanelDon is on a distinguished road
Exclamation

Do not run the commands in this topic. Please be extremely careful and cautious when using the "rm" command.

Here is the safest method to clean or remove domlogs, via WHM:

WHM: Main >> Server Configuration >> Tweak Settings >> Stats and Logs:
* Delete each domain's access logs after stats run


Translation via Google ( Google Translate ):

No ejecute los comandos en este tema. Por favor, tenga mucho cuidado y cautela cuando se utiliza el "rm" de comandos.

Aquí está el método más seguro para limpiar o quitar domlogs, a través de WHM:

WHM: Main >> Server Configuration >> Tweak Settings >> Stats and Logs:
* Delete each domain's access logs after stats run
__________________
We are here to help where needed to ensure a successful resolution. Feel free to submit a ticket for hands-on assistance; our support team will be able to investigate, diagnose and troubleshoot the issue: https://tickets.cpanel.net/submit/
--
cPanel Don, Technical Analyst
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-29-2009, 06:16 PM
Registered User
 
Join Date: Feb 2005
Location: Chile, Santiago.
Posts: 13
cokequai is on a distinguished road
Los logs que puedes borrar son los que están en /var/logs y son aquellos que tienen la extensión .1 y .1.gz

Para borrar estos archivos utiliza

rm -rf *.1
rm -rf *.1.gz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-12-2009, 09:38 AM
Registered User
 
Join Date: May 2006
Posts: 85
auhosting is on a distinguished road
Error : /bin/rm: Argument list too long
Escrito el 08 de Febrero, 2008


Ultimamente me he encontrado bastante a menudo con este error /bin/rm: Argument list too long, parece ser que cuando intentamos eliminar una cantidad ingente de archivos de un directorio o el mismo directorio que los tiene, el comando rm no puede manejar una lista tan grande de archivos y lanza el error /bin/rm: Argument list too long.

Para solucionarlo debemos eliminar los archivos de la siguiente forma :

find . -name '*' | xargs rm

Haciendolo de esta forma eliminará los archivos sin mayor problema.

Fin entrada Error : /bin/rm: Argument list too long
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:58 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc