rpm包 默认安装位置,绝大多数
/etc/ 配置文件安装目录
/usr/bin/ 可执行文件安装目录
/user/lib 程序所有的函数保存到位置
/usr/share/doc 基本软件使用保存位置
/usr/share/man 帮助文件保存的位置
例如 apache
rpm包的安装位置
/etc/rc.d/init.d/httpd start /启动apache服务
/var/www/html/ /apache网页保存位置
源码包安装
源码包保存位置 /usr/local/src/
软件安装位置 /usr/local/
源码包安装前准备
下载 ,安装 gcc
进入目录
./configure --help
./configure --prefix = /usr/local/apache2 /手动指定apache 目录
make 编译
若编译失败,执行 make clean 命令,清除缓存
make install 安装
###############################################################################################
wget 命令
wget http://xxx.xxx.xxx.xx/aaa/gcc.tar.gz -c -O /tmp/gcc.tar.gz
-c 断点下载
-O 指定路径
wget 下载网站
wget -m http://xxx.com/xxx
wget -r -p -np -k http://xxx.com/xxx -r, --recursive(递归) specify recursive download.(指定递归下载) -k, --convert-links(转换链接) make links in downloaded HTML point to local files.(将下载的HTML页面中的链接转换为相对链接即本地链接) -p, --page-requisites(页面必需元素) get all images, etc. needed to display HTML page.(下载所有的图片等页面显示所需的内容) -np, --no-parent(不追溯至父级) don't ascend to the parent directory. 另外断点续传用-nc参数 日志 用-o参数