概述
#!/bin/bash
########################
# #
# date=2018-12-19 #
# version=1.0 #
# author=changzhenxi #
# #
########################
echo "######################################################
# VERSION=1.0 #
# AUTHOR=CHANGZHENXI #
# MAIL=498390272@qq.com #
######################################################
# welcome to use Install TOOLS,please input number! #
# 1、nginx install! #
# 2、keepalived install! #
# 3、python install! #
# 0、exit this tools! #
######################################################"
read choice
INSTALL_DIR="/opt/log"
nginx_install () {
if [ ! -d $INSTALL_DIR ]; then
mkdir -p $INSTALL_DIR
fi
chmod -R 750 $INSTALL_DIR
if [ ! -f $INSTALL_DIR/install.log ]; then
touch $INSTALL_DIR/install.log
chmod 750 $INSTALL_DIR/install.log
fi
echo `date "+%C%y-%m-%d %H:%M:%S"` "start install nginx" |tee -a $INSTALL_DIR/install.log
echo -e "