【悟空资源网】

 找回密码
 注册

QQ登录

剑侠超简单架设教程

[复制链接]
发表于 2020-7-23 08:58:25 | 显示全部楼层 |阅读模式

安装CENTOS 7//临时关闭
systemctl stop firewalld
//禁止开机启动
systemctl disable firewalld

安装mysql
rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum repolist enabled | grep "mysql.*-community.*"
yum -y install mysql-community-server -y

配置开机启动
systemctl enable mysqld

启动mysql服务进程
systemctl start mysqld

配置mysql(设置密码等,一直按回来,出现new passwd的时候就是输入mysql密码,输密码的时候是不会显示出来的。要输两次。输一次之后回车,再输一次,
端里默认和教程里是1q2w3e4r5t密码,自行修改)
mysql_secure_installation

进入mysql,会提示你输入密码。1q2w3e4r5t
mysql -uroot -p
use mysql;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '1q2w3e4r5t' WITH GRANT OPTION;
flush privileges;
quit

systemctl restart mysqld  重启


使用WinSCP软件/etc/my.cnf
在[mysqld]下面加入
max_allowed_packet=100G

systemctl restart mysqld  重启

安装gcc
yum install gcc -y
yum install gcc-c++ -y
yum install glibc* -y

使用WinSCP软件把libstdc++.so.6.0.20拷到/usr/lib64下

输入
cd /usr/lib64
rm -rf libstdc++.so.6
ln -s libstdc++.so.6.0.20 libstdc++.so.6
ldconfig

使用WinSCP软件jxqy.tar.gz上传到/root目录里,解压服务端
tar zxvf jxqy.tar.gz

给服务端目录权限
chmod -R 777 /root

使用WinSCP软件修改
修改FileServer.ini里面的MYSQL密码
修改gateway.ini里面的IP和MYSQL密码
修改world_server.ini里面的IP和MYSQL密码
192.168.50.103 为你外网IP,只需要修改这个IP,别的不需要
修改FileServer.ini文件的MYSQL密码
修改GoJxHttpSetting
go-jxhttp.json
go-jxhttp_idip.json
MYSQL密码


启动游戏
cd /root/jxqy
./start.sh

关闭游戏
./stop.sh
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|【悟空资源网】 ( 桂ICP备2022002215号-1 )

GMT+8, 2024-4-20 05:25 , Processed in 0.058561 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2012 Comsenz Inc. Template by A3cn

返回顶部