分类
源码包:c语言,可以在不同版本Linux上安装,c语言环境
封装后的软件包:.rpm----redhat package manage
.deb—debain
# 安装http
安装源码包应在软件解压文件
- tar xf解压
cat -n README | less
cat -n INSTALL| less
./configure //⽣成makefile⽂件,makefile⽂件决定编译的顺序
make//编译
make install//将编译好的程序复制粘贴到--prefix选项指定的⽬录⾥,默认是 /usr/local/apache2
PREFIX/bin/apachectl start
- ⽣成makefile⽂件
- make
- make install
/usr/local/apache2/bin/apachectl start
netstat -antpl
- url输入127.0.0.1,⽹站根⽬录,放在该⽬录下的⽂件,会被访问者看⻅
- 编译
vim 2303.c
#include <stdio.h>
int main(){
printf("hello world!");
return 0;
}
:wq
chmod +x 2303.c
gcc 2303.c //编译
./a.out //执行