Why Linux is better?
Linux or GNU/Linux (if you like) is free and open source; you can see the source code used to create Linux (kernel). You can check the code to locate bugs, explore security vulnerabilities, or simply study what that code is doing on your machine(s). Additionally, you may easily develop and install your own programs into a Linux operating system because of numerous available programming interfaces you need. With all the above features, you can tailor a Linux operating system at its most basic levels, to suit your server needs unlike Windows.
Linux is Unix-based and Unix was originally designed to provide an environment that’s powerful, stable and reliable yet easy to use. Linux systems are widely known for their stability and reliability, many Linux servers on the Internet have been running for years without failure or even being restarted. The question is what actually makes Linux systems stable. There are many determinants which include management of system and programs’ configurations, process management, security implementation among others. In Linux, you can modify a system or program configuration file and effect the changes without necessarily rebooting the server, which is not the case with Windows.
Linux is without doubt the most secure kernel out there, making Linux based operating systems secure and suitable for servers. To be useful, a server needs to be able to accept requests for services from remote clients, and a server is always vulnerable by permitting some access to its ports. However, Linux implements a variety of security mechanisms to secure files and services from attacks and abuses. You can secure services using programs such as a firewall (for example iptables), TCP wrappers (to allow and deny service access), and Security Enhanced Linux (SELinux) which helps to limit the resources a service can access on a server.