在Linux下安装httpd服务器
Posted Tech_Shrimp
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Linux下安装httpd服务器相关的知识,希望对你有一定的参考价值。
1. 解包:
tar zxvf httpd-2.2.20.tar.gz -C /usr/src/
2. 编译前的配置 :
cd /usr/src/httpd-2.2.20
./configure --prefix=/usr/local/apache
3. 编译并安装:
make && make install
4. 启动httpd服务:
/usr/local/apache/bin/apachectl start
编译:将高级语言转换为机器语言(二进制文件),由编译器来完成;
Linux平台的默认编译器是:gcc/gcc -c++
将windows文件上传到Linux的/usr/local/src目录下

安装软件


以上是关于在Linux下安装httpd服务器的主要内容,如果未能解决你的问题,请参考以下文章