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

Does linux operation and maintenance have to learn python?

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

Share

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

This article mainly introduces linux operation and maintenance must learn python, the article is very detailed, has a certain reference value, interested friends must read it!

At this stage, mastering a development language has become a necessary calculation ability for senior operation and maintenance engineers. If you don't know how to develop, you can't fully understand the business process of your system. You can't help debug and optimize the programs developed by developers. Sometimes developers rarely pay attention to performance problems. These problems have to be solved by operation and maintenance personnel. When a business is launched, CPU usage is too high and memory consumption is too large. If you don't know how to develop, you may only be able to check the process level. Which process takes up so much, and then what? Then give it to the developer to deal with, so how to reflect your value?

Why learn Python?

Python first is a very cattle B scripting language, can meet the needs of most automation operations, but also can do back-end C/S architecture, but also can use the WEB framework to quickly develop a tall Web interface, only when you have the ability to make a set of operation and maintenance automation system, your value is reflected, you are qualified to talk to the boss about attention, otherwise, or honestly go back to install the machine!

Why Python?

Good question, why not PHP, JAVA, C++, Ruby, here I can only say, see people, if you happen to have mastered other languages besides Python, then what do you like to use, if you are a novice who has not even written Shell, if you 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, in fact, it doesn't matter. Basically, people who do operation and maintenance do C to pretend to be B, because in most cases you can't see the underlying source code of the system. However, if you learn Python well, it is still recommended that you learn C++. After all, compared with Python, this dynamic language, C++ efficiency is still much higher, but for beginners, It is not recommended to start learning as a first language, why? Self-confidence... Oh, you know.

Ruby, developed in Japan, is not bad, style is a bit like Python, because Ruby onrails is famous, more used abroad, domestic, rest assured! No way, Python has taken up its imagination.

Of course, there is also a new language GO. Some people engaged in operation and maintenance see developers engaged in GO and also 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, saying it can't support multithreading, OH, okay! This is also a bit right, but I want to ask, how many of you who read this article have done search engine development? How many concurrent websites do hundreds of millions of PV?

How many have seen Linux kernel source code? If not, please don't follow along, know why Python doesn't support multithreading? In fact, Python supports multithreading, but it does not support multi-CPU multithreading, that is, a program spawn out of multithreading can only occupy one CPU, but why? Oh, because GIL, what is GIL, please make up your own mind... But do you have to multithread? You can use multiple processes! Then cattle B you can also use coroutines ah, these Python support are very good, if your program logic is not good, get a multi-thread also fast up.

I know a doctor who said something, I think it's good, he said, program efficiency, 80% are determined by the people who write the program, the language itself accounts for 20%, so the next time someone says Python efficiency is low, please let him go back and check how much useless logic, loops and so on in his program. This doctor wrote his own WEB program in Python. A server can handle hundreds of millions of requests every day, and nearly 20,000 concurrent requests in one second. Don't ask who it is, it's called tornado.

The above is all the content of Linux operation and maintenance must learn Python, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

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: 0

*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