一、软件包分类

源码包

二进制包

  (脚本安装包)

2.源码包

安装httpd服务httpd-2.2.9.tar.gz

cd httpd-2.2.9
配置 ./configure  --prefix=安装路径 --with-apr和apr-util的目录

编译 make

安装 make install

检查httpd服务是否安装成功

ps -ef | grep httpd

 

[root@instance-2uohi9xd ~]# gcc -c hello.c
#-c生成".o"头文件,这里生成的hello.o头文件,但是不会生成执行文件

  [root@instance-2uohi9xd ~]# gcc -o hello hello.o

  #-o生成执行文件,并制定执行文件名。这里生成的hello就是可执行文件  

  [root@instance-2uohi9xd ~]# ./hello

  hello world

  执行hello文件