7,540
edits
Changes
→Testing connection
==Testing connection==
'''curl'''
<pre>
$ curl -v -k https://mail.berkimycompany.org:443* Rebuilt URL to: https://mail.berkimycompany.org:443/
* Hostname was NOT found in DNS cache
* Trying 80.99.81.245...
* Connected to mail.berkimycompany.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@berkimycompany.org,CN=mail.berkimycompany.org,OU=BUI,O=Berki mycompany 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.berkimycompany.org* issuer: E=info@berkimycompany.org,CN=ca.berkimycompany.org,OU=Berkimycompany-CA Division,O=Berki mycompany Corporation,L=Budapest,C=HU
> GET / HTTP/1.1
> User-Agent: curl/7.37.0
> Host: mail.berkimycompany.org
> Accept: */*
>
</pre>
==Ki hallgatózik egy adott porton==
'''lsof''': ez nem mindig a legjobb, nem minden esetben mutatja meg a pid-et.
<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>
<br>
'''netstat''': fontos, hogy root-ként futtassuk, mert bizonyos process-eket csak a root láthat.
<pre>
# netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 192.168.10.214:9999 0.0.0.0:* LISTEN 22200/ssh
tcp 0 0 192.168.10.214:16431 0.0.0.0:* LISTEN 22193/ssh
tcp 0 0 192.168.10.214:8080 0.0.0.0:* LISTEN 22193/ssh
tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 22633/webservd-wdog
...
</pre>
=Disk=
===Partition space===
'''df'''
<pre>
# df -h
===Folder size===
'''du'''
<pre>
# du -sh *