比較バージョン

キー

  • この行は追加されました。
  • この行は削除されました。
  • 書式設定が変更されました。

 

  1. LinuxのクラウドサービスDNS名に対して、SSHで接続します。
    Image Modified

...

 

...

  1. ユーザ名、パスワードは、Linuxの仮想マシンを作成したときに設定したものを使用します。

    コード ブロック
    languagebash
    linenumberstrue
    login as: azureuser

...

  1. 
    azureuser@cuda-test-linux.cloudapp.net's password:

...

  1. 
    [azureuser@cuda-test-linux ~]$

...

 

...

  1. rootユーザになります。

    コード ブロック
    languagebash
    linenumberstrue
    [azureuser@cuda-test-linux ~]$ sudo su -

...

 

  1. 
    
    We trust you have received the usual lecture from the local System

...

  1. 
    Administrator. It usually boils down to these three things:

...

 

...

  1. 
    
        #1) Respect the privacy of others.

...

  1. 
        #2) Think before you type.

...

  1. 
        #3) With great power comes great responsibility.

...

 

  1. 
    
    [sudo] password for azureuser:

...

  1. 
    Last login: Fri

...

  1.  Jun  5 20:55:08 UTC 2015 on tty1

...

  1. 
    [root@cuda-test-linux ~]#

...

 

 

...

  1. httpd(Apache)をインストールします。

    コード ブロック
    languagebash
    linenumberstrue
    [root@cuda-test-linux ~]# yum install httpd

...

  1. 
    Loaded plugins:

...

  1.  fastestmirror
    base                                                     | 3.6 kB     00:00
    extras                                                   | 3.4 kB     00:00
    openlogic                                                | 1.3 kB     00:00
    updates                                                  | 3.4 kB     00:00
    (1/5): openlogic/7/x86_64/primary

...

  1.                           | 276 kB   00:00

...

  1. 
    (

...

  1. 2/5):

...

  1.  extras/7/x86_64/primary_

...

  1. db                          |  62 kB   00:00
    (3/5): base/7/x86_64/group_gz                              | 154 kB   00:00
    (4/5): updates/7/x86_64/primary_db                         | 2.5 MB   00:00
    (5/5): base/7/x86_64/primary_db                            | 5.1 MB   00:01
    Determining fastest mirrors
    openlogic                                                                 40/40
    Resolving Dependencies
    --> Running transaction check
    ---> Package httpd.x86_64 0:2.4.6-31.

...

  1. el7.centos

...

  1.  will be installed
    -->

...

  1. 
     Processing Dependency: httpd-tools = 2.4.6-31.el7.centos for package: 
    httpd-                                                                                                       
     2.4.6-31.el7.centos.x86_64
    --> Processing Dependency: 
    /etc/mime.types for package: 
    httpd-2.4.6-31.el7.cento                                                                                                       
     s.x86_64
    --> Processing Dependency: libaprutil-1.so.0()(64bit)
     for package: 
    httpd-2.4.6-3                                                                                                       
     1.el7.centos.x86_64
    --> Processing Dependency: libapr-1.so.0()(64bit)
     for package: 
    httpd-2.4.6-31.el                                                                                                       
     7.centos.x86_64
    --> Running transaction check
    ---> Package apr.x86_64 0:1.4.8-3.el7 will be installed
    ---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed
    ---> Package httpd-tools.x86_64

...

  1.  0:2.4.6-31.el7.centos

...

(4/5): httpd-2.4.6-31.el7.centos.x86_64.rpm                                                                                                                      | 2.7 MB  00:00:00

(5/5): mailcap-2.1.41-2.el7.noarch.rpm                                                                                                                           |  31 kB  00:00:00

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Total                                                                                                                                                   3.8 MB/s | 3.0 MB  00:00:00

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

  Installing : apr-1.4.8-3.el7.x86_64                                                                                                                                               1/5

  Installing : apr-util-1.5.2-6.el7.x86_64                                                                                                                                          2/5

  Installing : httpd-tools-2.4.6-31.el7.centos.x86_64                                                                                                                               3/5

  Installing : mailcap-2.1.41-2.el7.noarch                                                                                                                                          4/5

...

  1.  will be installed
    ---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package            Arch          Version                     Repository   Size
    ================================================================================
    Installing:
     httpd              x86_64        2.4.6-31.el7.centos         base        2.7 M
    Installing for dependencies:
     apr                x86_64        1.4.8-3.el7                 base        103 k
     apr-util           x86_64        1.5.2-6.el7                 base         92 k
     httpd-tools        x86_64        2.4.6-31.el7.centos

...

  Verifying  : httpd-tools-2.4.6-31.el7.centos.x86_64                                                                                                                               1/5

  Verifying  : apr-1.4.8-3.el7.x86_64                                                                                                                                               2/5

  Verifying  : mailcap-2.1.41-2.el7.noarch                                                                                                                                          3/5

  Verifying  : httpd-2.4.6-31.el7.centos.x86_64                                                                                                                                     4/5

  Verifying  : apr-util-1.5.2-6.el7.x86_64                                                                                                                                          5/5

 

Installed:

...

  1.          base         79 k
     mailcap            noarch        2.1.41-2.el7                base         31 k
    
    Transaction Summary
    ================================================================================
    Install  1 Package (+4 Dependent packages)
    
    Total download size: 3.0 M
    Installed size: 10 M
    Is this ok [y/d/N]: y
    Downloading packages:
    (1/5):
     
    apr-1.4.8-3.el7.x86_64.rpm                                                                                                                               
     | 103 kB  00:00:00
    (2/5): 
    apr-util-1.5.2-6.el7.x86_64.rpm                                                                                                                          
     |  92 kB  00:00:00
    (3/5): 
    httpd-tools-2.4.6-31.el7.centos.x86_64.rpm                                                                                                               
     |  79 kB  00:00:00
    (4/5): 
    httpd-2.4.6-31.el7.centos.x86_64.rpm                                                                                                                     
     | 2.7 MB  00:00:00
    (5/5): 
    mailcap-2.1.41-2.el7.noarch.rpm                                                                                                                          
     |  31 kB  00:00:00
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                                  
     3.8 MB/s | 3.0 MB  00:00:00
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
     
     Installing : 
    apr-1.4.8-3.el7.x86_64                                                                                                                                              
     1/5
      Installing : 
    apr-util-1.5.2-6.el7.x86_64                                                                                                                                         
     2/5
      Installing : 
    httpd-tools-2.4.6-31.el7.centos.x86_64                                                                                                                              
     3/5
      Installing : 
    mailcap-2.1.41-2.el7.noarch                                                                                                                                         
     4/5
      Installing : 
    httpd-2.4.6-31.el7.centos.x86_64                                                                                                                                    
     5/5
      Verifying  : 
    httpd-tools-2.4.6-31.el7.centos.x86_64                                                                                                                              
     1/5
      Verifying  : 
    apr-1.4.8-3.el7.x86_64                                                                                                                                              
     2/5
      Verifying  : 
    mailcap-2.1.41-2.el7.noarch                                                                                                                                         
     3/5
      Verifying  : 
    httpd-2.4.6-31.el7.centos.x86_64                                                                                                                                    
     4/5
      Verifying  : 
    apr-util-1.5.2-6.el7.x86_64                                                                                                                                         
     5/5
    
    
    Installed:
      httpd.x86_64 0:2.4.6-31.el7.centos

...

 

Dependency Installed:

...

  1. 
    
    
    Dependency Installed:
     
     apr.x86_64 0:1.4.8-3.

...

  1. el7               apr-util.x86_64 
    0:1.5

...

  1. .2-6.el7               httpd-tools.x86_64 
    0:2.4.6-31.el7.

...

  1. centos               mailcap.noarch 0:2.1.41-2.el7

...

 

  1. 
    
    
    Complete!

...

  1. 
    [root@cuda-test-linux ~]#

...

 

 

...

  1. 
    
    
  2. サービス起動するように設定します。

    コード ブロック
    languagebash
    linenumberstrue
    [root@cuda-test-linux init.d]# systemctl enable httpd.service

...

  1. 
    ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service'

...

  1. 
    [root@cuda-test-linux init.d]#

...

 

 

...

  1. 
    
    
    
  2. httpdサービスを起動します。

    コード ブロック
    languagebash
    linenumberstrue
    [root@cuda-test-linux init.d]# service httpd start

...

  1. 
    Redirecting to /bin/systemctl

...

  1.  start  httpd.service
    
    
    
  2. ブラウザで、http://cuda-test-linux.cloudapp.netへアクセスし、Webサーバが起動していることを確認します。
    Image Added

 

 

以上です。