当前位置:网站首页>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 ]
边栏推荐
- Can the access database be accessed remotely
- Osg3.6.5 failed to compile freetype
- LeetCode力扣题目总结(题目编号:53、3、141、面试题022、剑指offer链表中环的入口节点、20、19、牛客NC1、103、1143、牛客127)
- Clickhouse learning (III) table engine
- 搜索与回溯经典题型(八皇后)
- Thrift installation manual
- 数学建模——微分方程
- How to quickly experience oneos
- 2022 question bank and answers of operation certificate examination for main principals of hazardous chemical business units
- Multiple knapsack, simplicity and binary optimization
猜你喜欢

BI data analysis practitioners learn financial knowledge from scratch? What introductory books are recommended

Qpalette learning notes

7.3-function-templates

(视频+图文)机器学习入门系列-第3章 逻辑回归

RESTful 风格详解

2022年R2移动式压力容器充装考题模拟考试平台操作

Basic shell operations (Part 1)

Sword finger offer 32 - ii Print binary tree II from top to bottom

(Video + graphic) introduction to machine learning series - Chapter 3 logical regression

SAP ooalv-sd module actual development case (add, delete, modify and check)
随机推荐
RPC and rest
Count the list of third-party components of an open source project
信息系统项目管理师必背核心考点(五十三)质量等级
What is the difference between the pre training model and the traditional method in sorting?
Sword finger offer 27. image of binary tree
Regular expression verification version number
Collation of ml.net related resources
MySQL statement mind map
C language -- 22 one dimensional array
Week 1 task deep learning and pytorch Foundation
Mathematical modeling clustering
Virtual augmentation and reality Part 2 (I'm a Firebird)
Transaction management in SQL Server
LeetCode力扣题目总结(题目编号:53、3、141、面试题022、剑指offer链表中环的入口节点、20、19、牛客NC1、103、1143、牛客127)
解决Base64 报错 Illegal base64 character
Amazfit dial toolbox Online
6.2 function-parameters
Normal visualization
access数据库可以被远程访问吗
Chrony 时间同步