Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Linux for Web Development

2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to use Linux for Web development, I hope you will learn a lot after reading this article, let's discuss it together!

If you are designing and / or developing for a network, it is likely that you are using Mac running OS X. Your chances of using Windows are a little less, but still pretty good. Either way, you may be satisfied with your environment. This is good, because both OS X and Windows can create an excellent development environment. The purpose of this article is not to try to convince you why the operating system you chose is poor and I am superior. But I'd rather come up with a third option, an option that you may not have tried or even considered.

In my experience, Linux is perfect for Web development for a variety of reasons. I would like to put forward some of these reasons to try to inspire and inform those who like to try new things. Maybe you'll find that Linux is not right for you, it doesn't matter. But you may just find a new world that is convenient and efficient, switch to Linux and never look back. You won't be the first.

Misunderstandings about Linux

First of all, I want to lay down some common misunderstandings and misunderstandings about Linux.

Linux is difficult to install and use

The first thing new Linux users need to know is that there is no operating system called "Linux". Linux is an operating system kernel-the basic core component of the operating system. When we talk about using Linux, we are talking about one of the many distributions that use Linux. The Linux distribution (or "distribution") is an operating system built around the Linux kernel. For simplicity, we often refer to the operating system itself as "Linux".

No two distributions are exactly the same, and they vary greatly in terms of barriers to entry. Some are created for core Linux geeks who configure boot loaders, install file systems, and manually compile software at home. It is this style of Linux that makes it extremely difficult to use. But other distributions are for users who want a fully functional, fully functional system that runs without any manual configuration or in-depth system proprietary technology. The most popular Linux distributions fall into the second category.

I will assume that most Web developers who might consider switching to the Linux operating system fall into the second category. In this case, I recommend any of these distributions: Linux Mint,Ubuntu, basic operating system, Zorin operating system, and openSuse. All of this will make Windows or OS X users feel at home. Everything will work.

Linux is "cheap"

A strange thing happens when you tell someone that what they think should cost a lot of money is actually free. Their first instinct is to assume that its quality is lower than the equivalent they pay large amounts of cash. I think this is understandable. If I pay $30000 for a new jeep and someone shows me a similar look and function that costs nothing, I will assume that there is an important problem. But the truth about Linux is that there is no problem. Software distribution works differently from the automotive industry (or most other industries). Sometimes people just want to create something awesome and share it with the world. As Web developers, we should be familiar with this concept, because many of us like and contribute to open source software. Do we think jQuery is "cheap" because we don't have to pay? No, no. This is handled in the same way as Linux.

Everything is done on the command line.

This is similar to the first point. There are developers-if you're one of them, you won't be ashamed-they'll soon get root canals instead of working on the command line. Although I personally do not understand this contempt for the terminal, I can provide good news. The distributions I recommended above (and many other distributions) do not need to use more command lines than the command line you are used to. Many tasks, such as installing new software or using build tools, are faster and easier once you get used to the command line, but the tasks that absolutely need it are exceptions, not rules.

Linux is not compatible with my keyboard / mouse / printer / graphics card / USB drive / anything

This may have been partly true a decade ago, but most modern Linux distributions have plug and play capabilities like Mac or Windows. I have more difficulties installing new hardware on Windows than on Linux. Creators and contributors of modern Linux distributions often make device compatibility one of their top priorities.

Why do I use Linux for Web development

Let's do it. Here are my favorite things about Linux.

You can make your environment

Ask any fan about their favorite Linux content, and their first answer may be "customizable". As a designer, I like to create unique things. As a developer, I want my environment to be like this. If you are like me in this respect, then you will like the customization that Linux offers you. We're not just talking about desktop wallpaper and icon size. Everything can be customized in Linux, from changing the location of the menu panel to choosing a completely different desktop environment. Don't like the commands used to start Sublime Text? Change. Don't you like the way your windows are against each other? Change. If you find yourself limited by the options provided, you can crack the code and create your own options. This is the beauty of working in an open source operating system.

Linux is free.

Most distributions are released under the GNU General Public license (GPL), which means they can be used free of charge and freely copied, distributed, and modified. Trying out the Linux operating system is as simple as downloading an image file from a distribution you are interested in, burning it to CD and popping it up on your computer. If you like what you see, you can install it with your existing operating system. If you're tired of it, just download a different distribution and give it a spin.

As I mentioned before, don't confuse freedom with cheapness. "you get the price you pay" usually comes true in life, but not here. Modern Linux distributions are fast, elegant, feature-rich, stable and highly available.

Your development environment will match your production environment

This is a big problem. There is a good opportunity for your production server to run Apache on Linux. When you run Linux locally, you can completely emulate this production environment. Same file system permissions, same version of PHP / Ruby, same Web server, etc. This means that when you test your site locally, you can ensure that it runs just like it after deployment, and that you are less likely to encounter platform-specific problems. This makes deployment easier, more predictable, and more error-free.

Linux works well on smaller hardware

The Linux operating system is lighter and has fewer resources than Windows or OS X, which means that you can boot your old Dell Inspiron laptop from 2003, start Linux, and you can successfully complete all development tasks. There are even some Linux distributions that are so lightweight that they can reside entirely on small USB drives. This is magnified when you consider the price of the Linux (zero dollars). Linux makes it cheap and easy to inject life into the hardware, which is junk.

Linux is as stable as hell.

When you are solving a thorny problem, there is nothing worse than crashing your code editor. Or worse, the operating system itself freezes and needs to be rebooted. Now, every operating system and every software can crash, but in my experience, the Linux operating system is the least prone to unexpected software crashes and performance errors. This is the main reason why many people use them as Web servers.

Some distributions are more stable than others. Debian's reputation is one of the most stable distributions. I was lucky with Xubuntu in terms of rock-solid performance. Running Xubuntu, I don't have to restart my computer for at least nine months.

Many of your tools work better on Linux

Many popular Web development tools and languages are designed for Unix-like systems such as Linux. Ruby,Jekyll,Grunt,Git (created by Linus Torvalds, the creator of Linux), to name just a few, performs better on both Unix and Unix-based systems. You do not need to install additional shell software or worry about system compatibility. On Linux, everything will be as smooth as silk. All right, stop screaming on the screen-I realized that Mac OS X is a Unix system, and almost everything running on Linux can run on Mac. So to be fair, this only applies to Windows users.

Why shouldn't you use Linux?

I can only think of one reason, but this is a very bad thing:

You cannot run Adobe software on Linux

Oh. This one hurts. However, let me introduce some comfort to you: you can run the VM software VirtualBox in Linux without any problems. You can then install Windows as a virtual machine in VirtualBox, install any Adobe software you like, and it will work well in your virtual Windows installation. This is my job. I use Photoshop almost every day. Because you run the operating system effectively in the operating system, you need a computer with a considerable amount of memory (I say at least 8GB).

You may think this solution is a little troublesome, and I understand why. Running software locally feels better than running it in VM. But here's the reason, at least for me, that the solution is completely adequate: I need to run the virtual machine anyway for my Internet Explorer test. I have four different Windows virtual installations, each with a different version of IE. Because I live in these virtual machines anyway, there is no sweat to use one as my Photoshop machine. I usually keep my Photoshop VM running, so it's easy to switch to it.

Conclusion

If you are satisfied with the current operating system and do not have (or time) to try something new, there is nothing wrong with it. I really believe that the best software is your most efficient software. But if you are like me, you will feel a constant desire to promote your skills, learn new things, and break your comfort zone in order to gain new experiences. If that's you, try Linux. You may hate it, you may like it, but at least you can say you did it.

After reading this article, I believe you have a certain understanding of how to use Linux for Web development, want to know more about it, welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 247

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report