当前位置:网站首页>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 ]
边栏推荐
- Complete knapsack problem from simplicity to ultimate
- LeetCode力扣题目总结(题目编号:53、3、141、面试题022、剑指offer链表中环的入口节点、20、19、牛客NC1、103、1143、牛客127)
- Travel notes in 2022 (ongoing)
- 6.2 function-parameters
- Is the sub database and sub table really suitable for your system? Talk about how to select sub databases, sub tables and newsql
- SAP ooalv-sd module actual development case (add, delete, modify and check)
- Search and recall classic questions (eight queens)
- 数学建模——聚类
- ML.NET相关资源整理
- 01-01-osg GL3 environment setup
猜你喜欢

Excellent Allegro skill recommendation

Requests library simple method usage notes

Day4: the establishment of MySQL database and its simplicity and practicality

User identity identification and account system practice

Day5: PHP simple syntax and usage

Basic shell operations (Part 2)

Arfoundation starts from scratch 5-ar image tracking

C language -- 22 one dimensional array

Osgsimplegl3 combined with renderdoc tool

C# 使用数据库对ListView控件数据绑定
随机推荐
OSG advanced sequence
Selenium actual combat case crawling JS encrypted data
数学建模——聚类
7.2-function-overloading
LeetCode刷题(6)
Source code compilation pytorch pit
Intel将逐步结束Optane存储业务 未来不再开发新产品
Amazfit dial Kit
SAP sm30 brings out description or custom logical relationship
How does xjson implement four operations?
What are the backup and recovery methods of gbase 8s database
C # use database to bind listview control data
Sudoku (DFS)
Osgsimplegl3 combined with renderdoc tool
Arfoundation starts from scratch 5-ar image tracking
2022电工(初级)考题模拟考试平台操作
Lesson 3 threejs panoramic preview room case
优秀的Allegro Skill推荐
Second week of postgraduate freshman training: convolutional neural network foundation
Fastjson's tojsonstring() source code analysis for special processing of time classes - "deepnova developer community"