Ground Sunlight

Windowsで作る - PHPプログラミングの開発環境

ユーザ用ツール

サイト用ツール


centos:yum

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
centos:yum [2020/06/01 10:54]
y2sunlight [ISUによるgit2の導入]
centos:yum [2020/06/16 14:25] (現在)
y2sunlight [IUSによるgit2の導入]
行 1: 行 1:
-> 編集中 
- 
------ 
- 
 ====== yumコマンド ====== ====== yumコマンド ======
 Version CentOS 7.2 Version CentOS 7.2
行 22: 行 18:
   * [[centos:systemctl|systemctl --- サービスの操作]]   * [[centos:systemctl|systemctl --- サービスの操作]]
   * [[centos:journalctl|journalctl --- ログの操作]]   * [[centos:journalctl|journalctl --- ログの操作]]
 +  * [[centos:firewall-cmd|firewall-cmd --- ファイアウォールの操作]]
  
 リンク リンク
行 240: 行 237:
 /etc/yum.repos.d/emi-safe.repo を編集してremi-safeリポジトリを無効化します。 /etc/yum.repos.d/emi-safe.repo を編集してremi-safeリポジトリを無効化します。
  
-<code ini remi.repo>+<code>
 cd /etc/yum.repos.d/ cd /etc/yum.repos.d/
 vi remi-safe.repo vi remi-safe.repo
行 283: 行 280:
 yum install --enablerepo=remi,remi-php73 php-devel php-mbstring php-pdo php-gd php-mysqlnd yum install --enablerepo=remi,remi-php73 php-devel php-mbstring php-pdo php-gd php-mysqlnd
 </code> </code>
- 
-> php-mysqlndは 
  
 現在のPHPバージョンを確認します。 現在のPHPバージョンを確認します。
行 296: 行 291:
 \\ \\
  
-===== ISUによるgit2の導入 =====+===== IUSによるgit2の導入 =====
 IUS リポジトリは python や git の最新版をインストールする場合に必要になります。IUS リポジトリは登録が終わったら無効化しておき、必要に応じて yumコマンドで有効化することにします。 IUS リポジトリは python や git の最新版をインストールする場合に必要になります。IUS リポジトリは登録が終わったら無効化しておき、必要に応じて yumコマンドで有効化することにします。
  
行 384: 行 379:
 === 4. gitのインストール === === 4. gitのインストール ===
  
-> TODO: +''yum search''Git2.xパッケージ名調べます。
- +
-最初に ''yum install''PHP7.3本体インストールしす。使用するリポジトリは remi-php74です。+
  
 <code> <code>
-yum install --enablerepo=remi,remi-php73 php+yum search --enablerepo=ius git2 
 +... 
 +git222.x86_64 : Fast Version Control System 
 +git222-all.noarch : Meta-package to pull in all git tools 
 +git222-core.x86_64 : Core package of git with minimal functionality 
 +... 
 +git224.x86_64 : Fast Version Control System 
 +git224-all.noarch : Meta-package to pull in all git tools 
 +git224-core.x86_64 : Core package of git with minimal functionality 
 +...
 </code> </code>
  
->リポジトリしては ''remi'' と ''remi-php73'' の2つ指定しました。バージョ共通のパッケジが remi には含れているようです。+上の表示例、抜粋ですが、git2.22 と git2.24 があることが分かります。 
 + 
 +''yum install'' でGit2.24ストルします。
  
 +<code>
 +yum install --enablerepo=ius git224
 +</code>
 <div indent> <div indent>
 インストールの途中で、インストールしても良いか確認される (''Is this ok [y/d/N]:'') ので ''y'' と回答します。正常にインストールされると最後に、完了のメッセージが表示されます。 インストールの途中で、インストールしても良いか確認される (''Is this ok [y/d/N]:'') ので ''y'' と回答します。正常にインストールされると最後に、完了のメッセージが表示されます。
 </div> </div>
  
-引き続いて、PHPモュールインストールします。 +現在のGitバーョン確認します。
- +
-  * php-devel --- TODO +
-  * php-mbstring --- 日本語を扱えるようにする +
-  * php-gd --- 画像を扱えるようにする +
-  * php-mysql --- MySQLとの連携を実現する +
-  * php-pdo --- PHPのPDOクラスを使用する +
- +
-必要に応じて追加して下さい。 +
 <code> <code>
-yum install --enablerepo=remi,remi-php73 php-devel php-mbstring php-pdo php-gd php-mysqlnd +git --version 
-</code> +git version 2.24.2
- +
-> php-mysqlndは +
- +
-現在のPHPバージョンを確認します。 +
-<code> +
-php -v +
-PHP 7.3.18 (cli) (built: May 12 2020 08:04:33) ( NTS ) +
-Copyright (c) 1997-2018 The PHP Group +
-Zend Engine v3.3.18, Copyright (c) 1998-2018 Zend Technologies+
 </code> </code>
  
 \\ \\
  
centos/yum.1590976441.txt.gz · 最終更新: 2020/06/01 10:54 by y2sunlight