-
系统编译工具安装
yum -y groupinstall "Development tools" yum -y groupinstall "Development Libraries"
-
解决依赖包:arp、apr-util、pcre
-
apr 安装
tar -zxvf apr-1.7.0.tar.gz cd apr-1.7.0 ./configure --prefix=/usr/local/apr make make install
-
apr-util 安装
tar -zxvf apr-util-1.6.1.tar.gz cd apr-util-1.6.1 ./configure --help | less ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr make make install
-
安装pcre
unzip pcre-8.43.zip cd pcre-8.43 ./configure --prefix=/usr/local/pcre --with-apr=/usr/local/apr/bin/apr-1-config make make install
-
安装httpd
tar -jxvf httpd-2.4.41.tar.bz2 cd httpd-2.4.41 ./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd --enable-so --enable-rewrite --enable-ssl --enable-cgi --enable-cgid --enable-modules=most --enable-mods-shared=most --enable-mods-shared=all --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --with-mpm=event make make install
-
关闭selinux
setenforce 0 getenforce vim /etc/selinux/config 7 SELINUX=disable
-
apache 启动
apachectl start #启动 apachectl -L apachectl -M #查看模块
-
httpd 启动报错
[root@DNSweb bin]# ./apachectl stop AH00557: httpd: apr_sockaddr_info_get() failed for DNSweb 解决办法:文件添加 /etc/hosts 127.0.0.1 HOSTNAME AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message httpd.conf 文件取消注释 215 ServerName localhost:80
httpd安装
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 1、编译安装搭建wordpress 实验使用的是CentOS、Apache、Mariadb、PHP的LAMP构架。...
- 一、Nagios简介 Nagios是一款开源的电脑系统和网络监视工具,能有效监控Windows、Linux和Uni...