Linux Operations and Diagnostics for Web Servers
Linux servers in web operations require quick access to directories, services, network, and load. The following blocks cover typical tasks in day-to-day operations.
Important directories
/var/www/for webroot and delivery/etc/nginx/for web server configuration/etc/php/for PHP configuration/etc/systemd/for services and workers/var/log/for logs/etc/ssl/certsfor certificates
Read network and reachability
This block shows name resolution, open ports, addresses, routes, and socket states.
Read processes, memory, and filesystem
These commands show load, sessions, memory, and used directories.
Control services with systemd
Follow logs
Logs show service state, errors, and requests directly.
Key points
- Fixed directories make orientation easier
ss,ip, anddigshow reachabilityps,df, andfreeshow load and usagesystemctlandjournalctlshow service state and logs
