Backup

Server Windows 50 Solutii

Server Linux 16 Solutii

Modify your hosts file Linux

Modifying your hosts file enables you to override the DNS for a domain, on that particular machine. This is useful when you want to test your site without the test link, prior to going live with SSL; verify that an alias site works, prior to DNS changes; and for other DNS-related reasons. Modifying your hosts file causes your local machine to look directly at the IP address specified.

[mai mult...]

LINUX: Cum verfici porturile TCP/UPD deschise si CPU usage

Pentru a verifica porturile deschide pe statie, se foloseste comanda netstat.
Comanda netstat se impreuna cu sudo pentru o interogare elevata.

sudo netstat -tulpn (argumentul -tulpn iti listeaza porturile tcp si udp)

 

In momentul in care folosim sudo, este posibil sa avem nevoie de parola pentru superuser.

 

Pentru a verifica procesul se tasteaza urmatoarea comanda:

ps aux | grep “numele procesului”
Ex. ps aus | grep nginx 

Se poate folosi si comanda “top” sau “htop”

Comanda htop are si reprezentare grafica a procesului dar trebuie instalata ulterior. Nu vine instalata default.

[mai mult...]