【剑侠情缘网络版叁80大轻功完整版】站长推荐经典武侠3DMMORPG角色扮演类剧情端游-2024年5月20日最新打包Linux服务端源码视频架设教程-完整PC客户端!
上面视频教程链接如果失效,请在源码包内观看超清视频教程!
上面视频教程链接如果失效,请在源码包内观看超清视频教程!
上面视频教程链接如果失效,请在源码包内观看超清视频教程!
这里我们以:CentOS 7.6 x64为例
游戏IP:123.207.42.5
安装宝塔:yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
输入y回车确认安装
安装环境
Nginx1.18
PHP-5.6宝塔放行端口:1-65535
上传服务端jjjx3.tar 到服务器根目录
解压:
cd /
tar -xvf jjjx3.tar给文件777权限并移动lib:
chmod 777 -R /root
cp -Rf /root/libEngine_Lua5.so /usr/lib
cp -Rf /root/libEngine_Lua5D.so /usr/lib
cp -Rf /root/libSO3EnumConvertor.so /usr/lib
cp -Rf /root/libSO3EnumConvertorD.so /usr/lib
cp -Rf /root/libSO3ItemHouse.so /usr/lib
cp -Rf /root/libSO3ItemHouseD.so /usr/lib
chmod 777 -R /usr/lib环境配置:
yum install openssl098e.i686 -y
yum install openssl098e -y
yum install libstdc++.i686 -y
yum install libuuid.i686 -y
安装mysql:
rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum -y install mysql-community-server
关闭mysql:
systemctl stop mysqld.service
MYSQL配置:
打开文件/etc/my.cnf,在[mysqld]下面,加入下面两行
max_allowed_packet = 20M
lower_case_table_names=1保存启动mysql:
systemctl restart mysqld.service
设置mysql密码:
mysql
use mysql;
UPDATE user SET password=PASSWORD(‘123456′) WHERE user=’root’;
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’;
quit安装中文语言包:
yum -y install kde-l10n-Chinese
安装glibc-common:
yum -y reinstall glibc-common
设置字符集为中文:
打开/etc/locale.conf
把里面的 LANG=en_US.UTF-8 改成 LANG=zh_CN.gbk然后输入:
source /etc/locale.conf
export LANG=zh_CN.gbk查看字符集:
locale
此时为中文zh_CN.gbk
修改服务端文件IP:替换:192.168.200.105
/root/gateway.ini
/root/gs_settings.ini
/root/relay_settings.ini
创建虚拟网卡并映射端口
把命令里的49.235.188.189改成你服务器的公网IP
ifconfig eth0:0 49.235.188.189 netmask 255.255.255.0
echo “nameserver 114.114.114.114” >> /etc/resolv.conf
继续输入如下命令,把IP改成你服务器公网的
firewall-cmd –permanent –add-masquerade
firewall-cmd –permanent –add-forward-port=port=3113:proto=tcp:toaddr=49.235.188.189:toport=3113
firewall-cmd –permanent –add-forward-port=port=5004:proto=tcp:toaddr=49.235.188.189:toport=5004
firewall-cmd –permanent –add-forward-port=port=9001:proto=tcp:toaddr=49.235.188.189:toport=9001
firewall-cmd –reload这堆命令重启服务器不会失效,如果失效,检查宝塔防火墙的开关。宝塔防火墙要开启状态
启动服务端:
cd /root
./1.shcd /root
./3.shcd /root
./2.sh查询端口:
netstat -lntp
监听侧有5004和3113
客户端修改:
\JX3\bin\zhcn\mod\svrlist.ini
启动游戏:
\JX3\bin\zhcn\JX3Client.exe
直接输入账号和密码就可以登录。
暂无评论内容