Is it necessary to learn Python for Linux operation and maintenance?

(*-*)浩
Release: 2019-07-06 10:25:28
Original
3769 people have browsed it

At this stage, mastering a development language has become a necessary skill for senior operation and maintenance engineers. If you don’t know how to develop, you will not be able to fully understand the business processes of your system, and you will not be able to help debug and optimize the programs developed by developers. , developers sometimes pay little attention to performance issues. These problems have to be solved by operation and maintenance personnel. When a business goes online, the CPU usage is too high and the memory usage is too large. If you don’t know how to develop, you may only be able to check At the process level, that is, which process occupies so much, and then what? Then it is left to the developers. How does this reflect your value?

Is it necessary to learn Python for Linux operation and maintenance?

Why Want to learn Python?(Recommended learning:Python video tutorial)

First of all, Python is a very powerful scripting language, which can meet most of the needs of automated operation and maintenance, and You can do back-end C/S architecture, and you can use the WEB framework to quickly develop a high-end Web interface. Only when you have the ability to build an automated operation and maintenance system, will your value be reflected and you will have Talk to your boss about your qualifications, otherwise, just go back and install the machine!

Why should we use Python for operation and maintenance development?

Good question, why not use PHP, JAVA, C, Ruby, here I can only say , See the wisdom of others. If you happen to have mastered other languages other than Python, then use whatever you like. If you are a novice who has not even understood how to write Shell and want to learn a language, please use Python, why?

C/C, well, I can only say that if you know Python and C, then you will be more popular, but if you don’t know C, it doesn’t matter. Hiccup, basically people who do operation and maintenance use C just to install B, because in most cases you can't read the underlying source code of the system. However, if you have learned Python well, it is still recommended that you learn C. After all, compared to Python, a dynamic language, C is still much more efficient, but for novices, it is not recommended to start learning as the first language. Why? It hurts self-confidence... Haha, you know

Ruby, developed in Japan, is not bad. The style is a bit similar to Python. Because Ruby onrails is famous, it is used more abroad. In China, don’t worry! No chance, Python has taken up all its imagination.

Of course there is also the new language GO. Some people who are engaged in operation and maintenance see developers working on GO and want to join in the fun. They think it is the future. I want to say, don’t follow suit. No matter how successful GO is, it will not Become an operation and maintenance development language.

Some people think Python is inefficient and say it cannot support multi-threading, OH, okay! This is somewhat correct, but I would like to ask, how many of you who read my article have done search engine development? How many of you have done concurrent website development with hundreds of millions of PV?

How many of you have read this? Have you read the Linux kernel source code? If not, please don’t follow it. Do you know why Python does not support multi-threading? This is the wrong question. In fact, Python supports multi-threading, but it does not support multi-CPU multi-threading, that is, one program spawns out. Multi-threading can only occupy one CPU, but why? Oh, because of GIL, what is GIL, please figure it out for yourself. . . But do you have to use multi-threading? You can use multiple processes! No matter how awesome you are, you can still use coroutines, which Python supports very well. If your program logic is not good, multi-threading will not be fast.

I know a doctor who said something, which I think is good. He said that 80% of the efficiency of a program is determined by the person who writes the program, and the language itself accounts for 20%, so next time someone will talk about Python. When the efficiency is low, please ask him to go back and check for himself how much useless logic, loops, etc. his program contains. This doctor wrote his own WEB program in Python. A server can handle hundreds of millions of requests every day, with nearly 20,000 concurrent requests per second. Why is the WEB framework so awesome? Don’t ask who it is, it’s called tornado.

For more Python related technical articles, please visit thePython Tutorialcolumn to learn!

The above is the detailed content of Is it necessary to learn Python for Linux operation and maintenance?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!