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