棋牌搭建,APP新手教程
今天分享一下,APP搭建新手教程。让新手少走弯路。老司机勿喷! 今天我教大家搭建一款颂游金币房卡游戏的搭建 

颂游搭建教程
新建系统Ubuntu 执行su -root 进入root模式 重启服务器shutdown -r now 解压tar -zxvf lnmp1.5.tar.gz
安装cd lnmp1.5
./install.sh 安装lnmp
wget http://soft.vpser.net/lnmp/lnmp1.5.tar.gz -co lnmp1.5.tar.gz && tar zxf lnmp1.5.tar.gz && cd lnmp1.5 && ./install.sh lnmp 安装redis
wget http://download.redis.io/releases/redis-4.0.8.tar.gz tar xzf redis-4.0.8.tar.gz cd redis-4.0.8 make 下载REDIS扩展
wget https://github.com/phpredis/phpredis/archive/2.2.8.tar.gz 解压
tar xzf 2.2.8.tar.gz
cd phpredis-2.2.8
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config make make install 打开vi /usr/local/php/etc/php.ini 增加extension=redis.so 重启lnmp
lnmp restart mysql数据库远程连接
mysql -u root -p 输入密码wocaonima123. 输入 GRANT ALL PRIVILEGES ON . TO’root’@’%’ IDENTIFIED BY ‘wocaonima123.’ WITH GRANT OPTION; 输入exit 退出 清除iptables规则
iptables -F
iptables -X
iptables -Z 重启lnmp
lnmp restart 修改MYSQL端口、
编辑vi /etc/my.cnf文件两处端口 设置网站伪静态
vi /usr/local/nginx/conf/nginx.conf location /qp_host/ {
if (!-e KaTeX parse error: Expected ‘}’, got ‘EOF’ at end of input: … ^/qp_host/(.*) /qp_host/index.php?s=$1 last;
}
}
} location /qp_ht/ {
if (!-e KaTeX parse error: Expected '}', got 'EOF' at end of input: …te ^/qp_ht/(.*) /qp_ht/index.php?s=$1 last;
}
1
2
3
4
}location /qp_down/ {
if (!-e KaTeX parse error: Expected ‘}’, got ‘EOF’ at end of input: … ^/qp_down/(.*) /qp_down/index.php?s=$1 last;
}
} 启动Redis
src/redis-server
|