【三国策略空袭霸业内购版】站长推荐经典稀有三国策略国战手游-2023年10月25日最新打包Linux服务端源码视频架设教程-安卓版本!
【三国策略空袭霸业内购版】站长推荐经典稀有三国策略国战手游-2023年10月25日最新打包Linux服务端源码视频架设教程-安卓版本!

































测试系统 CentOS 7.6
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service上传服务端kxby.tar.gz到服务器根目录
解压
cd /
tar xvzf kxby.tar.gz给权限
chmod -R 777 /root
安装环境
yum install java-1.8.0-openjdk* -y
cd /root
tar zxvf glog-0.3.3.tar.gz && cd glog-0.3.3 && ./configure && makecd /root
tar zxvf protobuf-all-3.11.0.tar.gzcd /root/protobuf-3.11.0
./autogen.sh./configure
make && make install
cd /root
tar zxvf CRYPTOPP_8_0_0.tar.gzcd /root/cryptopp-CRYPTOPP_8_0_0
make
make libcryptopp.so
make test && make install
添加软链
ln -s /usr/local/lib/libglog.so.0 /usr/lib64/libglog.so.0
ln -s /usr/local/lib/libprotobuf.so.22 /usr/lib64/libprotobuf.so.22
ln -s /usr/local/lib/libcryptopp.so.8 /usr/lib64/libcryptopp.so.8把libstdc++.so.6.0.26拷贝到/usr/lib64目录下。
cd /root
cp libstdc++.so.6.0.26 /usr/lib64/删除原来的libstdc++.so.6符号连接。
cd /usr/lib64
mv libstdc++.so.6 libstdc++.so.6.bak新建新符号连接。
ln -s libstdc++.so.6.0.26 libstdc++.so.6
cd /root
tar zxvf glog-0.3.3.tar.gzcd /root/glog-0.3.3
./configuremake -j 24
sudo make install
安装数据库
cd /root/mysql5.7.33
tar xvf mysql-5.7.33-1.el7.x86_64.rpm-bundle.tar卸载掉centos7自带的mariadb-lib
查询rpm -qa|grep mariadb
卸载
rpm -e mariadb-libs-5.5.68-1.el7.x86_64 --nodeps
安装mysql
rpm -ivh mysql-community-client-5.7.33-1.el7.x86_64.rpm --nodeps --force
rpm -ivh mysql-community-common-5.7.33-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.33-1.el7.x86_64.rpm
yum install numactl
rpm -ivh mysql-community-server-5.7.33-1.el7.x86_64.rpm
初始化数据库 #初始化后会在/var/log/mysqld.log生成随机密码
mysqld --initialize
修改mysql数据库目录的所属用户及其所属组,然后启动mysql数据库
chown mysql:mysql /var/lib/mysql -R
systemctl start mysqld.service
systemctl status mysqld.service
查看数据库密码
grep "password" /var/log/mysqld.log
修改数据库密码 #如果生成数据库密码带有!符号 用此命令 mysql -u root -p'你的数据库密码'
mysql -u root -p你的密码
set password=password('123456');
quit
修改服务端文件IP
/root/sql/yycd_0001.sql
/root/server/gamed/bin/server.conf
导入数据库
cd /root
./sk安装
yum install screen -y
启动游戏
screen
cd /root/server
nohup ./central/bin/centraldscreen
cd /root/server
nohup ./gamed/bin/gameddscreen
cd /root/server/battle
./start.sh客户端修改:
\assets\textasset.uab
------------------------------------------------------------------------------------
本期教程到此结束。