Apache httpd server部署
一直以为Apache就是直接通过Yum安装才可以。知道接触项目后,才发现居然还可以通过源码进行编译安装。
按照以往编译安装的步骤,发现会报错,本文就是记录一下Apache的整个编译安装步骤。
这个安装步骤有点奇葩,编译前需要额外下载几个文件到指定目录中
wget https://downloads.apache.org/httpd/httpd-2.4.43.tar.gz yum install expat expat-devel -y wget https://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.7.0.tar.gz wget https://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-util-1.6.1.tar.gz tar -zxvf httpd-2.4.43.tar.gztar -zxvf apr-1.7.0.tar.gz tar -zxvf apr-util-1.6.1.tar.gz mv apr-1.7.0 httpd-2.4.43/srclib/apr mv apr-util-1.6.1 httpd-2.4.43/srclib/apr-util ./configure --prefix=/usr/local/httpd2.2.43 make make install cd /usr/local/httpd2.2.43/conf/ #修改对应的值ServerName localhost:80 vim httpd.conf /usr/local/httpd2.2.43/bin/apachectl -k start /usr/local/httpd2.2.43/bin/apachectl -k graceful #平滑重启命令?
浏览器访问页面,显示内容如下:
相关推荐
Kafka 2020-09-18
Wepe0 2020-10-30
杜倩 2020-10-29
windle 2020-10-29
minerd 2020-10-28
mengzuchao 2020-10-22
Junzizhiai 2020-10-10
bxqybxqy 2020-09-30
风之沙城 2020-09-24
kingszelda 2020-09-22
大唐帝国前营 2020-08-18
yixu0 2020-08-17
TangCuYu 2020-08-15
xiaoboliu00 2020-08-15
songshijiazuaa 2020-08-15
xclxcl 2020-08-03
zmzmmf 2020-08-03
newfarhui 2020-08-03
likesyour 2020-08-01