#!/bin/bash
#2019年8月8日16:40:31
#auto config apache virtualhost
#by jeff
##############################
#Httpd define path variable
#https://mirrors.tuna.tsinghua.edu.cn/apache/httpd/httpd-2.4.39.tar.bz2
H_FILE="httpd-2.4.39.tar.bz2"
H_URL="https://mirrors.tuna.tsinghua.edu.cn/apache/httpd/$H_FILE"
H_DIR="httpd-2.4.39"
H_PREFIX="/usr/local/apache2/"
H_BACKUP="/data/backup/`date +%F`"
H_VHOST="$1"
H_CNF="${H_PREFIX}conf/httpd.conf"
# 参数判断
if [ $# -eq 0 ];then
SHELL脚本APACHE添加虚拟主机
最新推荐文章于 2024-09-03 17:07:24 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)