-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


[] Linux-,

, 06 2017 . 15:42 +
Linux-, , , , 24x7. , , . . ? , , .

image

, , , , : , ?. , . , .

:


, 1980-, Unix , Linux - , . , , , .

, . - , : .

, , - , .

DevOps, , Chef Puppet, , . , Docker Swarm, Mesosphere Kubernetes, , .

, . , AWS Lambda, Iron.io, Google Cloud Functions.

, , , .

, , , , , . , . , - , - . , , .

. , : . , . . . , , .

, , , , , , . , .

.


. , , , . , , , .

, . , Ethernet- , .

, - , Ethernet- :

$ sudo ethtool eth0

, , , .

, . , , , - - . , , .

. , .

, , , .

, , BIOS/UEFI , , dmidecode:

$ sudo dmidecode --type memory

, . , SMBIOS . , dmidecode Memtest86. , . , - .

, Linux edac_core. . , , :

$ sudo modprobe edac_core

- , - , :

$ sudo grep "[0-9]" /sys/devices/system/edac/mc/mc*/csrow*/ch*_ce_count

, (, csrow). , dmidecode , , .

.


, , . ? , . , , , .

, , , IBM Tivoli Storage Manager. , , , . , . Windows- 3076895. , , .

, , , . , , .

. ? . :

$ sudo ps -ef | grep apache2
$ sudo netstat -plunt | grep apache2

, , , - Apache , :

$ sudo service apache2 start

, , , - . , , , , .

. , , , , , .

. top


, , , top. , , , . Linux-. , . , . top, .

, , , , M. , , , , P. , T. , , , b.

, , , , O o. , :

add filter #1 (ignoring case) as: [!]FLD?VAL

, , . , COMMAND=apache, Apache.

top . , , c.

top V. .

, u U, , , i.

top Linux , . , htop , Ncurses. htop, , .

, top . , , , : , . top, , , . , less, grep tail -f.

.


, , , , . .

df, disk filesystem. .

df .

  • $ sudo df -h

    . , , .

  • $ sudo df -i

    inodes .

df T. . , $ sudo df -hT , .

- , , Iostat. sysstat . , - , .

, :

$ iostat -xz 1

. , - . , , . ? top , , MySQL ( - ). , , - .

%util, . , . , 60% . 100%, , .

, , .

, 100% , , , - -. , . , , , .

.


, , . /var/log, .

Linux - . , , . . , , . . - , . .

, . , , Digital Ocean.

, . dmesg. . , , 10 :

$ dmesg | tail

? , , , . , , tail -f. :

$ dmesg | tail -f /var/log/syslog

syslog, , .

:

$ sudo find /var/log -type f -mtime -1 -exec tail -Fn0 {} +

.

systemd , Journalctl. Systemd journald. Linux, journald , .

journald , . , :

$ sudo mkdir -p /var/log/journal

/etc/systemd/journald.conf, :

[Journal] Storage=persistent

:

journalctl -b

. , , , :

$ journalctl -b -1

, .
, journalctl.

, . , , , grep, awk, , .

, , Graylog. , . MongoDB Elasticsearch -. Graylog . Graylog, Linux, . , DevOps-, , Chef, Puppet Ansible.


, , , . , . , , , .

! ?
Original source: habrahabr.ru (comments, light).

https://habrahabr.ru/post/330350/

:  

: [1] []
 

:
: 

: ( )

:

  URL