Cs-library is a project mainly written in Shell, based on the LGPL-3.0, GPL-3.0 licenses found.
A collection of bash functions that composes an API for administrating CentOS Server linux boxes, i.e. provisioning websites, installing services, hardening daemons, etc.
DESCRIPTION
A collection of bash functions that composes an API for administrating CentOS Server linux boxes. i.e. provisioning websites, installing services, hardening daemons, etc.
FILE USAGE
ssh [email protected] -p 22
sudo -s
cd ~
wget --output-document=jmike-cs-library.tar.gz https://github.com/jmike/cs-library/tarball/master
tar -zxf jmike-cs-library.tar.gz
cd jmike-cs-library*
source
GENERAL GUIDELINES
Included functions are made to run on local machines. Thus, installing a daemon to a remote server means that you first have to log-in to that server.
Say you like to create a MySQL replication cluster. The actions you would do are:
DAEMON INSTALLATION GUIDELINES
THERE IS A PLACE FOR EVERYTHING
A. Applications are installed in "/opt", i.e. /opt/mysql. B. Configuration files are stored in "/etc", i.e. /etc/nginx/nginx.conf. C. Log files are stored in "/var/log", i.e. /var/log/httpd/error.log. D. State files, such as PID files, are stored in "/var/run", i.e. /var/run/mysql/mysql.pid. E. Lock files are stored in "/var/lock", i.e. /var/run/mysql/mysql.lock. F. Init.d scripts are stored in "/etc/init.d", i.e. /etc/init.d/sshd. G. Profile.d scripts are stored in "/etc/profile.d", i.e. /etc/profile.d/mysql.sh. H. Logrotate.d scripts are stored in "/etc/logrotate.d", i.e. /etc/logrotate.d/mysql.