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

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.

主站蜘蛛池模板: 盐津县| 阿拉善盟| 衡阳县| 新密市| 平和县| 绥德县| 青冈县| 独山县| 庆元县| 渝北区| 东丽区| 潍坊市| 澄江县| 伊通| 武陟县| 遂溪县| 扎囊县| 临猗县| 木里| 克东县| 朝阳县| 吉林市| 宝山区| 白城市| 广平县| 疏勒县| 麦盖提县| 延川县| 威远县| 烟台市| 伊宁市| 德庆县| 泰来县| 阿瓦提县| 沈丘县| 宽甸| 监利县| 双江| 韶山市| 阿克苏市| 巩义市|