#!/bin/bash
#********************************************************************
#Author: Wang Dajiang
#Date: 2023-01-18
#FileName: install_nginx.sh
#csdn: https://blog.youkuaiyun.com/sinat_41836475?type=blog
#********************************************************************
. /etc/os-release
version=1.22.0
function red(){
echo -e “\e[1;31m $1 \e[0m”
}
function gre(){
echo -e “\e[1;32m $1 \e[0m”
}
function nginx-file () {
echo -e “="
red “*【1.检查nginx源码包】”
echo -e "=”
if [ -e nginx- v e r s i o n . t a r . g z ] ; t h e n g r e " 文件已存在,安装进行中。。。 " e l s e g