收藏文章 楼主

linux 搭建 LAMP

版块:linux   类型:普通   作者:小绿叶技术博客   查看:859   回复:0   获赞:1   时间:2019-10-14 17:45:28
cat /etc/redhat-release # 查看系统版本

systemctl disable firewalld # 防火墙:status 查看; stop 暂时关闭; disable 永久关闭


getenforce #查看selinux 状态:Disabled关闭; Enforcing开启



===========================  apache.sh  ========================

cat >> apache.sh << EOF

#!/bin/bash

yum groupinstall "Development Tools" -y ;  

yum install libtool -y ; 

yum install expat-devel pcre pcre-devel openssl-devel -y ; 


if [ $? -eq 0 ]; then 

        echo "############################依赖包安装完成##########################"

else

        echo "依赖包未安装完全"

fi


yum install -y wget

wget https://mirrors.aliyun.com/apache/httpd/httpd-2.4.37.tar.gz

wget https://mirrors.aliyun.com/apache/apr/apr-1.6.5.tar.gz

wget https://mirrors.aliyun.com/apache/apr/apr-util-1.6.1.tar.gz


echo "########################已下载apache apr apr-util 文件,正在安装解压工具并解压###############"

yum install star -y

tar xvf httpd-2.4.37.tar.gz -C /usr/local/src

tar xvf apr-1.6.5.tar.gz -C /usr/local/src

tar xvf apr-util-1.6.1.tar.gz -C /usr/local/src



f [ $? -eq 0 ]; then 

        echo "##########################依赖包解压完成############################"

else

        echo "依赖包未解压完全"

fi


EOF





提供企业建站服务,免费网防系统,提交信息登录 http://yundun.ddoss.cn 邮箱: proposal@ddoss.cn 
回复列表
默认   热门   正序   倒序

回复:linux 搭建 LAMP

头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息