3DMMORPG端游【剑侠情缘网络版叁80大轻功完整版】
安装宝塔:
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.zip到服务器根目录
解压:
cd /
unzip -o jjjx3.zip
sleep 1
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,在下面,加入下面两行
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.sh
cd /root
./3.sh
cd /root
./2.sh
查询端口:
netstat -lntp
监听侧有5004和3113
客户端修改:
\JX3\bin\zhcn\mod\svrlist.ini
启动游戏:
\JX3\bin\zhcn\JX3Client.exe
直接输入账号和密码就可以登录。
**** Hidden Message *****
在奇迹45网看到这么优秀的帖子,强烈支持楼主ing…… 好东西,学习学习! 收藏了,以后可能会用到! 经典! 很给力! 学习雷锋,好好回帖! 每天顶顶贴,一身轻松啊! 大神就是大神,这么经典! 谢谢楼主的分享!
页: [1]2