当前位置:网站首页>Rocky基础之编译安装apache
Rocky基础之编译安装apache
2022-07-29 08:48:00 【51CTO】
. /etc/init.d/functions
httpd_pre(){
cd /usr/local/src
wget https://downloads.apache.org/httpd/httpd-2.4.54.tar.bz2 || { echo "网络不通" ;exit; }
yum install -y gcc bzip2 apr-devel apr-util-devel redhat-lsb prce-devel g++
mkdir -p /apps/{httpd,etc}
}
apache(){
cd /usr/local/src
httprel=httpd-2.4.54
tar xf $httprel.tar.bz2
cd $httprel
./configure --prifix=/apps/httpd --sysconfdir=/apps/etc
make -j 2 && make install
/apps/httpd/bin/apachectl start && action "httpd启动成功" true && action "请访问http://`hostname -I`"
}
httpd_pre
apache
[[email protected] ~]# chmod +x httpd.sh
[[email protected] ~]# ./httpd.sh
--2022-07-27 21:17:18-- https://downloads.apache.org/httpd/httpd-2.4.54.tar.bz2
Resolving downloads.apache.org (downloads.apache.org)... 135.181.214.104, 88.99.95.219, 2a01:4f8:10a:201a::2, ...
Connecting to downloads.apache.org (downloads.apache.org)|135.181.214.104|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7434530 (7.1M) [application/x-bzip2]
Saving to: ‘httpd-2.4.54.tar.bz2.1’
...
httpd启动成功 [ OK ]
请访问http://10.0.0.151 [ OK ]
边栏推荐
- Play Parkour with threejs Technology
- State compression DP
- 7.3-function-templates
- Travel notes in 2022 (ongoing)
- 7.2-function-overloading
- Clickhouse learning (III) table engine
- [from_bilibili_dr_can][[advanced control theory] 9_ State observer design] [learning record]
- Design of distributed (cluster) file system
- Qpalette learning notes
- Solve the problem of false Base64 character in Base64
猜你喜欢
(Video + graphic) introduction to machine learning series - Chapter 3 logical regression
2022 spsspro certification cup mathematical modeling problem B phase II scheme and post game summary
LeetCode刷题(6)
Clickhouse learning (II) Clickhouse stand-alone installation
C language watch second kill assist repeatedly
Play Parkour with threejs Technology
2022 Teddy cup data mining challenge C project and post game summary
2022年P气瓶充装考试模拟100题模拟考试平台操作
预训练模型与传统方法在排序上有啥不同?
QT learning: use non TS files such as json/xml to realize multilingual internationalization
随机推荐
2022电工(初级)考题模拟考试平台操作
Osg3.6.5 failed to compile freetype
【Transformer】SegFormer:Simple and Efficient Design for Semantic Segmentation with Transformers
2022 Teddy cup data mining challenge C project and post game summary
Day15 (day16 extension): file contains vulnerability
2022年山东省安全员C证上岗证题库及答案
2022 Shandong Province safety officer C certificate work certificate question bank and answers
GBase 8s数据库有哪些备份恢复方式
Google browser cross domain configuration free
Component transfer participation lifecycle
Search and recall classic questions (eight queens)
centos7/8命令行安装Oracle11g
Excellent Allegro skill recommendation
Eggjs create application knowledge points
AI application lesson 1: C language Alipay face brushing login
Sword finger offer 32 - ii Print binary tree II from top to bottom
Is the sub database and sub table really suitable for your system? Talk about how to select sub databases, sub tables and newsql
用户身份标识与账号体系实践
Error reporting when adding fields to sap se11 transparent table: structural changes at the field level (conversion table xxxxx)
Common query optimization technology of data Lake - "deepnova developer community"