跑跑車首頁

當前位置:首頁攻略秘籍單機攻略 → 我的世界Linux搭建網(wǎng)頁后臺Multicraft下載與安裝

我的世界Linux搭建網(wǎng)頁后臺Multicraft下載與安裝

作者:佚名來源:本站整理 發(fā)表時間:2016/2/4 9:35:58 評論(1)

小編為大家?guī)砹恕段业氖澜纭稬inux搭建網(wǎng)頁后臺Multicraft下載與安裝,首先下載Multicraft Linux版,下載好了以后請玩家自己看著下面的教程來安裝。

64位:http://www.multicraft.org/download?arch=linux64

32位:http://www.multicraft.org/download?arch=linux32

輸入命令

wget http://www.multicraft.org/download?arch=linux64 -O multicraft.tar.gz

復制代碼

接著下載中文語言包,輸入命令

wget http://www.multicraft.org/files/translation/multicraft-translation-zh.zip

復制代碼

安裝


解壓Multicraft壓縮包,輸入命令

tar xvzf multicraft.tar.gz

復制代碼

進入解壓出來的目錄,啟動安裝向?qū)?/p>

cd multicraft

./setup.sh

復制代碼

Run each Minecraft server under its own user? (Multicraft will create system users)

在每個Minecraft服務器自己的用戶下運行服務器嗎(Multicraft會創(chuàng)建系統(tǒng)用戶)?這里輸入n,如果你是服務器供應商,有很多服務器運行,出于安全考慮,請輸入y。

Run Multicraft under this user

在這個用戶下運行Multicraft,默認是minecraft,回車即可。出于安全考慮,請不要使用root用戶運行Multicraft!

User not found. Create user 'minecraft' on start of installation?

用戶沒找到。在安裝開始時創(chuàng)建用戶“minecraft“嗎?回車即可。

Install Multicraft in

安裝Multicraft到哪里?默認是用戶minecraft主目錄下的multicraft文件夾,回車即可。

If you have a license key you can enter it now

如果你有一個密鑰可以現(xiàn)在輸入,默認沒有,回車即可。

If you control multiple machines from one control panel you need to assign each daemona unique ID (requires a Dynamic or custom license). Daemon ID?

如果你從一個控制面板控制多個機器你需要分配每個服務端程序一個唯一的ID(需要一個動態(tài)或自定義密鑰)。服務端程序ID?這是給服務器供應商用的,在多臺機器的時候使用,我們一般用不到,默認ID是1,回車即可。

Will the PHP frontend run on this machine?

PHP在這個機器上前端運行嗎?我們已經(jīng)安裝了PHP了,默認是是,回車即可。

User of the webserver

網(wǎng)頁服務器的用戶。默認是www-data,回車即可。

Location ofthe PHP frontend

這個其實是問安裝網(wǎng)頁的目錄,默認是/var/www/multicraft,回車即可。

Enable builtin FTP server?

啟用內(nèi)建FTP服務器嗎?默認是是,回車即可。

IP the FTP server will listen on (empty for same as daemon)

FTP服務器將監(jiān)聽的IP(留空設置和服務端程序一樣)這個一般默認是自動識別了的,請看情況自行修改,回車即可。

FTP server port

FTP服務器端口。默認是21,回車即可。

Block FTP upload of .jar files and other executables (potentially dangerous plugins)?

禁止FTP上傳.jar文件和其他可執(zhí)行文件(潛在危險插件)?這個禁用了就不能上傳插件了,輸入n回車即可。

What kind of database do you want to use?

你想使用哪種數(shù)據(jù)庫?我們安裝了mysql,輸入mysql回車即可。

Database host

數(shù)據(jù)庫主機。默認是本地,回車即可。

Database name

數(shù)據(jù)庫名稱。默認回車即可,我們會在后面創(chuàng)建。

Database user

數(shù)據(jù)庫用戶。輸入數(shù)據(jù)庫用戶名回車即可。

Database password

數(shù)據(jù)庫密碼。輸入密碼回車即可。

Ready to install Multicraft. Start installation?

準備好安裝Multicraft了。開始安裝?回車即可。

然后會顯示一個說明,回車即可,我們會在后面進行。

Save entered settings?

保存輸入的設置嗎?默認是是,回車即可。

接下來安裝中文語言包

解壓語言包,輸入命令

unzip multicraft-translation-zh.zip

復制代碼

把語言包復制過去,輸入命令

cp -r protected /var/www/multicraft

復制代碼

設置語言包的權限和擁有者,輸入命令

chmod 0755 /var/www/multicraft/protected/messages/zh

chown -R www-data.www-data /var/www/multicraft/protected/messages/zh

復制代碼

刪除解壓出來的語言包,輸入命令

rm -rf protected

復制代碼

接下來用瀏覽器打開http://域名或IP/multicraft

點擊”Start Installation“開始安裝

會看到保護目錄未進行安全設置

先修改Apache的配置文件,其他系統(tǒng)的修改方法請自行搜索,把現(xiàn)在的配置文件先備份一份,輸入命令

cp /etc/apache2/sites-available/default /etc/apache2/sites-available/default.bak

復制代碼

打開配置文件,輸入命令

nano /etc/apache2/sites-available/default

復制代碼

用方向鍵移動光標到這幾行

<Directory /var/www/>

Options Indexes FollowSymLinks MultiViews

AllowOverride None

Order allow,deny

allow from all

</Directory>

復制代碼

在Indexes前加一個“-”,這是出于安全考慮,否則任何人能夠在瀏覽器里看到網(wǎng)站目錄下的文件。然后把AllowOverride None改為AllowOverride All

修改后的文件看起來是這樣的

<Directory /var/www/>

Options -Indexes FollowSymLinks MultiViews

AllowOverride All

Order allow,deny

allow from all

</Directory>

復制代碼

保存退出后重啟Apache服務,輸入命令

service apache2 restart

復制代碼

再去刷新網(wǎng)頁,全部通過了,點擊”Continue“繼續(xù)。

這是復制配置文件的,顯示綠框可直接點擊”Continue“繼續(xù)。

現(xiàn)在為Multicraft配置數(shù)據(jù)庫

輸入命令

mysql -uroot -p

復制代碼

然后輸入MySQL的root用戶密碼并回車,進入數(shù)據(jù)庫。

然后為Multicraft創(chuàng)建數(shù)據(jù)庫,輸入以下命令

create database multicraft_panel;

create database multicraft_daemon;

exit;

復制代碼

再回到瀏覽器這邊,Database Type選擇”MySQL“,Database Host輸入MySQL數(shù)據(jù)庫的地址,默認是本地,即127.0.0.1,Database Name輸入multicraft_panel,Database Username和Database Password輸入MySQL的用戶名和密碼,然后點擊”Save and Test“。看到黃框內(nèi)最后一行文字變?yōu)镈atabase seems to be uninitialized,即可點擊”Initialize Database“

變成綠框后即可點擊”Continue“,然后又變成黃框,黃框內(nèi)最后一行文字變?yōu)镃onnection successful,即可點擊上方的”Login“

用戶名和密碼都是admin,輸入后點擊”Login“

登錄后會看到上方顯示”Logout“,中間顯示綠框,即可點擊”Continue“

同樣的,Database Type選擇MySQL,其他選項和上一步一樣,但是Database Name輸入multicraft_daemon

點擊”Continue“后來到這個頁面,在Language選擇”簡體中文“,然后點擊”Save“

然后啟動Multicraft程序,輸入命令

/home/minecraft/multicraft/bin/multicraft -v start

復制代碼

回去瀏覽器那邊可以看到有綠框出現(xiàn),點擊”Refresh“

然后網(wǎng)頁會刷新一次,”Refresh“按鈕會變成”Continue“

點擊后跳轉(zhuǎn)到這個網(wǎng)頁,點擊”Continue to Multicraft“

然后去刪除安裝網(wǎng)頁,輸入命令

rm /var/www/multicraft/install.php

復制代碼

接下來設置Multicraft開機自啟動,其他系統(tǒng)的修改方法請自行搜索,輸入命令

nano /etc/rc.local

復制代碼

在exit 0前新開一行寫入以下內(nèi)容并保存退出

/home/minecraft/multicraft/bin/multicraft -v start

復制代碼


玩家評論
我要點評

網(wǎng)名 注:您的評論需要經(jīng)過審核才會顯示出來。

已有 1 位玩家參與點評
下載排行