VPS Webサーバー
環境
さくらVPSVPS Webサーバー
Webコンテンツ
Apache :httpサーバーアプリケーション(httpd)ブラウザ⇔Webサーバー間通信を行う 他、nginx(エンジンエックス)
手順
1.Apache インストール
下記を入力
[root@□□-□□□□ ~]# yum install httpd
下記で「y」入力
Total download size: 2.8 M Installed size: 9.6 M Is this ok [y/d/N]:y
下記で成功!
Complete! [root@□□-□□□□ ~]#
3.ファイアウォール設定
下記の通信を許可する
下記を記入 ※2つのプロトコルをそれぞれ許可
[root@□□-□□□□ ~]# firewall-cmd --add-service=http --zone=public --permanent success ※成功 [root@□□-□□□□ ~]# firewall-cmd --add-service=https --zone=public --permanent success ※成功
7.サービスユニットリストで同時起動確認
下記を入力
[root@□□-□□□□ ~]# systemctl list-unit-files -t service
下記になっていれば成功!! ※)「q」で表示終了