一、項(xiàng)目介紹
1.1 項(xiàng)目介紹
- games項(xiàng)目
Games項(xiàng)目是一個(gè)網(wǎng)頁(yè)小游戲合集的網(wǎng)站,用戶可以在瀏覽器中直接打開(kāi)并試玩其中的游戲。該網(wǎng)站已經(jīng)自動(dòng)安裝了一些開(kāi)源的小游戲,同時(shí)也支持定制功能,用戶可以根據(jù)自己的需求對(duì)游戲進(jìn)行定制。這個(gè)項(xiàng)目的目的是為了提供一個(gè)方便、快捷并且開(kāi)放的平臺(tái),讓用戶能夠輕松地享受到各種小游戲的樂(lè)趣。
1.2 自定義配置方法
- 使用目錄可以輕松進(jìn)行可選自定義_build/custom/
- 自定義游戲列表:復(fù)制和編輯_build/games.php_build/custom/games.php
- 自定義標(biāo)題和標(biāo)題:復(fù)制和編輯_build/config.php_build/custom/config.php
- 自定義 HTML 頁(yè)眉:復(fù)制和編輯_build/templates/header.php_build/custom/header.php
- 自定義 HTML 頁(yè)面頁(yè)腳:復(fù)制和編輯_build/templates/footer.php_build/custom/footer.php
- 自定義 CSS:復(fù)制和編輯_build/templates/css.css_build/custom/css.css
- 重建方式 php build.php install
二、本次實(shí)踐介紹
2.1 環(huán)境規(guī)劃
hostname | 操作系統(tǒng)版本 | IP地址 | PHP版本 |
---|---|---|---|
jeven | centos 7.6 | 192.168.3.166 | v7.4.33 |
2.2 本次實(shí)踐介紹
1.本次實(shí)踐部署環(huán)境為個(gè)人測(cè)試環(huán)境,生產(chǎn)環(huán)境請(qǐng)謹(jǐn)慎;
2.本次實(shí)踐為部署一個(gè)開(kāi)源的小游戲合集網(wǎng)站。
三、檢查本地環(huán)境
3.1 檢查操作系統(tǒng)版本
檢查操作系統(tǒng)版本,本次實(shí)踐操作系統(tǒng)為centos7.6。
[root@docker ~]# cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)
3.2 檢查當(dāng)前yum倉(cāng)庫(kù)
檢查當(dāng)前的yum倉(cāng)庫(kù)源,默認(rèn)使用的是centos鏡像源,可更換阿里的鏡像源。文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-828440.html
[root@jeven html]# yum repolist enabled
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* epel: mirrors.bfsu.edu.cn
* remi-safe: ftp.riken.jp
repo id repo name status
appnode/x86_64 AppNode's RPM repository for Enterprise Linux 7 - x86_64 4,266
appnode-agent/x86_64 AppNode Agent Repository - x86_64 332
appnode-ccenter/x86_64 AppNode CCenter Repository - x86_64 71
appnode-extras/x86_64 AppNode Extras Repository - x86_64 88
base/7/x86_64 CentOS-7 - Base - mirrors.aliyun.com 10,072
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,787
extras/7/x86_64 CentOS-7 - Extras - mirrors.aliyun.com 519
remi-safe Safe Remi's RPM repository for Enterprise Linux 7 - x86_64 5,571
updates/7/x86_64 CentOS-7 - Updates - mirrors.aliyun.com 5,742
repolist: 40,448
四、安裝httpd軟件
4.1 檢查yum倉(cāng)庫(kù)
如果沒(méi)有鏡像源,可以使用阿里云的鏡像源。文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-828440.html
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
sed -i -e '/mirrors.cloud.aliyuncs.com/d'
到了這里,關(guān)于Linux系統(tǒng)之部署網(wǎng)頁(yè)小游戲合集網(wǎng)站的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!