摘要:建站服务器 vi installapache.sh#!/bin/bashtar -zxf apr-1.4.6.tar.gzcd apr-1.4.6./configure --prefix=/usr/local/apr &>/dev/nullma
建站服务器
vi installapache.sh
#!/bin/bash
tar -zxf apr-1.4.6.tar.gz
cd apr-1.4.6
./configure --prefix=/usr/local/apr &>/dev/null
make &>/dev/null
make install &>/dev/null
cd
tar -zxf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config &>/dev/null
make &>/dev/null
make install &>/dev/null
cd
tar -zxf pcre-8.30.tar.gz
cd pcre-8.30
./configure --prefix=/usr/local/pcre &>/dev/null
make &>/dev/null
make install &>/dev/null
cd
tar -zxf httpd-2.4.1.tar.gz
cd httpd-2.4.1
./configure --prefix=/usr/local/apache2 -enable-so -enable-rewrite --with-mpm=worker --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre &>dev/null
make &>/dev/null
make install &>/dev/null
cd
/usr/local/apache2/bin/apachectl start
:wq
netatat -tunlp | grep httpd
有80端口即为成功
相关文章推荐
虚拟主机的专业参数,分别都是什么意思?2022-09-09
中非域名注册规则是怎样的?注册域名有什么用处? 2022-01-10
HostEase新年活动促销 美国/香港主机全场低至五折2021-12-28
HostGator下载完整备份教程分享2021-12-28
Flink中有界数据与无界数据的示例分析2021-12-28