系统:Centos 7.*
配置2核 4G
-------------------------------------------------------------------------------
安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
安装
nginx-1.15
mysql-5.6 23行回车插入lower_case_table_names=1 保存重启mysql服务
php5.6
-------------------------------------------------------------------------------
安装环境
yum install samba
yum install openssl* -y
yum install compat-openldap
-------------------------------------------------------------------------------
home.zip上传到/ 【宝塔上传】
设置777权限,并且解压
-------------------------------------------------------------------------------
修改文件IP
home\workplace\config\appconfig.xml
home\workplace\project201501\config\appconfig.xml
home\workplace\project201501\etc\appconfig.xml
修改【内网IP】
怎么看内网IP 命令输入
ifconfig 【内网IP】
chmod -R 777 /home
-------------------------------------------------------------------------------
宝塔 - 数据库 - root密码 输入 123456 提交
宝塔 - 网站 - 添加站点 输入IP 根目录/www/wwwroot/
宝塔 - 网站 - 点击IP 绑定域名
宝塔 - 安全 - 放行端口 - 添加3306
mysql -u root -p
隐藏输入 123456 回车
创建数据库
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit
导入数据库
gamedb_yh
修改zone_info表 顺序增加
1 6 外网IP ra0n4D3hkVsyl6S5 20151
-------------------------------------------------------------------------------
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
-------------------------------------------------------------------------------
启动游戏
cd /home/workplace/project201501/bin
./restart.sh
cd /home/workplace/project201501/bin
./WebServer/WebServer
-------------------------------------------------------------------------------
netstat -ntlp查看进程
-------------------------------------------------------------------------------
wwwroot
修改里面外网IP【注意网站端口】
上传宝塔网站目录
-------------------------------------------------------------------------------