【千鋒云計(jì)算公開課】游戲類站點(diǎn)部署:玩轉(zhuǎn)qq農(nóng)場(chǎng)

QQ農(nóng)場(chǎng)是一款以種植為主的社交游戲。QQ用戶就是農(nóng)場(chǎng)的農(nóng)場(chǎng)主,在自己的農(nóng)場(chǎng)里種植蔬菜和水果,主要部署LAMP,L是指linux,A是指apache,M是指MYSQL,p是指PHP環(huán)境。一.部署LAMP環(huán)境
[root@localhost ]# yum install -y epel-release wget vim bash-completion lrzsz unzip httpd mariadb-server mariadb php php-fpm php-curl php-intl php-mcrypt php-mysql php-mbstring php-xml php-dom php-gd gd??
二、啟動(dòng)服務(wù)及開機(jī)啟動(dòng)
[root@localhost ~]#systemctl start httpd mariadb php-fpm?
[root@localhost ~]#systemctl enable httpd mariadb php-fpm
三.創(chuàng)建數(shù)據(jù)庫(kù)farm配置
[root@localhost]?#mysql -u root -e 'create database farm;'
四.php配置
[root@localhost~]#vim /etc/php.ini
將short_open_tag = Off改為On
五.重啟服務(wù)
[root@localhost ~]#systemctl restart httpd mariadb php-fpm
六、產(chǎn)品上線
[root@localhost ~]#rz????#上傳包
root@localhost ~]# unzip farm-ucenter1.5.zip???#解壓包[root@localhost~]# cp -rf upload/*/var/www/html
root@localhost ~]# chown -R apache.apache /var/www/html #授權(quán)
[root@localhost ~]# mysql -u root farm < ./upload/qqfarm. sql #導(dǎo)入測(cè)試數(shù)據(jù)
七、用戶前臺(tái)訪問(wèn)服務(wù)器IP地址,進(jìn)行前臺(tái)安裝。
數(shù)據(jù)庫(kù)名: farm
數(shù)據(jù)庫(kù)用戶名: root
數(shù)據(jù)庫(kù)密碼:空
創(chuàng)始人密碼: admin
管理員密碼: admin
UCenter Home的訪問(wèn)網(wǎng)址:http://140.143.12.34/home
管理員訪問(wèn)網(wǎng)址:
http://140.143.12.34/home/admincp.?
php管理員帳號(hào): admin
管理員密碼: admin