ConoHaのCentOS8でWebサーバーをインストールして、RPGツクールMVのゲームを実機チェックする
習慣化7日目
RPGツクールMVで作成中のデータをケータイで確認したい
RPGアツマールに限定公開でリリースできるようだったが、
1プロジェクトにつき1つしか準備できないようだった(ちゃんと確認してない)
でもバージョン毎に残していけたらいいなと思う。
そこで、自前のWebサーバーを準備して、そこにHTML5でデータをアップして動作確認しようと思う。
Webサーバーのインストール
ここに記載されている通りでOK。 わかりやすい! 感謝!!
コマンドのみ抜粋版
# dnf list --installed | grep httpd # dnf install -y httpd httpd-tools httpd-devel httpd-manual # dnf list --installed | grep httpd # cd /etc/httpd/conf # mkdir BAKCUP # cp -ip httpd.conf BAKCUP/httpd.conf.2020060901 # vi httpd.conf +ServerName soraconoha # diff -u BAKCUP/httpd.conf.2020060901 httpd.conf # apachectl configtest Syntax OK # systemctl status httpd # systemctl start httpd # systemctl status httpd # cd /var/www/html/ # vi index.html # cat index.html
実施内容
◆作業前はインストールされていないことを確認 ============================== # dnf list --installed | grep httpd Repository google-chrome is listed more than once in the configuration ◆インストール ============================== # dnf install -y httpd httpd-tools httpd-devel httpd-manual (snip) Installed: httpd-2.4.37-16.module_el8.1.0+256+ae790463.x86_64 httpd-devel-2.4.37-16.module_el8.1.0+256+ae790463.x86_64 httpd-manual-2.4.37-16.module_el8.1.0+256+ae790463.noarch httpd-tools-2.4.37-16.module_el8.1.0+256+ae790463.x86_64 apr-util-bdb-1.6.1-6.el8.x86_64 apr-util-openssl-1.6.1-6.el8.x86_64 apr-1.6.3-9.el8.x86_64 apr-devel-1.6.3-9.el8.x86_64 apr-util-1.6.1-6.el8.x86_64 apr-util-devel-1.6.1-6.el8.x86_64 centos-logos-httpd-80.5-2.el8.noarch httpd-filesystem-2.4.37-16.module_el8.1.0+256+ae790463.noarch libdb-devel-5.3.28-37.el8.x86_64 mod_http2-1.11.3-3.module_el8.1.0+213+acce2796.x86_64 cyrus-sasl-2.1.27-1.el8.x86_64 cyrus-sasl-devel-2.1.27-1.el8.x86_64 openldap-devel-2.4.46-11.el8_1.x86_64 Complete! ◆インストールされたことを確認 ============================== # dnf list --installed | grep httpd Repository google-chrome is listed more than once in the configuration centos-logos-httpd.noarch 80.5-2.el8 @AppStream httpd.x86_64 2.4.37-16.module_el8.1.0+256+ae790463 @AppStream httpd-devel.x86_64 2.4.37-16.module_el8.1.0+256+ae790463 @AppStream httpd-filesystem.noarch 2.4.37-16.module_el8.1.0+256+ae790463 @AppStream httpd-manual.noarch 2.4.37-16.module_el8.1.0+256+ae790463 @AppStream httpd-tools.x86_64 2.4.37-16.module_el8.1.0+256+ae790463 @AppStream ◆httpd.confを設定する ============================== # cd /etc/httpd/conf # ls httpd.conf magic # mkdir BAKCUP # cp -ip httpd.conf BAKCUP/httpd.conf.2020060901 # vi httpd.conf # diff -u BAKCUP/httpd.conf.2020060901 httpd.conf --- BAKCUP/httpd.conf.2020060901 2019-12-24 05:44:22.000000000 +0900 +++ httpd.conf 2020-06-09 10:18:32.019000000 +0900 @@ -96,6 +96,7 @@ # If your host doesn't have a registered DNS name, enter its IP address here. # #ServerName www.example.com:80 +ServerName soraconoha # # Deny access to the entirety of your server's filesystem. You must # apachectl configtest Syntax OK ◆サービスを起動する ============================== # systemctl status httpd # systemctl start httpd # systemctl status httpd ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: active (running) since Tue 2020-06-09 10:20:37 JST; 2s ago Docs: man:httpd.service(8) Main PID: 28708 (httpd) Status: "Started, listening on: port 80" Tasks: 213 (limit: 5056) Memory: 17.0M CGroup: /system.slice/httpd.service tq28708 /usr/sbin/httpd -DFOREGROUND tq28709 /usr/sbin/httpd -DFOREGROUND tq28710 /usr/sbin/httpd -DFOREGROUND tq28711 /usr/sbin/httpd -DFOREGROUND mq28712 /usr/sbin/httpd -DFOREGROUND Jun 09 10:20:37 soraconoha systemd[1]: Starting The Apache HTTP Server... Jun 09 10:20:37 soraconoha systemd[1]: Started The Apache HTTP Server. Jun 09 10:20:37 soraconoha httpd[28708]: Server configured, listening on: port 80 ◆テストページを作成 ============================== [root@soraconoha conf]# cd /var/www/html/ [root@soraconoha html]# ls [root@soraconoha html]# vi index.html [root@soraconoha html]# cat index.html <!DOCTYPE html> <html lang="ja"> <head> <title>test</title> </head> <body> <h1>test1</h1> <h2>test2</h2> <h3>test3</h3> <h4>test4</h4> </body> </html>
ポートの設定
下記で実施済み。
ConoHaの場合、管理画面でのポート設定もあるので注意。
RPGツクールMVのデータチェック
アップ用のフォルダを作成しておく
# cd /var/www/html # mkdir -p rpgtkoolmv/deploy/20200608
デプロイする
こちらのページ通りでOK! 感謝!!
URLにアクセス
うごいた!!
これは嬉しい!
自分たちで作った物がケータイで動くって嬉しいなぁ!
これはどんどん進めていきたくなる!