linux python operation and maintenance have to learn it?

 Linux is a free open-source operating system, while Python is a very good programming language, by virtue of the unique advantages of being everyone's favorite, the Linux operation and maintenance Why learn Python? A lot of people have this question today with the small series common understanding about it.

  Based on the advantages of Python itself: simple, easy, fast, free, open-source, high-level language, portability, interpretive, scalable, embeddable, rich library, unique syntax. Python has now become essential programming language. As a "glue language" that can make the other languages ​​of the various modules easily linked together.

  Compared to C and Java, Python charm all the more obvious because accomplish the same task, with 1,000 lines of code C language, Java requires only 100 lines of code, but may need only 20 lines of Python easy to get.

  Python advantages in the operation and maintenance of the system lies in its strong development capabilities and multi-complete industrial chain, its ability to develop a variety of far stronger than Shell and Perl, indeed to automate the operation and maintenance by Shell script! With automated operation and maintenance to achieve maintenance of large-scale cluster idea is right, but because of Shell's own programmable weak, a lot of the features require routine maintenance support is not enough, there is no ready-made library can learn various features require written from scratch, so Shell scripts say power is not enough.

  And now Python is a better choice, with Python in addition to easy to read and easy to write but both object-oriented and functional style, has become the main language compiler IT operation in the field of maintenance, scientific computing and data processing. , Various types of secondary development tool by combining systematic management tools, form a unified management system server.

  Like Ruby and Python are also very suitable for writing system management software, but on the relevant libraries and tools is far worse than the Python.

  Make the system easy to operation and maintenance management is an engineering, Python is very rich on the server management tools: Configuration Management (Saltstack), batch execution (Fabric, saltstack), monitoring (Zenoss, nagios plug-in), virtualization management (Python-libvirt), process management (Supervisor), cloud computing (Openstack) and so on, most of the system C libraries have Python bindings.

  As a programming language, Python can be used in almost any field and occasion, with its own possibilities, as any role.

  Domestically watercress, Sohu, Jinshan, Tencent, Shanda, Netease, Baidu, Alibaba, Taobao, heat cool, potatoes, Sina, to foreign Google, NASA, YouTube, Facebook and other Internet giants are to complete various tasks using Python.

  As cloud computing technology development and maturity, low operation and maintenance personnel of the market getting smaller and smaller, or no market, because small and medium sized companies do not need the operation and maintenance, and large companies high threshold, low operation and maintenance not core competencies force, engineering and development capabilities of big business is the operation and maintenance will be loved.

  Linux skills are a basic grasp operation and maintenance personnel should be competent to large companies and enterprises of Linux operation and maintenance work will be light enough. Linux + Python is the operation and maintenance of the best match.

Guess you like

Origin blog.51cto.com/14596632/2448386