首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

关于升级linux停apache

2013-10-10 
关于升级linux下apache1:Check whether Apache is already installed.# rpm -qa | grep -i httphttpd-tool

关于升级linux下apache

1:Check whether Apache is already installed.
# rpm -qa | grep -i httphttpd-tools-2.2.8-3.i386httpd-2.2.8-3.i386[Note: This indicates that Apache 2.2.8 version is installed already]

2:Check whether latest version of Apache is available for installation using yum.
yum check-update httpdLoaded plugins: refresh-packagekithttpd.i386      2.2.9-1.fc9       updates[Note: This indicates that the latest Apache version 2.2.9       is available for upgrade]
3:Upgrade Apache to latest version using yum.
# yum update httpd
Loaded plugins: refresh-packagekitSetting up Update ProcessResolving Dependencies--> Running transaction check---> Package httpd.i386 0:2.2.9-1.fc9 set to be updated--> Processing Dependency: httpd-tools = 2.2.9-1.fc9 for package: httpd--> Running transaction check---> Package httpd-tools.i386 0:2.2.9-1.fc9 set to be updated--> Finished Dependency ResolutionDependencies Resolved=============================================================================Package                 Arch       Version          Repository        Size=============================================================================Updating:httpd                   i386       2.2.9-1.fc9      updates           975 khttpd-tools             i386       2.2.9-1.fc9      updates            69 kTransaction Summary=============================================================================Install      0 Package(s)Update       2 Package(s)Remove       0 Package(s)Total download size: 1.0 MIs this ok [y/N]: yDownloading Packages:(1/2): httpd-tools-2.2.9-1.fc9.i386.rpm                  |  69 kB     00:00(2/2): httpd-2.2.9-1.fc9.i386.rpm                        | 975 kB     00:00Running rpm_check_debugRunning Transaction TestFinished Transaction TestTransaction Test SucceededRunning TransactionUpdating       : httpd-tools                                       [1/4]Updating       : httpd                                             [2/4]Cleanup        : httpd                                             [3/4]Cleanup        : httpd-tools                                       [4/4]Updated: httpd.i386 0:2.2.9-1.fc9 httpd-tools.i386 0:2.2.9-1.fc9Complete!

4:Verify whether the Apache got upgraded successfully.
# rpm -qa | grep -i httphttpd-tools-2.2.9-1.fc9.i386httpd-2.2.9-1.fc9.i386[Note: This indicates that Apache was upgraded to 2.2.9 successfully]

热点排行