官术网_书友最值得收藏!

Linux

Linux is a hugely popular OS outside of the desktop market. Android (the mobile operating system acquired by Google) is based on it, and it runs on most of the world's smartphones. Sometimes it is the main desktop option, if using a computer with specialized hardware, such as the Raspberry Pi. Linux is very popular on embedded devices, in part because it is lightweight and usually much less demanding on resources than a typical Windows or macOS installation.

Linux is also the most popular operating system for web servers, which is what interests us most here. It could be argued that Linux is the most popular operating system on the planet, although many users won't interact with it directly.

Strictly speaking, Linux only refers to the kernel of the OS. The equivalent part of Windows would be the NT kernel. Many different distributions are built using the Linux kernel at their core, and they bundle it up with many other (often GNU) applications. You can even roll your own stripped-down version, perhaps using something like Buildroot.

Some examples of popular distributions are Ubuntu and CentOS (Community Enterprise OS, a free version of Red Hat Enterprise Linux). Linux distributions can be classified broadly by the type of package management they use. This is useful when trying to find the correct version of software to install, although you can usually get popular applications directly via the distribution's package manager.

If you've not used a package manager before, then you will be amazed at how much easier it is than manually installing software (or even using an App Store) as you'd normally do on Windows or Mac.

Many distributions are based on Debian and these include Mint, Ubuntu, and Raspbian (the official OS for the Raspberry Pi). These use a Debian-based package format and the APT package manager. The latest version of Debian is called Stretch and .NET Core supports it. It also uses it for the official .NET Docker images.

Debian versions are named after Toy Story characters; the previous version was called Jessie.

Other distributions use a Red Hat Enterprise Linux (RHEL) RPM package system and the yum package manager. These include CentOS and YellowDog, just to name a couple. There is also SUSE Linux Enterprise Server (SLES), which is another different distribution, but .NET Core supports it too.

There are many other distributions, far too many to mention here. Linux is not one OS like Windows or Mac. We haven't even covered BSD-based systems, which use a different kernel. These include FreeBSD, OpenBSD, and NetBSD. Even macOS is built on BSD, with its NeXTSTEP heritage (the OS that ran the first web server at CERN).

Most of the instructions here will also work on the command line of Windows and Mac. The tooling is the same; even the graphical tooling in VS uses the same templates as the command-line dotnet utility.

主站蜘蛛池模板: 合阳县| 宜良县| 枣阳市| 松溪县| 宁陵县| 百色市| 周口市| 句容市| 行唐县| 稷山县| 鹿泉市| 蓝田县| 麻栗坡县| 兴安县| 贵溪市| 石景山区| 白河县| 荥经县| 新丰县| 田东县| 晋中市| 鄯善县| 长武县| 大庆市| 麦盖提县| 当阳市| 泽库县| 江都市| 南丹县| 剑河县| 阜平县| 辽宁省| 岳阳市| 罗平县| 海盐县| 尤溪县| 田林县| 万年县| 大新县| 兴业县| 九龙县|