Difference between revisions of "Server Tools"

From berki WIKI
Jump to: navigation, search
(Testing connection)
Line 28: Line 28:
 
</pre>
 
</pre>
  
 +
Ki hallgatózik egy adott porton:
 +
<pre>
 +
# lsof -i tcp:389
 +
COMMAND  PID USER  FD  TYPE DEVICE SIZE/OFF NODE NAME
 +
slapd  19636 root    7u  IPv4 440051      0t0  TCP *:ldap (LISTEN)
 +
slapd  19636 root    8u  IPv6 440052      0t0  TCP *:ldap (LISTEN)
 +
</pre>
  
 
=Disk=
 
=Disk=

Revision as of 13:16, 28 April 2017

Networking

Testing connection

$ curl -v -k https://mail.berki.org:443
* Rebuilt URL to: https://mail.berki.org:443/
* Hostname was NOT found in DNS cache
*   Trying 80.99.81.245...
* Connected to mail.berki.org (80.99.81.245) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* skipping SSL peer certificate verification
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
* Server certificate:
* 	subject: E=info@berki.org,CN=mail.berki.org,OU=BUI,O=Berki Ugyvedi Iroda,L=Budapest,C=HU
* 	start date: Mar 03 18:36:50 2015 GMT
* 	expire date: Feb 28 18:36:50 2025 GMT
* 	common name: mail.berki.org
* 	issuer: E=info@berki.org,CN=ca.berki.org,OU=Berki-CA Division,O=Berki Corporation,L=Budapest,C=HU
> GET / HTTP/1.1
> User-Agent: curl/7.37.0
> Host: mail.berki.org
> Accept: */*
> 
< HTTP/1.1 200 OK
....

Ki hallgatózik egy adott porton:

# lsof -i tcp:389
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
slapd   19636 root    7u  IPv4 440051      0t0  TCP *:ldap (LISTEN)
slapd   19636 root    8u  IPv6 440052      0t0  TCP *:ldap (LISTEN)

Disk

Size, space

Partition space

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_server-lv_root
                      9.5G  2.5G  6.6G  28% /
tmpfs                 4.9G     0  4.9G   0% /dev/shm
/dev/md0              283M   64M  205M  24% /boot
/dev/mapper/vg_server-lv_home
                      366G   23G  325G   7% /home
/dev/mapper/vg_server-lv_var
                       29G   24G  3.5G  88% /var

Folder size

# du -sh *
12K	cache
3.7G	files
764M	files_trashbin
674M	files_versions
294M	thumbnails

Memory

Memory usage by processes

# ps aux --sort -rss
# ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }'

Sum memory usage

# free -h