前提・実現したいこと
ドットインストールで「ローカル環境開発[mac os偏]」をしていたところ、レッスン「#10」で PHP が用意している Web サーバーが立ち上がらず、php: 「コマンドが見つかりません」と表示されてしまいます。
原因がレッスン「#7 仮想マシンの設定を使用をしよう」でエラーだと動画の補足に書いてありました。
(スクリプトの実行)./run.sh コマンドを入力したところ、以下のエラーメッセージが発生しました。どなたか解決方法が分かる方がおりましたらご教授お願いします。
発生している問題・エラーメッセージ
TASK [install remi repository] *************************************************
[WARNING]: Consider using the yum, dnf or zypper module rather than running
rpm. If you need to use command because yum, dnf or zypper is insufficient you
can add warn=False to this command task or set command_warnings=False in
ansible.cfg to get rid of this message.
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["rpm", "-Uvh", "--force", "http://rpms.famillecollet.com/enterprise/remi-release-6.rpm"], "delta": "0:00:15.670341", "end": "2019-08-29 05:04:13.684754", "msg": "non-zero return code", "rc": 1, "start": "2019-08-29 05:03:58.014413", "stderr": "curl: (7) Failed to connect to 2001:bc8:33a1💯:1: ネットワークに届きません\nエラー: skipping http://rpms.famillecollet.com/enterprise/remi-release-6.rpm - transfer failed", "stderr_lines": ["curl: (7) Failed to connect to 2001:bc8:33a1💯:1: ネットワークに届きません", "エラー: skipping http://rpms.famillecollet.com/enterprise/remi-release-6.rpm - transfer failed"], "stdout": "http://rpms.famillecollet.com/enterprise/remi-release-6.rpm を取得中", "stdout_lines": ["http://rpms.famillecollet.com/enterprise/remi-release-6.rpm を取得中"]}
to retry, use: --limit @/home/vagrant/centos6/main.retry
PLAY RECAP *********************************************************************
localhost : ok=7 changed=2 unreachable=0 failed=1
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
問題に対して試したこと
動画の手順に沿って再度以下の手順を試したのですがやはり同じエラーが出てしまいました。
OSを最新状態にアップデート(時間かかります)
sudo yum -y update
スクリプトを入手するためのgitをインストール
sudo yum -y install git
gitを使ってアプリケーション設定用のスクリプトをダウンロード
git clone https://github.com/dotinstallres/centos6.git
centos6フォルダができるのでそちらに移動
cd centos6
スクリプトを実行(時間かかります)
./run.sh
もろもろの設定を反映
exec $SHELL -l
あなたの回答
tips
プレビュー