| 手順 PuTTYからログイン開始 B-1 PuTTYのDLを完了している事 password入力 |
| login as: root root@192.168.0.21's password: [root@linux ~]# |
| 公開鍵のインストール |
| [root@linux ~]# rpm --import /usr/share/doc/fedora-release-3/RPM-GPG-KEY* |
| [root@linux ~]# |
| インターネット接続できるか httpdをDLし確認できます。 |
| [root@linux ~]# yum install httpd |
| Setting up Install Process Setting up Repo: base Cannot find a valid baseurl for repo: base このエラーメッセージが出る場合 インターネット接続、 又は、IP設定に問題があります。 |
| 下記の手順でNetworkカードにIPアドレスを正しく設定します。 |
| Networkカードを設定する IP 192.168.0.11(当サイトの場合) Windows側からログインできない場合はLinuxで実行 |
| [root@linux ~]# netconfig -d=eth0 |
| TAB キーで送り値数 |
| 値数後OK |
| Networkカードが2枚ある場合は eth1を 上記と同じように設定 IP 192.168.0.21((当サイトの場合) |
| [root@linux ~]# netconfig -d=eth1 |
| 上記と同じように二枚目のNetworkカードIPを値数後OK |
| Networkの再スタート |
| [root@linux ~]# /etc/rc.d/init.d/network restart |
| Shutting down interface eth0: [ OK ] Shutting down interface eth1: [ OK ] Shutting down loopback interface: [ OK ] Setting network parameters: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ] Bringing up interface eth1: [ OK ] [root@linux ~]# |
| インターネット接続できるかhttpdをDL確認 |
| [root@linux ~]# yum install httpd |
| Setting up Install Process Setting up Repo: base repomd.xml 100% |=========================| 1.1 kB 00:00 Setting up Repo: updates-released repomd.xml 100% |=========================| 951 B 00:00 Reading repository metadata in from local files primary.xml.gz 100% |=========================| 797 kB 00:07 MD Read : ################################################## 2623/2623 base : ################################################## 2622/2622 primary.xml.gz 100% |=========================| 342 kB 00:01 MD Read : ################################################## 872/872 updates-re: ################################################## 872/872 Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for httpd to pack into transaction set. httpd-2.0.52-3.1.i386.rpm 100% |=========================| 58 kB 00:00 ---> Package httpd.i386 0:2.0.52-3.1 set to be installed --> Running transaction check --> Processing Dependency: httpd-suexec for package: httpd --> Processing Dependency: libaprutil-0.so.0 for package: httpd --> Processing Dependency: libapr-0.so.0 for package: httpd --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Downloading header for httpd-suexec to pack into transaction set. httpd-suexec-2.0.52-3.1.i 100% |=========================| 18 kB 00:00 ---> Package httpd-suexec.i386 0:2.0.52-3.1 set to be installed ---> Downloading header for apr-util to pack into transaction set. apr-util-0.9.4-17.i386.rp 100% |=========================| 5.1 kB 00:00 ---> Package apr-util.i386 0:0.9.4-17 set to be installed ---> Downloading header for apr to pack into transaction set. apr-0.9.4-24.2.i386.rpm 100% |=========================| 7.0 kB 00:00 ---> Package apr.i386 0:0.9.4-24.2 set to be installed --> Running transaction check Dependencies Resolved Transaction Listing: Install: httpd.i386 0:2.0.52-3.1 Performing the following to resolve dependencies: Install: apr.i386 0:0.9.4-24.2 Install: apr-util.i386 0:0.9.4-17 Install: httpd-suexec.i386 0:2.0.52-3.1 Is this ok [y/N]: y yでEnter------------------------------------------ |
| インストール開始 Web用 httpd |
| Is this ok [y/N]: y Downloading Packages: httpd-2.0.52-3.1.i386.rpm 100% |=========================| 881 kB 00:23 httpd-suexec-2.0.52-3.1.i 100% |=========================| 24 kB 00:00 apr-util-0.9.4-17.i386.rp 100% |=========================| 51 kB 00:01 apr-0.9.4-24.2.i386.rpm 100% |=========================| 87 kB 00:02 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: apr 100 % done 1/4 Installing: apr-util 100 % done 2/4 Installing: httpd 100 % done 3/4 Installing: httpd-suexec 100 % done 4/4 Installed: httpd.i386 0:2.0.52-3.1 Dependency Installed: apr.i386 0:0.9.4-24.2 apr-util.i386 0:0.9.4-17 httpd-suexec.i386 0:2.0.52-3.1 Complete! [root@linux ~]# |
| phpのインストール -y をyumの後ろに記述すると y キーを押さなくっても完了する |
| [root@linux ~]# yum -y install php |
| Setting up Install Process Setting up Repo: base repomd.xml 100% |=========================| 1.1 kB 00:00 Setting up Repo: updates-released repomd.xml 100% |=========================| 951 B 00:00 Reading repository metadata in from local files base : ################################################## 2622/2622 updates-re: ################################################## 872/872 Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for php to pack into transaction set. php-4.3.11-2.4.i386.rpm 100% |=========================| 21 kB 00:00 ---> Package php.i386 0:4.3.11-2.4 set to be installed --> Running transaction check --> Processing Dependency: php-pear for package: php --> Processing Dependency: libidn.so.11 for package: php --> Processing Dependency: libcurl.so.3 for package: php --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Downloading header for php-pear to pack into transaction set. php-pear-4.3.11-2.4.i386. 100% |=========================| 34 kB 00:00 ---> Package php-pear.i386 0:4.3.11-2.4 set to be installed ---> Downloading header for libidn to pack into transaction set. libidn-0.5.6-1.i386.rpm 100% |=========================| 7.2 kB 00:00 ---> Package libidn.i386 0:0.5.6-1 set to be installed ---> Downloading header for curl to pack into transaction set. curl-7.12.3-3.fc3.i386.rp 100% |=========================| 9.5 kB 00:00 ---> Package curl.i386 0:7.12.3-3.fc3 set to be installed --> Running transaction check Dependencies Resolved Transaction Listing: Install: php.i386 0:4.3.11-2.4 Performing the following to resolve dependencies: Install: curl.i386 0:7.12.3-3.fc3 Install: libidn.i386 0:0.5.6-1 Install: php-pear.i386 0:4.3.11-2.4 Downloading Packages: php-4.3.11-2.4.i386.rpm 100% |=========================| 1.3 MB 00:07 php-pear-4.3.11-2.4.i386. 100% |=========================| 329 kB 00:02 libidn-0.5.6-1.i386.rpm 100% |=========================| 169 kB 00:02 curl-7.12.3-3.fc3.i386.rp 100% |=========================| 245 kB 00:02 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: libidn 100 % done 1/4 Installing: curl 100 % done 2/4 Installing: php-pear 100 % done 3/4 Installing: php 100 % done 4/4 Installed: php.i386 0:4.3.11-2.4 Dependency Installed: curl.i386 0:7.12.3-3.fc3 libidn.i386 0:0.5.6-1 php-pear.i386 0:4.3.11-2.4 Complete! [root@linux ~]# |
| FTPのインストール |
| [root@linux ~]# yum -y install vsftpd |
| Setting up Install Process Setting up Repo: base repomd.xml 100% |=========================| 1.1 kB 00:00 Setting up Repo: updates-released repomd.xml 100% |=========================| 951 B 00:00 Reading repository metadata in from local files base : ################################################## 2622/2622 updates-re: ################################################## 872/872 Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for vsftpd to pack into transaction set. vsftpd-2.0.1-5.i386.rpm 100% |=========================| 12 kB 00:00 ---> Package vsftpd.i386 0:2.0.1-5 set to be installed --> Running transaction check Dependencies Resolved Transaction Listing: Install: vsftpd.i386 0:2.0.1-5 Downloading Packages: vsftpd-2.0.1-5.i386.rpm 100% |=========================| 119 kB 00:00 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: vsftpd 100 % done 1/1 Installed: vsftpd.i386 0:2.0.1-5 Complete! [root@linux ~]# |
| DLしたパッケージの削除 |
| [root@linux ~]# yum clean packages |
| Cleaning up Packages 9 packages removed [root@linux ~]# |