2012年5月4日金曜日

CentOSでApacheServer構築

ターミナル開いて、rootになります。
→ suしてパスワード入れる。

んで、以下のコマンドを入れる。

yum -y install httpd

Complete!と共に完了!

ログ↓

# yum -y install httpd
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: centos.ustc.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: centos.ustc.edu.cn
base                                                     | 3.7 kB     00:00     
extras                                                   | 3.5 kB     00:00     
updates                                                  | 3.5 kB     00:00     
updates/primary_db                                       | 3.0 MB     02:51     
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-15.el6.centos will be updated
---> Package httpd.x86_64 0:2.2.15-15.el6.centos.1 will be an update
--> Processing Dependency: httpd-tools = 2.2.15-15.el6.centos.1 for package: httpd-2.2.15-15.el6.centos.1.x86_64
--> Running transaction check
---> Package httpd-tools.x86_64 0:2.2.15-15.el6.centos will be updated
---> Package httpd-tools.x86_64 0:2.2.15-15.el6.centos.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package          Arch        Version                        Repository    Size
================================================================================
Updating:
 httpd            x86_64      2.2.15-15.el6.centos.1         updates      813 k
Updating for dependencies:
 httpd-tools      x86_64      2.2.15-15.el6.centos.1         updates       70 k

Transaction Summary
================================================================================
Upgrade       2 Package(s)

Total download size: 882 k
Downloading Packages:
(1/2): httpd-2.2.15-15.el6.centos.1.x86_64.rpm           | 813 kB     00:30     
(2/2): httpd-tools-2.2.15-15.el6.centos.1.x86_64.rpm     |  70 kB     00:02     
--------------------------------------------------------------------------------
Total                                            26 kB/s | 882 kB     00:33     
警告: rpmts_HdrFromFdno: ヘッダ V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
 Package: centos-release-6-2.el6.centos.7.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : httpd-tools-2.2.15-15.el6.centos.1.x86_64                    1/4 
  Updating   : httpd-2.2.15-15.el6.centos.1.x86_64                          2/4 
  Cleanup    : httpd-2.2.15-15.el6.centos.x86_64                            3/4 
  Cleanup    : httpd-tools-2.2.15-15.el6.centos.x86_64                      4/4 

Updated:
  httpd.x86_64 0:2.2.15-15.el6.centos.1                                         

Dependency Updated:
  httpd-tools.x86_64 0:2.2.15-15.el6.centos.1                                   

Complete!

0 件のコメント:

コメントを投稿