Revelation: How to build an operation and maintenance automation platform

Revelation: How to build an operation and maintenance automation platform

What is an operation and maintenance automation platform?

To put it bluntly, it is to platformize the repetitive operation and maintenance work, simplify the work process, and reduce labor costs. For example, to deploy a LAMP website platform, for traditional operation and maintenance, first download the relevant software package, then compile and install a series of tasks, and it is better to manually execute the script with one-click deployment. There are two problems: 1 manual intervention increases the workload, 2 the risk of manual misoperation is high.

Therefore, the main purpose of an enterprise to develop an operation and maintenance automation platform and to connect to an IT infrastructure is to solve the above two problems. Click the mouse to complete the realization of specific functions, and there is no room for misoperations!

Learning ideas for creating an operation and maintenance automation platform:

Friends who are doing operations and maintenance should have such a situation: when they see the operation and maintenance management system written by others, their eyes are red, so envy, and ask yourself: when can it become so awesome?

In fact, the development of an operation and maintenance automation system is far from being as far away as you think. The technology involved is also relatively basic, not too in-depth, and it is not difficult to learn.

Programming is the most important thing in thinking. Without thinking and development ability, it is impossible to use great power!

How to learn?

Most of the students who are just getting started will ask this question, without a clue, no way to start. It is understandable that everyone will go through a stage in their IT career, stepping across the sky and the sky!

Don't talk nonsense, go directly to the learning ideas, just for reference:

The first step : master a programming language, recommend Python, easy to use. Because the Python language is the most used in the field of operation and maintenance, mastering the basics of Python can at least write to the level of object-oriented programming.

Step 2 : Master a Python Web framework. It is recommended to use the heavyweight Django framework. Although it is a bit difficult to get started at the beginning, it is now the most mainstream, most used, and fully functional, enough to meet the needs. Of course, if you have a cold with Django, you can choose the lightweight Flask framework, which is easy to get started and has low learning costs. At this time, we should also look at the working principle of the HTTP protocol, such as several request methods and workflows.

The third step : the basic addition, deletion, modification and checking of the database must be met.

Step 4 : The first three steps of the back-end technical point are almost the same. The front-end is now, there is no doubt that HTML/CSS basics are bound to be learned, you can first learn the commonly used tags, selectors, style attributes, etc. The basics of native JavaScript must be understood first, and then consider using the packaged JS library Jquery for page behavior control, focusing on Jquery event processing, obtaining attribute content, setting element content, etc. It is simpler to use than native JS and is also mainstream JS Library. After learning, try to write a few website pages to check the learning results.

Step 5 : Writing your own HTML/CSS pages is just starting to get started, it is more difficult to write, and the browser compatibility is not very good. You can consider using an open source front-end framework to increase the development speed without too much consideration for compatibility. The front-end frameworks I know are Bootstrap, SemanticUI, and EasyUI, and there are many more. Just choose one you like, and first learn some of the commonly used styles, such as tables, forms, buttons, etc. It's too late to look at the other things.

Step 6 : Choose a template you like. After deciding which front-end framework to use, find a good-looking front-end page template under the online search, for example, the search keyword is "Bootstrap template", there will be many. We mainly use its typesetting and some main pages, and then remove some functions, simply modify the page you want, and add the front-end framework style you have learned, you can quickly implement a certain function, very Worry-free.

The seventh step : interact with the back-end data, often use Ajax technology, such as real-time acquisition of new data from the back-end display, data transmission to the back-end, etc. Ajax also recommends the use of Jquery, the reason is still simple to use. At this time, we need to learn about the JS timer, which is used to control the time interval for Ajax to obtain data. It is often used and very simple. There is also WebSocket technology, which is a long connection between a browser and a server to transmit data in real time. It is very useful in certain scenarios, such as WEB SSH, which can be easily understood.

Step 8 : Embed mainstream management tools to complete a certain task. For example, if I want to do batch management, I don’t need to write scripts to do batch execution. SaltStack and Ansible are mainstream tools like this. It’s better to call their API directly at that time, and the function is better than writing by myself. A lot of perfection, isn’t it great!

After these eight steps of gradual learning, I believe you have enough ability to develop a set of own operation and maintenance management system.

Group friends often ask, what should I do if I can understand the code but cannot write it out? This is a very typical problem. It means that the code is written less, even if the code is written too much, it is copied from others. It has no practical meaning. At least you have to know the ideas written by others! If you want to improve your technical ability, there is only one unchanging truth. Learn more, practice more, and sum up more!

That's all, the above is my personal learning ideas for friends who want to develop an operation and maintenance management system or transfer maintenance development.

Guess you like

Origin blog.51cto.com/15127501/2657314