Programmer's inventory Library Series 1-server and O & M, smart sac 1 --

Source: Internet
Author: User
Tags website server vps ubuntu vps saltstack

Programmer's inventory Library Series 1-server and O & M, smart sac 1 --
Programmer's notebook Library Series 1-server and O & M

Time: 2014-11-3
Author: FingerLiu

This is the first article in the programmer's inventory Library Series. First, let's talk about the server and O & M tools. We mainly introduce the following four tools:

  • Puppet
  • Salt
  • Visualops
  • Lnmp
Puppetintro

Puppet is a centralized Configuration Management System for Linux and Unix platforms. It defines status information for your devices and keeps your devices running normally. In short, it is a tool to automate O & M.

  • It can automatically extract device configuration information, so that the same tool can be used at various stages of Software Delivery.
  • Allows different teams to work collaboratively.
  • Let people and computers do what they are good.
    Whether you are managing several machines or thousands of servers and virtual machines, puppet can automatically help the system administrator complete the work.
    Linux, Unix, Mac OS X, and Windows all have puppet distributions.
Use Cases

It can manage file, user, group, package, mount, schedule, and cron ), common resources such as service, tidy, yumrepo, and sshkey.

  • Yum repository Management
  • User Management
  • Ssh key
Obtain puppet
  • You can likely find Puppet in your favorite Linux distro's package repositories.
  • If you're using Amazon EC2, the Amazon Linux AMIbundles Puppet.
  • Get the source code for open source Puppet fromGithub.
  • Download packages from our Yum and APT repositories.
  • Download the binaries from our website.

In normal versions, puppet supports up to 10 devices. If you need to manage more than 10 devices, you need to purchase the Enterprise Edition puppet.

Installation and use tutorial
  • Install
  • Tutorial
SaltStackintro

SaltStack is a fast, scalable, and flexible system management software that can be used to automate data centers, manage cloud environments, monitor servers, and manage configurations. SaltStack is often seen as a lite version of puppet (puppet is mainly written in ruby) Written in python.
Salt has two main functions: configuration management and remote execution.

Use Cases

If you have many servers and want to operate these servers, you may need one to log on to these servers and make an operation change each time. These operations may be quite simple, such as restarting them or checking how long they have been running, or, you want to do more complex things, for example, to install software and configure them according to your special needs, you may just want to add users and configure their permissions.
What should you do if you have hundreds of servers? Imagine every time you log on to these servers, execute the same command on these 100 servers, and edit the same configuration file. Can you imagine? How hard it is! It only takes several days to update the password of a user, and you may encounter incorrect operations. How can I use a single command to complete all server operations at a time? How can this problem be solved? The answer is: Salt Stack!

  • Automatic installation and deployment of MooseFS in Salt practice
  • LVS Configuration Management Based on SaltStack
  • Complex nodegroup configuration in Salt
  • For more information, see here.
Obtain saltStack

Salt source releases are available for download via the following PyPI link:

Https://pypi.python.org/pypi/salt
The installation document, found in the following link, outlines where to obtain packages and installation specifics for platforms:

Installation
The Salt Bootstrap project, found in the following repository, is a single shell script, which automates the install correctly on multiple platforms:

Https://github.com/saltstack/salt-bootstrap

Installation and use tutorial
  • Install
  • Configuration
VisualOpsintro

All problems in computer science can be solved by another level of indirection. (All computer problems can be solved by introducing an intermediate layer)
VisualOps is an intermediate layer for managing machines running on AWS. It implements visualized server O & M and organically combines Paas and IaaS.

Use Cases

Developers of the VisualOps team call it an IDE for O & M personnel. It can implement server planning, setup, purchase, network division, firewall configuration, and dependency installation, almost all the work of O & M personnel, such as continuous project deployment-simply drag several components on the webpage and write several simple puppet lines on the webpage (VisualOps implements the backend management server, use puppet) configuration code.

Installation and use tutorial

As a product of the cloud era, you only need a computer that can be connected to the Internet, and a browser. The project URL is https://ide.visualops.io/

Lnmp one-click installation package intro

LNMP stands for the website server architecture of Nginx + MySQL + PHP in Linux. These four types of software are free and open-source software combined to become a free, efficient, and scalable website service system.
The one-click installation package for LNMP is a Linux Shell program that can be compiled for CentOS/RadHat, Debian/Ubuntu VPS (VDS), or independent hosts to install LNMP (Nginx, MySQL, PHP, phpMyAdmin) the Shell program in the production environment. Some useful auxiliary scripts are also provided, such: it can help with Nginx, MySQL/MariaDB, PHP upgrades, installation of common cache components, resetting the MySQL root Password, 502 Automatic restart, log cutting, and many other practical scripts.

Use Cases

Why do we need it?

A large number of commands are required for compilation and installation. It takes a lot of time to configure the production environment.
No Linux webmaster or new Linux users want to use Linux as a production environment ......

What are its advantages?

There is no need to enter commands one by one, no need to watch, compile, install, optimize compilation parameters, improve performance, solve unnecessary dependencies between software, especially for VPS users.

Obtain the one-click installation package of lnmp

Http://lnmp.org/download.html

Installation and use tutorial
  • Install
  • Lnmp status management command

 

This is the end of Introduction to programmer's notebook Library Series 1-server and O & M. I will introduce it in the next part.Website frameworkRelated Knowledge.

 If you are interested in the knowledge I 've introduced, welcome to favorites and recommendations! Thank you for your support!


Can programmers switch to O & M personnel for O & M?

Yes, but you must have a systematic O & M basis. I 've heard that many programmers turn to DBAs!

I am a programmer with one year of O & M experience.

Let me talk to you first. If your goal is money, never learn by yourself !!!

I am fed up with this kind of self-study. I am also paying for money. You think, I learned programming for three years when I went to college (this is not my major ), I came from the C, C ++, Java, and open-source frameworks. However, do you know how much time this line has wasted? How much useless is it? It's really hard for Nima to stick to it without a strong heart (no teacher, no master, only yourself )!!!!

I don't have any money, so I can't afford to go to a training institution, but you can't do it yourself. I learned it when I went to college, but you missed this good condition !!! I advise you to go to a training institution for employment, so that you can learn Java or PHP in the "shortest time" and have project experience !!! Training Institutions will not teach you from C, but will teach you what you need in the most practical way. So even if you don't even know print, it doesn't matter. Besides, you are familiar with the web running mode and have at least understood the role of the database.

I am looking for a job because I have no project experience and I am still a self-taught student !!! It was so painful for me to look for a programmer to work !!!!

============
Tell your brother about the money problem. When you first learned it, you won't give you much money (except for some good training institutions ), the money is turning over with your years! It's "flip "!
============

Brother, you are still young, only 22 years old. Money is a huge mountain on us. You are not afraid of hardship. You still have to have a perseverance for your purpose !!!

There are a lot of php and java at present, and they are also very good at finding a job. I think you are a programmer or a layman, and it is for money, so don't start from C, C is to make money, but most of them are embedded or financial-related programs. What we need is "experience! What's more, the first few of our country's old programmers are all engaged in "C". Do you think you can learn C in a short period of time and put it into one ?!

======================
You can go to the training institution you are interested in for consultation on these questions. Really, you should never learn it yourself now !! You don't have much time to squeeze out !!!
You can find a way to reach your ideal. If you don't have enough money, you can discuss it with them. If you make up your mind, you will stick to it. You must always stick to it !!!
==========

There may be so many reasons for working pressure... Sad ......

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.