当前位置:网站首页>Compile and install Apache for rocky Foundation
Compile and install Apache for rocky Foundation
2022-07-29 08:50: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 " The Internet is not working " ;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 Successful launch " true && action " Please visit 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 Successful launch [ OK ]
Please visit http://10.0.0.151 [ OK ]
边栏推荐
- GBase 8s数据库有哪些备份恢复方式
- Use disco diffusion to generate AI artwork in moment pool cloud
- 英语高频后缀
- 用户身份标识与账号体系实践
- Day5: PHP simple syntax and usage
- [opencv] - Operator (Sobel, canny, Laplacian) learning
- Play Parkour with threejs Technology
- Osgsimplegl3 example analysis
- Analysis of zorder sampling partition process in Hudi - "deepnova developer community"
- 6.3 references
猜你喜欢

(视频+图文)机器学习入门系列-第2章 线性回归

RPC and rest

Day6: using PHP to write landing pages

Normal visualization

C language calculates the length of string

User identity identification and account system practice

2022 electrician (elementary) test question simulation test platform operation

LeetCode刷题(6)

Error reporting when adding fields to sap se11 transparent table: structural changes at the field level (conversion table xxxxx)

RESTful 风格详解
随机推荐
Mathematical modeling - Differential Equations
Third week weekly report resnet+resnext
Simple unit testing idea
Memory leaks and common solutions
Virtual augmentation and reality Part 2 (I'm a Firebird)
Information system project manager must recite the quality grade of the core examination site (53)
状态压缩dp
SAP ooalv-sd module actual development case (add, delete, modify and check)
7.1-default-arguments
2022 Shandong Province safety officer C certificate work certificate question bank and answers
Personal study notes
User identity identification and account system practice
Collation of ml.net related resources
分组背包
2022 electrician (elementary) test question simulation test platform operation
Leetcode question brushing (6)
C # use database to bind listview control data
Squareline partners with visual GUI development of oneos graphical components
Day13: file upload vulnerability
Basic shell operations (Part 2)