Shell Writing script Ideas

Source: Internet
Author: User
Tags install php

Shell Scripting Ideas: (Requirements analysis)

1, lamp source One key integration

=======================

1) Install Apache, Mysql, PHP, lamp integration;

------------------------

Installing Apache

Install MySQL

Install PHP

-------------------------

2) to the official website to download the corresponding version, decompression, compilation;

Version information of the software

Define variables, variable name settings

Installation of the parameters, the installed directory;

-------------------------

3) integrated lamp source;

MySQL is added as a system service,

PHP integration, add AddType support, index.php

Create a test.php test page to check your PHP environment

-------------------------

4) lamp access, in the form of IP;

#############################


2. mysql master-slave copy Script

1) Two servers yum install MySQL software

2) Modify master configuration file, add Bin-log, Server-id;

3) Authorize in the main, show master status;

Gets the Bin-log file name;

Get postion location point;

4) on slave, use SSH login to execute command from server;

Modify slave configuration file, add Server-id;

Ssh-l root slave_ip "change master to XXX"

Slave start starting from library

5) in slave view MySQL master-slave Status: show slave status\g

==============

Master and slave recovery, how to recover; database backup, slow query log acquisition, modify the UTF8 character set, authorized users;

"Write a MySQL management script"


3, Zabbix Monitoring Server one-click installation

4. Modify the server IP script

Modify host name, IP, Gateway;

Kickstart installation system, DHCP mode;

change to static mode;


This article is from the "Drow blog" blog, please be sure to keep this source http://6874869.blog.51cto.com/6864869/1877942

Shell Writing script Ideas

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.