瀹夎apache鑴氭湰
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了瀹夎apache鑴氭湰相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/data' title='data'>data lynx 閰嶇疆 pre cal http example root gcc
#!/bin/bash
yum -y install gcc gcc-c++ make &> /dev/null
scp 192.168.200.111:/root/httpd-2.2.17.tar.gz /root
tar xf httpd-2.2.17.tar.gz -C /usr/src
cd /usr/src/httpd-2.2.17/
./configure --prefix=/usr/local/apache &> /dev/null
make &> /dev/null && make install &> /dev/null
echo "缂栬瘧閰嶇疆瀹屾垚"
cd /usr/local/apache/conf
cp httpd.conf httpd.conf.bak
echo " ServerName www.example.com:80 " >> /usr/local/apache/conf/httpd.conf
/usr/local/apache//bin/apachectl start
yum -y install lynx &> /dev/null
mount 192.168.200.112:/data /usr/local/apache/htdocs/
以上是关于瀹夎apache鑴氭湰的主要内容,如果未能解决你的问题,请参考以下文章