本文共 1389 字,大约阅读时间需要 4 分钟。
实验报告
实验目的:熟练安装、卸载安装包实验要求:1.查看lynx、vsftpd、dhcp、samba软件包是否安装,如果没有安装则安装2.通过编译安装apache,将apache安装到/个人姓名目录下3.启动apache服务4.在apache本机利用浏览器和lynx访问apache 5.查看vim所在的软件包,并卸载,再安装6.删除apache软件包实验步骤1.查看lynx、vsftpd、dhcp软件包是否安装,如果没有安装则安装rpm -q lynx vsftpd dhcprpm -ivh /mnt/Packages/lynx-2.8.8-0.3.dev15.el7.x86_64.rpm rpm -ivh /mnt/Packages/vsftpd-3.0.2-21.el7.x86_64.rpm rpm -ivh /mnt/Packages/dhcp-4.2.5-47.el7.centos.x86_64.rpm 2.通过编译安装apache,将apache安装到/个人姓名目录下1)先安装依赖包rpm -ivh /mnt/Packages/pcre-devel-8.32-15.el7_2.1.x86_64.rpmrpm -ivh /mnt/Packages/expat-devel-2.1.0-8.el7.x86_64.rpm rpm -ivh /mnt/Packages/libdb-devel-5.3.21-19.el7.x86_64.rpmrpm -ivh /mnt/Packages/cyrus-sasl-devel-2.1.26-20.el7_2.x86_64.rpmrpm -ivh /mnt/Packages/openldap-devel-2.4.40-13.el7.x86_64.rpmrpm -ivh /mnt/Packages/apr-* --force2)再安装源码包apacheumount /dev/cdrommount /dev/cdrom /mnttar zxf /mnt/httpd-2.4.25.tar.gz -C /usr/srccd /usr/src/httpd-2.4.25/./configure --prefix=/usr/local/httpd &&make&&make installvim /usr/local/httpd/conf/httpd.conf 3.启动apache服务/usr/local/httpd/bin/apachectl start4.在apache本机利用浏览器和lynx访问apache lynx 127.0.0.15.查看vim所在的软件包,并卸载,再安装which vimrpm -qf /usr/bin/vimrpm -e vim-enhancedvimumount /dev/cdrommount /dev/cdrom /mntrpm -ivh /mnt/Packages/vim-enhanced-7.4.160-1.el7.x86_64.rpm 6.删除apache软件包rm -rf /usr/local/httpd/转载于:https://blog.51cto.com/14354240/2401608