Servers support many of the services that organizations use every day, including websites, business applications, databases, file sharing, authentication, and cloud-based systems.
However, operating a server involves much more than installing an operating system. Administrators must manage users, services, storage, network connectivity, security, updates, monitoring, backups, and application dependencies.
A server can be a physical machine, a virtual machine, a cloud instance, or a containerized workload. Regardless of its deployment model, it needs to be configured, secured, monitored, maintained, and recovered when problems occur.
This guide focuses on the practical foundations of server administration across Linux and Windows environments. It explains common server roles, essential administration commands, networking, storage, remote access, monitoring, security hardening, troubleshooting, and backup procedures.
It is intended for students, aspiring system administrators, network engineers, and IT professionals who want to understand how to operate and maintain reliable server environments.
For a broader explanation of infrastructure components and architecture, see our guide to Servers and Infrastructure Explained.
Server administration is the process of configuring, operating, securing, monitoring, and maintaining servers so that applications and services remain available and perform as expected.
Typical administrative responsibilities include:
For example, maintaining a web server may involve checking its service status, reviewing application logs, verifying HTTPS connectivity, monitoring disk usage, and confirming that its database dependency is available.
Server administration therefore requires understanding how the operating system, network, applications, and underlying resources interact.
A server’s role determines which services it provides and how it should be configured.
Common server roles include:
| Server Role | Main Responsibility | Typical Dependencies |
|---|---|---|
| Web server | Delivers websites and HTTP responses | DNS, network, application |
| Application server | Executes application logic | Web layer, database, storage |
| Database server | Stores and processes application data | Storage, network, database engine |
| File server | Provides shared file access | Network, authentication, storage |
| DNS server | Provides name resolution | Network, DNS records, upstream resolvers |
| DHCP server | Assigns network configuration | Network interfaces, address scopes |
| Authentication server | Verifies users and systems | Identity data, network, security policies |
One physical or virtual machine can host multiple roles. However, production environments may separate services to improve security, resource isolation, scalability, and availability.
For example, a web application may depend on DNS resolution, a firewall, a web server, an application runtime, a database, and persistent storage.
A failure in one dependency can affect the entire service. Administrators should therefore document and understand the dependencies of every important server.
Servers can run on different infrastructure platforms. Administrators need to understand the operational differences because each deployment model introduces different responsibilities.
A physical server is dedicated hardware that provides computing resources.
Typical components include:
Physical servers require hardware monitoring, firmware maintenance, power and cooling management, and replacement planning.
A virtual machine (VM) is a software-defined computer that uses resources provided by a physical host.
A hypervisor manages virtual machines and allocates CPU, memory, storage, and virtual network interfaces.
Common virtualization platforms include VMware, Microsoft Hyper-V, and KVM.
Virtualization can simplify provisioning, improve hardware utilization, and support workload migration. However, administrators must also monitor host capacity, virtual networking, storage performance, and hypervisor health.
Cloud instances provide computing resources through a cloud platform.
Administrators may manage virtual machines, operating systems, network rules, storage volumes, identities, and monitoring through provider portals, APIs, or automation tools.
Cloud computing changes how infrastructure is provisioned and managed, but the fundamentals of server administration remain important.
A server operating system manages hardware resources and provides the environment in which applications and services run.
Two widely used server operating system families are Linux and Windows Server.
Common Linux distributions include:
Linux is commonly used for web hosting, databases, cloud workloads, containers, network services, and DevOps platforms.
Administrators frequently use command-line tools, SSH, package managers, systemd services, and configuration files to manage Linux systems.
For a deeper practical explanation, see our Linux Server Administration guide.
Microsoft Windows Server provides enterprise features such as:
Administrators can use Server Manager, Windows Admin Center, Microsoft Management Console, Remote Server Administration Tools (RSAT), and PowerShell.
| Area | Linux | Windows Server |
|---|---|---|
| Administration | Command line and GUI tools | GUI tools and PowerShell |
| Remote access | Commonly SSH | PowerShell Remoting and RDP |
| Automation | Bash, Python, Ansible | PowerShell and other tools |
| Common workloads | Web, cloud, databases, DevOps | Microsoft enterprise services and applications |
| File permissions | Unix permissions and ACLs | Windows ACL model |
| Licensing | Depends on distribution and support | Commercial licensing and support options |
Neither platform is universally better. The appropriate choice depends on application compatibility, operational requirements, licensing, available skills, and integration needs.
Many organizations operate Linux and Windows servers together.
A consistent initial configuration helps reduce operational problems and makes servers easier to maintain.
Before placing a server into production, administrators should review the following areas.
Assign a meaningful hostname that identifies the server’s role or environment.
For example:
WEB-01
DB-01
FILE-01
DNS-01 Ensure that the server uses a reliable time synchronization source. Accurate time is important for authentication, certificate validation, troubleshooting, log correlation, and distributed applications.
Create only the accounts required for administration and service operation.
Apply the principle of least privilege: users and services should receive only the permissions necessary for their tasks.
Avoid using a shared administrator account for routine work.
Install supported security and maintenance updates through a controlled process.
Before applying updates to production systems, consider application compatibility, maintenance windows, rollback options, and service availability.
Verify:
Test connectivity to the services on which the server depends.
Record the server’s hostname, role, operating system version, IP configuration, installed services, dependencies, administrative access methods, and backup policy.
A documented baseline makes future troubleshooting and maintenance more consistent.
Linux server administration involves managing processes, services, users, storage, networking, packages, and system security.
The following commands provide a practical starting point.
hostname
uname -a
uptime These commands display the hostname, kernel and system information, and system uptime.
top
free -h top displays running processes and resource usage. free -h provides a readable summary of memory usage.
df -hT To inspect directory usage under /var:
sudo du -xhd1 /var The df command reports filesystem usage, while du helps identify directories consuming space.
ip addr
ip route These commands display network interfaces and routing information.
sudo ss -tulpn This command displays listening TCP and UDP sockets. Administrative privileges may be needed to show process details.
dig example.com This command helps verify whether a domain name resolves successfully.
For more advanced DNS troubleshooting, see our DNS Explained guide.
On systems using systemd:
sudo systemctl status nginx
sudo systemctl restart nginx Check the service status before restarting it. In production, understand the impact of a restart and use an appropriate maintenance procedure.
Package-management commands vary between distributions.
For Debian and Ubuntu:
sudo apt update
apt list --upgradable For RHEL-family distributions:
sudo dnf check-update After reviewing available updates, apply them through the organization’s maintenance process.
Administrators should understand package dependencies and the possibility of service interruptions before updating production systems.
Windows Server provides graphical and command-line tools for managing operating systems, services, network configuration, and workloads.
PowerShell is especially useful for repeatable administration and troubleshooting.
Get-ComputerInfo Get-Service Get-Process Get-NetIPConfiguration Get-NetAdapter Get-NetTCPConnection -State Listen Test-NetConnection example.com -Port 443 Specifying a port helps test whether a particular TCP service is reachable.
Get-WinEvent -LogName System -MaxEvents 50 This command retrieves recent events from the Windows System log.
PowerShell enables administrators to perform repetitive operations consistently and manage multiple systems more efficiently.
Official guidance is available in Microsoft Learn: Manage Windows Server.
Networking is fundamental to server operation. A server must communicate with clients, other servers, infrastructure services, and sometimes external systems.
A typical network configuration includes:
Production environments should separate systems according to their roles and security requirements.
For example, a network may use a DMZ for public-facing web servers and separate internal networks for application and database systems.
Internet
|
Firewall
|
DMZ
|
Web Servers
|
Internal Firewall
|
Application Network
|
Database Network Segmentation helps restrict unnecessary communication and can reduce the impact of a compromised system.
Administrators should understand the routing and addressing fundamentals described in our TCP/IP guide.
For systems that receive their configuration automatically, our DHCP Explained guide covers address allocation and the DORA process.
Network services use ports to receive and process connections.
Common default ports include:
| Service | Typical Port |
|---|---|
| HTTP | TCP 80 |
| HTTPS | TCP 443 |
| SSH | TCP 22 |
| DNS | TCP/UDP 53 |
| DHCP server/client | UDP 67/68 |
| SMTP | TCP 25 |
| SMB | TCP 445 |
| RDP | TCP 3389 |
These are common defaults. Individual deployments may use different ports or additional security controls.
A listening port does not automatically mean that a server is vulnerable. However, every exposed service should have a clear purpose and appropriate access restrictions.
On Linux:
sudo ss -tulpn On Windows:
Get-NetTCPConnection -State Listen Administrators should regularly review exposed services and disable or restrict those that are not required.
A firewall controls network traffic according to configured rules. Rules may consider source and destination addresses, protocols, ports, and connection state.
A practical firewall policy follows the principle of least privilege: allow only the connections required by the server’s role.
For example:
TCP 443 -> Public HTTPS access to a web server
TCP 22 -> Approved Linux administration network
TCP 3389 -> Approved Windows administration network
Database -> Authorized application servers only A database server should generally not be directly accessible from the public Internet. Access should be restricted to authorized application systems and administrative networks.
Administrators should document, review, and test firewall rules after changes.
For a deeper explanation of firewall technologies and policies, see Firewalls Explained.
Servers use storage for operating systems, applications, databases, logs, and user data.
Common storage technologies include:
Important storage characteristics include capacity, latency, IOPS, throughput, reliability, and recovery capabilities.
On Linux:
df -hT To inspect directory sizes:
sudo du -xhd1 /var Administrators should investigate unexpected storage growth before a filesystem becomes full.
For example, large application logs, temporary files, database growth, and container logs can consume disk space unexpectedly. See our practical guide to Docker logs taking too much disk space.
RAID combines multiple drives to provide different combinations of performance, capacity, and redundancy.
| RAID Level | Main Characteristic |
|---|---|
| RAID 0 | Striping without redundancy |
| RAID 1 | Mirroring |
| RAID 5 | Distributed parity; tolerates one member-drive failure |
| RAID 6 | Dual parity; tolerates two member-drive failures |
| RAID 10 | Mirroring combined with striping |
The appropriate RAID level depends on workload, performance, capacity, and recovery requirements.
RAID is not a backup. It can help maintain availability after certain drive failures, but it does not protect against accidental deletion, ransomware, data corruption, or every hardware failure.
Independent backups and tested restoration procedures remain necessary.
For Linux-specific filesystem concepts, see Linux File System Explained.
Monitoring provides visibility into server health, performance, and service availability.
Without monitoring, administrators may not discover a problem until users report that an application is unavailable or slow.
Important metrics include:
Useful Linux commands include:
uptime
free -h
df -h
top Where the required tools are installed, iostat can provide additional disk I/O information.
On Windows, administrators can use PowerShell and Performance Monitor to inspect processes, services, resource usage, and performance counters.
Monitoring should not focus only on CPU utilization. A server with low CPU usage may still have problems caused by memory pressure, disk saturation, packet loss, database locks, DNS failures, or unavailable application dependencies.
Good monitoring combines infrastructure metrics with service-level checks so administrators can understand both system health and user experience.
Logs record events generated by operating systems, applications, services, and security components.
They help administrators identify errors, investigate unexpected behavior, and understand what happened before a failure.
On systems using systemd, administrators can use journalctl.
Display journal entries:
journalctl Show the most recent entries:
journalctl -n 100 Follow new log entries:
journalctl -f Display logs for a specific service:
journalctl -u nginx Windows provides Event Viewer for inspecting Application, System, and Security events.
PowerShell can also retrieve event records:
Get-WinEvent -LogName System -MaxEvents 50 Administrators should know which logs are relevant to each server role and ensure that important records are retained and protected.
A useful troubleshooting question is not simply whether the server is running, but what evidence the system provides about the problem.
Remote administration allows administrators to manage servers without being physically present at the machine.
Secure Shell (SSH) is commonly used to administer Linux and Unix-like systems.
A basic connection uses:
ssh username@server-ip For example:
ssh admin@192.0.2.10 Important SSH security practices include:
Windows administrators may use:
Remote administration services should be protected by appropriate network restrictions, authentication, monitoring, and access policies.
Server security requires multiple layers of protection. No single control is sufficient for every threat.
Important practices include:
Apply operating system and application security updates through a controlled maintenance process. Test important changes where practical before deploying them to production.
Give users and services only the permissions required to perform their tasks.
Use strong authentication mechanisms and additional factors where appropriate, especially for privileged accounts and remote access.
Separate public-facing systems from sensitive internal services. Restrict communication between network zones according to application requirements.
Expose only required services and ports. Review firewall rules periodically and remove unnecessary access.
Collect and review relevant system, application, and security events. Protect logs against unauthorized modification.
Protect backup systems and credentials. Keep independent copies and test restoration procedures.
Document how to detect, contain, investigate, and recover from security incidents.
[ ] Remove unnecessary services
[ ] Disable unused accounts
[ ] Apply security updates
[ ] Use strong authentication
[ ] Configure firewall rules
[ ] Restrict administrative access
[ ] Review user and service permissions
[ ] Enable relevant logging
[ ] Monitor authentication failures
[ ] Protect backup systems
[ ] Test restoration procedures
[ ] Document the server configuration Hardening should be based on the server’s role. A web server, database server, DNS server, and domain controller have different security requirements.
Containers provide a way to package and run applications in isolated environments.
Unlike traditional virtual machines, containers generally share the host operating system kernel while maintaining separate process, filesystem, and networking contexts.
A simplified architecture is:
Physical or Virtual Server
|
Host Operating System
|
Container Engine
|
+-----+-----+-----+
| | |
App 1 App 2 App 3 Docker is a widely used container platform. Its networking features allow containers to communicate with each other and, when configured, with external networks.
For example, an administrator can create a Docker bridge network:
docker network create app-network Containers can then be connected to the appropriate network.
Docker supports several network drivers, including bridge, host, and overlay. The correct choice depends on the deployment architecture.
A container’s writable layer should not be treated as the only location for important application data.
Persistent data should use an appropriate mechanism, such as a Docker volume or bind mount.
Create a volume:
docker volume create app-data A container can then mount the volume at the data directory required by its application:
docker run -d \
--name app \
--mount source=app-data,target=/var/lib/app \
image:tag The image name and target directory must match the application being deployed. Check the image documentation before using a mount path.
A Docker volume is persistent storage, not a backup. Its data must still be included in an appropriate backup and recovery plan.
Official technical references include Docker’s documentation for running containers, networking, and volumes.
High availability (HA) aims to keep services operational when individual components fail.
For important applications, relying on one server can create a single point of failure.
A simplified redundant design may use two application servers behind a load balancer:
Users
|
Load Balancer
/ \
/ \
Server 1 Server 2
\ /
\ /
Database High-availability designs may use:
Redundancy does not automatically guarantee high availability. Components must be configured, monitored, and tested so that the service can continue operating when a failure occurs.
Administrators should identify dependencies that may remain single points of failure, including DNS, storage, network links, and authentication services.
For a deeper technical explanation of cluster design and failover, see Server Clustering Explained.
Backups protect data and support recovery after accidental deletion, corruption, hardware failure, ransomware, or other incidents.
A backup strategy should define:
A simplified backup model is:
Production
|
+---------+---------+
| | |
Local Remote Offline or
Backup Backup Protected Copy Backup copies should be protected from unauthorized access and from the same failures that could affect production systems.
A successful backup job does not prove that recovery will work. Administrators must periodically test restoration of files, databases, applications, and complete systems.
Two important disaster recovery concepts are Recovery Point Objective (RPO) and Recovery Time Objective (RTO).
Recovery Point Objective (RPO) defines the maximum amount of data loss an organization is prepared to accept, expressed as a time interval.
For example:
RPO = 15 minutes The recovery design aims to limit data loss to approximately the previous 15 minutes.
Recovery Time Objective (RTO) defines the target time within which a service should be restored after an interruption.
For example:
RTO = 1 hour The service should be restored within the defined one-hour target.
RPO and RTO requirements influence backup frequency, replication, storage design, redundancy, and recovery procedures.
Troubleshooting should follow a systematic process rather than relying on random configuration changes.
A useful sequence is:
1. Identify the problem
|
2. Collect evidence
|
3. Check recent changes
|
4. Verify network connectivity
|
5. Check system resources
|
6. Check services and ports
|
7. Review logs
|
8. Test the application
|
9. Apply a controlled fix
|
10. Verify the result
|
11. Document the solution Start by checking whether the domain resolves:
dig example.com Test basic connectivity if ICMP is permitted:
ping example.com A failed ping alone does not prove that a website is unavailable because firewalls may block ICMP traffic.
Test the HTTPS response:
curl -I https://example.com Check listening sockets:
sudo ss -tulpn Check the web service:
sudo systemctl status nginx Review recent service logs:
sudo journalctl -u nginx -n 100 The troubleshooting path can be summarized as:
DNS Resolution
|
Network Connectivity
|
Firewall Rules
|
Listening Port
|
Web Service
|
Application
|
Database
|
Storage The objective is to identify the failing layer before making changes.
When a server becomes slow, inspect multiple resources rather than assuming that CPU utilization is the cause.
Check processes and CPU activity:
top Check memory:
free -h Check filesystem capacity:
df -h Check socket statistics:
ss -s On Windows, PowerShell and Performance Monitor can help inspect CPU, memory, disk, network, and process activity.
Always compare measurements with normal operating conditions. A high metric is not necessarily a problem unless it affects performance, availability, or service requirements.
Automation helps administrators perform repeated tasks consistently and reduce manual configuration errors.
Common automation activities include:
Common tools include:
Infrastructure as Code (IaC) manages infrastructure through machine-readable configuration files rather than relying entirely on manual configuration.
Automation should include testing, access controls, change management, and monitoring. A script or configuration error can affect many systems if it is deployed without appropriate validation.
For a dedicated explanation of this approach, see Infrastructure as Code Explained.
Documentation is essential to professional server administration. It helps administrators understand dependencies, troubleshoot problems, plan maintenance, and recover services.
For each important server, document:
Example server record:
Server: WEB-01
Role: Web Server
OS: Linux
IP: 192.0.2.20
Services:
- Nginx
- Application Runtime
- Monitoring Agent
Dependencies:
- DNS
- Database
- Storage
Backup:
- Daily
Monitoring:
- CPU
- RAM
- Disk
- HTTP availability Documentation should be updated whenever important infrastructure changes are made.
It should also be stored securely because it may contain sensitive operational information. Do not place passwords, private keys, or other secrets in ordinary server documentation.
Avoiding common mistakes improves security, reliability, and maintainability.
Only required services should be reachable. Administrative access should be restricted to approved networks and identities.
Unpatched operating systems and applications can introduce security and reliability risks.
A backup process is incomplete if administrators have never verified that its data can be restored.
Using the same credentials across multiple systems increases the potential impact of account compromise.
Logs often contain the evidence needed to identify service failures and security events.
Monitoring helps administrators detect problems before they cause prolonged service interruptions.
Undocumented systems are harder to troubleshoot, maintain, and recover.
RAID can provide certain forms of storage redundancy, but it does not replace independent backups.
Unneeded software and services increase complexity and may expand the attack surface.
Production changes should be planned, documented, tested where practical, and verified after implementation.
Use this checklist as a starting point when deploying or reviewing a server.
SYSTEM
[ ] Server role identified
[ ] Operating system and version documented
[ ] Hostname configured
[ ] Time synchronization verified
[ ] Update process defined
NETWORK
[ ] IP configuration verified
[ ] DNS resolution tested
[ ] Routing verified
[ ] Firewall configured
[ ] Required ports documented
SECURITY
[ ] Strong authentication configured
[ ] Least privilege applied
[ ] Unnecessary services removed
[ ] Administrative access restricted
[ ] Relevant logs enabled
STORAGE
[ ] Disk capacity checked
[ ] Storage health monitored
[ ] Backup configured
[ ] Restoration tested
SERVICES
[ ] Required services running
[ ] Dependencies documented
[ ] Service logs reviewed
MONITORING
[ ] CPU monitored
[ ] Memory monitored
[ ] Disk monitored
[ ] Network monitored
[ ] Application health monitored
DOCUMENTATION
[ ] Server role recorded
[ ] IP and network details recorded
[ ] Dependencies documented
[ ] Maintenance process documented
[ ] Recovery procedure documented Adapt the checklist to the server’s purpose and the organization’s security and availability requirements.
Learning server administration is easier when topics are studied in a logical order.
Understand:
Start with the CorgiNetwork TCP/IP guide.
Practice with Linux and Windows Server.
Understand filesystems, users and groups, permissions, processes, services, network configuration, and system logs.
Practice installing, configuring, and troubleshooting web servers, DNS, DHCP, databases, file sharing, and authentication services.
Understand virtual machines, hypervisors, virtual networks, virtual storage, and resource allocation.
Study firewalls, access control, server hardening, patch management, logging, and backup security.
Understand container images, containers, container networks, persistent volumes, and container security.
Practice with Bash, PowerShell, Python, Ansible, and Infrastructure as Code.
Build on your existing knowledge by studying cloud virtual machines, cloud networking, storage, managed databases, container services, and automation.
Practical labs are particularly valuable. Build a small virtual environment, configure network services, deploy an application, monitor it, and test backup restoration.
Server administration is the process of configuring, operating, securing, monitoring, and maintaining servers and their services.
No. A server can be a physical machine, virtual machine, cloud instance, or containerized workload.
A server is an individual system or service. IT infrastructure is the wider environment of computing, networking, storage, software, security, and operational components that supports IT services. See our Servers and Infrastructure Explained guide.
Neither is universally better. The appropriate choice depends on workload requirements, application compatibility, administrator skills, licensing, support, and integration needs.
Yes. A server can host multiple services, but production environments may separate workloads when security, performance, scalability, or availability requires it.
Virtualization allows multiple virtual machines to run on shared physical hardware through a hypervisor.
A physical server is a hardware system. A virtual machine is a software-defined computer that uses resources provided by a physical host.
No. RAID provides certain forms of storage performance or redundancy. It does not replace independent backups or tested recovery procedures.
Monitoring provides visibility into system and application health. It helps administrators identify performance problems, resource shortages, service failures, and unusual activity.
No. Only services that require public access should be exposed, and they should be protected by appropriate firewall rules, authentication, monitoring, and security controls.
Important areas include CPU, memory, storage capacity and latency, network traffic, service availability, application errors, authentication events, and backup status.
RPO defines the acceptable amount of data loss measured in time. RTO defines the target time for restoring a service after an interruption.
Professional server administration combines operating systems, networking, storage, security, virtualization, monitoring, automation, and disaster recovery.
Understanding these areas together provides a stronger foundation than learning individual commands or tools in isolation.
When troubleshooting a service, administrators should consider the complete path from the client to the underlying resources:
User
|
DNS
|
Network
|
Firewall
|
Server
|
Operating System
|
Service
|
Application
|
Database
|
Storage A failure at any layer can affect the service above it. Understanding how these layers interact is fundamental to managing reliable and secure server environments.
The following official documentation provides additional information about server administration, container networking, and persistent storage:
Introduction Border Gateway Protocol (BGP) is the routing protocol used to exchange network reachability information…
Introduction A Linux server can experience connection failures even when its network interface is working…
Introduction TCP retransmissions are an important indicator of network reliability and performance. When a Linux…
Open Shortest Path First (OSPF) is a link-state routing protocol widely used in enterprise networks…
Group Policy is one of the most important management features in Windows Server Active Directory…
Windows DNS servers play an essential role in Active Directory environments, allowing computers, servers, applications,…