Zmiany pomiędzy wersją 14 and wersją 15 dla AdminGuide/LinuxConsole

Pokaż
Ignoruj:
Data i czas:
11/18/16 10:08:44 (7 years temu)
Autor:
JP (IP: 46.134.12.60)
Komentarz:

--

Legend:

Bez zmian
Dodane
Usunięte
Zmienione
  • AdminGuide/LinuxConsole

    v14 v15  
    3131-- oglądanie bieżące pliku loga postgres 
    3232tail -f /var/log/postgresql/postgresql-8.3-main.log 
     33 
     34-- zrolowanie loga php_error.log (pozostawia ostatnie 10000 linii w pliku php_error.log.last) 
     35tail -n 10000 /var/log/php_error.log > /var/log/php_error.log.last 
     36echo "" > /var/log/php_error.log  
    3337}}} 
    3438 
     
    5761/etc/init.d/postgresql restart 
    5862}}} 
     63 
     649. Wyświetlenie aktualnie wykonywanych procesów 
     65{{{ 
     66ps aux 
     67 
     68-- pokaż tylko procesy mające w nazwie php 
     69ps aux | grep php  
     70}}} 
     71 
     7210. Zabicie procesu (parametr PID należy zastąpić odczytanym z polecenia ps identyfikatorem procesu czyli tzw. PID-em.  
     73{{{ 
     74kill -9 PID  
     75}}}