---Install MySQL

yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm

yum install mysql-community-server

systemctl enable mysqld

systemctl start mysqld

systemctl status mysqld

-Get MySQL temporary password:

grep 'temporary password' /var/log/mysqld.log  


---Install Apache

yum install httpd

systemctl enable httpd.service

systemctl start httpd.service


---Install PHP and PHP extensions

yum install php

yum install php-mysql php-gd php-ldap php-odbc php-pear php-common php-mbstring php-xml php-xmlrpc php-bcmath php-pdo php-bcmath

systemctl restart httpd.service

yum -y install wget tar zip curl java-1.8.0-openjdk


---Install phpMyAdmin 

yum install -y epel-release

yum –y update

yum -y install phpmyadmin

vim /etc/httpd/conf.d/phpMyAdmin.conf 

<IfModule !mod_authz_core.c>
# Apache 2.4
  Order Deny,Allow
  Deny from All
  Allow from 127.0.0.1
  Allow from ::1
</IfModule>

systemctl restart httpd.service


---Create two database:

multicraft_panel

multicraft_daemon


---vim /etc/httpd/conf/httpd.conf

AllowOverride None

systemctl restart httpd.service


---Install Multicraft

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

tar xvzf multicraft.tar.gz

cd multicraft

./setup.sh      


Run each Minecraft server under its own user? (Multicraft will create system users): [y]/n

Run Multicraft under this user: [minecraft]

User not found. Create user 'minecraft' on start of installation? [y]/n

Install Multicraft in: [/home/minecraft/multicraft]

If you have a license key you can enter it now: [no]

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

Will the PHP frontend run on this machine? [y]/n

User of the webserver: [apache]

Location of the PHP frontend: [/var/www/html/multicraft]

Enable builtin FTP server? [y]/n

IP the FTP server will listen on (empty for same as daemon): [192.0.2.123] FTP server port: [21]

Block FTP upload of .jar files and other executables (potentially dangerous plugins)? [y]/n 

What kind of database do you want to use? [sqlite]/mysql

Ready to install Multicraft. Start installation? [y]/n

Save entered settings? ([y]/n)



---start the Multicraft control daemon by returning to the command line and running:

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


签名:这个人很懒,什么也没有留下!
最新回复 (0)
返回