标签:ext host roo pes gcc-c++ 解压 config tar bin
1、将软件包导入(直接拖过去)
2、查看gcc、gcc-c++、make是否安装
gcc --version
yum -y install gcc
gcc-c++ --version
yum -y install gcc-c++
make --version
yum -y install make
3、将源码解压到/usr/src/目录下
tar -xf httpd-2.2.17.tar.gz -C /usr/src/
cd /usr/src/
ls
cd httpd-2.2.17
./configure --prefix=/usr/local/apache/
5、编译(源码包目录下)
make
6、安装(源码包目录下)
make install
7、修改配置文件
[root@localhost httpd-2.2.17]# cd /usr/local/apache/conf
[root@localhost conf]# ls
extra httpd.conf magic mime.types original
将ServerName打开
[root@localhost conf]# vi httpd.conf
/ServerName //查找包含SeverName的行
n //查找下一处
yy //复制整行
p //复制到改行之下
8、启动
[root@localhost conf]# /usr/local/apache/bin/apachectl start
9、安装lynx
[root@localhost conf]# lynx 127.0.0.1
bash: lynx: 未找到命令...
[root@localhost conf]# yum -y install lynx
[root@localhost conf]# lynx 127.0.0.1
标签:ext host roo pes gcc-c++ 解压 config tar bin
原文地址:https://www.cnblogs.com/tanxiaojuncom/p/11267258.html