编译安装的步骤:
1.下载源代码,并解压
    tar -xf package-version.tar.{gz|bz2|xz}
注意:展开后的目录通常为package-version


2.切换至源码目录中
    cd package-version


3.执行configure脚本
./configure


4.编译
make
5.安装
make install


nginx的安装举例:


1.下载源代码,并解压
    tar -xf nginx-1.4.2.tar.gz
    
2.切换至源码目录中
    cd nginx-1.4.2


3.执行configure脚本,该配置脚本会找出安装软件所依赖的开发库如:
zlib-devel-1.2.3-29.el6.x86_64.rpm
pcre-devel-7.8-6.el6.x86_64.rpm


./configure --prefix=/usr/local/nginx --conf-path=/etc/nginx/nginx.conf


#./configure --prefix=/usr/local/nginx 制定安装文件目录
#--conf-path=/etc/nginx/nginx.conf 制定配置文件目录(一般放在/etc目录下,方便管理)


4.编译
make
5.安装

make install

启动nginx 

/usr/local/nginx/sbin/nginx

访问 http://127.0.0.1 验证是否安装成功


axel的安装举例:


1.解压源码文件

tar -xf axel-2.4.tar.gz

2.进入解压目录

cd axel-2.4

3.编译安装

make

make install

测试工具是否可用

首先安装一个远程ftp filezilla软件(添加用户anonymous 密码不勾选即可添加filezilla ftp不要密码的ftp)

#输出目录为/tmp 开启3个线程下载,远程服务器为ftp://192.168.8.53/software/cn_sql_server_2008_r2_enterprise_x86_x64_ia64_dvd_522233.iso

axel -o /tmp -n 3 -S ftp://192.168.8.53/software/cn_sql_server_2008_r2_enterprise_x86_x64_ia64_dvd_522233.iso


httpd服务即apache的安装

tar -xf httpd-2.2.15.tar.gz 

cd httpd-2.2.15

./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd --enable-so

make

make install

启动apache服务

/usr/local/apache/bin/apachectl start


二进制程序的访问方法(直接可以通过apachectl命令开启apache服务)
    /etc/profile.d/apache.sh
    PATH=/usr/local/apache/bin:/usr/local/apache/sbin:$PATH
    expore PATH


    source /etc/profile.d/apache.sh




   头文件输出给系统
    ln -sv /usr/local/apache/include /usr/include/httpd
    库文件,如果有多个,则一行写一个
    vim /etc/ld.so.conf.d/httpd.conf
    /usr/local/apache/lib


    让系统重新生成库文件路径缓存(系统启动生成库文件缓存/etc/ld.so.cache)
    ldconfig
  
    导出man文件
    vi /etc/man.conf 
    添加
    MANPATH /usr/local/apache/man


相关文章:

  • 2021-12-23
  • 2021-10-17
  • 2021-05-26
  • 2021-12-03
  • 2021-12-04
  • 2021-11-18
猜你喜欢
  • 2021-12-08
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
  • 2022-01-22
相关资源
相似解决方案