Programmer's notebook Library Series 1-server and O & M

Source: Internet
Author: User
Tags website server vps ubuntu vps saltstack
Programmer's notebook Library Series 1-server and O & M

Time: 2014-11-3
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

Programmer's notebook Library Series 1-server and O & M

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.