【梦诛天域手游服务端】2020.07全新12岗位1H1G可打游戏手工制作搭建手机客户端[附安装教程] 梦幻诛仙丹青最新手工一键端 服务器要求: Cpu:4核心 内存:4GB 系统:linux6.5x64 环境:宝塔 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 关闭防火墙 chkconfig iptables off service iptables stop 安装宝塔命令 安装宝塔环境 最好编译安装 nginx-1.14 mysql-5.5 redis5 php5.3 找到禁用函数,删除exec,安装redis扩展,然后重载配置,重启php Linux工具箱 调整虚拟内存6-8G ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 上传文件sants.cn.zip到服务器根目录用宝塔解压 敲命令 用finalshell连接 cd /root chmod +x jdk-6u45-linux-x64-rpm.bin ./jdk-6u45-linux-x64-rpm.bin
cd /root tar -xzvf jre-8u181-linux-x64.tar.gz rm -rf jre-8u181-linux-x64.tar.gz ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 宝塔创建新站点端口:81 点击左侧数据库root密码:123456 新增三个数据库mhzx_4095, houtai 导入sql文件 对应名字哦 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 敲命令 (开远程连接数据库) mysql -u root –p123456 GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY 'qq123456' WITH GRANT OPTION; FLUSH PRIVILEGES; GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'qq123456' WITH GRANT OPTION; FLUSH PRIVILEGES; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'qq123456' WITH GRANT OPTION; FLUSH PRIVILEGES; quit ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 修改文件/etc/profile 把下面五行复制到文件最后面保存 JAVA_HOME=/usr/java/jdk1.6.0_45 JRE_HOME=/usr/java/jdk1.6.0_45/jre PATH=$PATHJAVA_HOME/binJRE_HOME/bin CLASSPATH=JAVA_HOME/lib/dt.jarJAVA_HOME/lib/tools.jarJRE_HOME/lib export JAVA_HOME JRE_HOME PATH CLASSPATH ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ mhzx/zdir/android/meta 目录下的文件 servers.xml 修改第16 17行的服务器名称 和IP地址 version.xml 选中第47行的IP地址 全部替换你的IP mhzx/zdir/ios/meta 目录下的文件 servers.xml 修改第16 17行的服务器名称 和IP地址 version.xml 选中第47行的IP地址 全部替换你的IP ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 客户端修改 安卓客户端 改之理解包修改服务器连接IP 路径 apkide\Work\com.efun.twzx\assets\config\all_platform_config.xml里面全部IP修改为你的域名或者IP
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 开放端口 找到宝塔左边的安全设置 添加30001端口 添加18598端口 添加81端口 添加3306端口 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 给予777权限 chmod -R 777 /mhzx chmod -R 777 /root chmod -R 777 /www chmod -R 777 /bin 启动 使用快捷指令 mz 即可
|