LoginSignup
0
0

More than 3 years have passed since last update.

Google Cloud PlatformのCentOSでApacheを立ち上げるまで。

Posted at

概要(TL;DR)

GCP(Google Cloud Platform)の無料リソースでWebページを表示するのに、ハマったので共有します。

前提条件

OSはCentOS7とします。

httpdのインストール

どのページを見ても、下記のコマンドを実行すればTesting 123...が表示されると書いてある。

$ sudo yum install httpd
$ sudo systemctl httpd start
$ 

しかし、VMインスタンスの外部IPの横のリンク(下図)を押しても表示されない。ERR_CONNECTION_REFUSED。

スクリーンショット 2020-03-14 0.06.13.png

あっけない結論

上記のリンクから接続した場合は、httpsになっているのでアクセスできない。ブラウザのプロトコルをhttpに変更すれば表示される。ほんとにつまらない事で時間を使った。(CentOSなのでSELinux側の設定がいるのか?とか的外れな詮索をしてしまった。)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0