apache一键安装脚本

vi installapache.sh

#!/bin/bash

tar -zxf apr-1.4.6.tar.gz

cd apr-1.4.6

./configure --prefix=/usr/local/apr &>/dev/null

make &>/dev/null

make install &>/dev/null

cd

tar -zxf apr-util-1.4.1.tar.gz

cd apr-util-1.4.1

./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config &>/dev/null

make &>/dev/null

make install &>/dev/null

cd

tar -zxf pcre-8.30.tar.gz

cd pcre-8.30

./configure --prefix=/usr/local/pcre &>/dev/null

make &>/dev/null

make install &>/dev/null

cd

tar -zxf httpd-2.4.1.tar.gz

cd httpd-2.4.1

./configure --prefix=/usr/local/apache2 -enable-so -enable-rewrite --with-mpm=worker --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre &>dev/null

make &>/dev/null

make install &>/dev/null

cd

/usr/local/apache2/bin/apachectl start

:wq

netatat -tunlp | grep httpd

有80端口即为成功

时间: 2024-08-02 12:13:56

apache一键安装脚本的相关文章

nagios一键安装脚本V1.0(客户端+服务端)

服务端脚本: #!//bin/bash #nagios一键安装脚本 path=`pwd` yum_user() { echo -e "\033[32m开始安装基础支持套件和添加用户......\033[0m" yum -y install httpd gcc glibc glibc-common gd gd-devel  if [ $? -ne 0 ] then    echo -e "\033[31mYUM安装失败!\033[0m"   exit 1 fi ech

cacti 0.8.8h 一键安装脚本

cacti 0.8.8h 一键安装脚本 cacti rrdtool # cacti 0.8.8h 一键安装脚本 # Make by Fenei # E-Mail : [email protected] # Date : 13-Sep-2016 # URL:http://babyfenei.blog.51cto.com/443861/1852324 #----------------------------------------------------- # 本脚本自动安装 cacti0.8.8

PPTP一键安装脚本及使用webmin管理PPTP VPN Server

一.一键安装PPTP服务器 VPS有很多种玩法,在墙上打洞是最常见的玩法之一.打洞方法多种多样,其中以PPTP最为常见,也是配置起来最为简便的方式之一. 本脚本只需执行一次即可将PPTP服务安装完毕,然后在你的电脑里设置好VPN即可.当然了,要保证你的VPS是在外面的自由世界中,而且VPS是基于Xen或KVM的. 终端里运行以下命令(以root用户运行): wget -c http://dl.dropbox.com/u/32817960/linux/Software/pptpd_debian.s

Ubuntu Or Debian L2TP VPN 一键安装脚本

#!/bin/bash if [ $(id -u) != "0" ]; then printf "Error: You must be root to run this tool!\n" exit 1 fi clear printf " #################################################### # # # This is a Shell-Based tool of l2tp installation # #

Centos7搭建pptp VPN一键安装脚本

Centos7搭建pptp一键安装脚本 废话不多说,先上脚本地址:Centos7一键pptp 使用: wget https://raw.githubusercontent.com/DanylZhang/VPS/master/CentOS7-pptp-host1plus.sh chmod +x ./CentOS7-pptp-host1plus.sh ./CentOS7-pptp-host1plus.sh -u your_username -p your_password 1 2 3 可在-u.-p

L2TP/IPSec一键安装脚本

本脚本适用环境:系统支持:CentOS6+,Debian7+,Ubuntu12+内存要求:≥128M更新日期:2017 年 05 月 28 日 关于本脚本:名词解释如下L2TP(Layer 2 Tunneling Protocol)IPSec(Internet Protocol Security)IKEv2 (Internet Key Exchange v2)能实现 IPsec 的目前总体上有 openswan,libreswan,strongswan 这3种.libreswan 是基于 ope

centos shell编程5LANMP一键安装脚本 第三十九节课

centos shell编程5LANMP一键安装脚本  第三十九节课 上半节课 下半节课 f

PXE一键安装脚本

PXE(preboot execute environment,预启动执行环境)是由Intel公司开发的最新技术,工作于Client/Server的网络模式,支持工作站通过网络从远端服务器下载映像,并由此支持通过网络启动操作系统,在启动过程中,终端要求服务器分配IP地址,再用TFTP(trivial file transfer protocol)或MTFTP(multicast trivial file transfer protocol)协议下载一个启动软件包到本机内存中执行,由这个启动软件包

mysql oracle静默 一键安装脚本

pre-read; 为了达到一键搞定的目的!现Ruiy简单做如下几小条规定   如果你想这么一键来搞定请君莫要违背约束!1. 下载 `二进制` mysql软件介质版本不限,二进制包务必,源码及rpm包格式,此处玩不转;eg:    wget http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.17-linux-glibc2.5-x86_64.tar.gz 2. 将下载下来的二进制mysql安装介质放到/opt/yoodo/installs/目录,