三国我为王Linux架设教程

阿里技术整理

linux6.0 32

yum install -y gcc
yum install -y vim
yum install -y e2fsprogs-devel
yum install -y uuid-devel
yum install -y libuuid-devel
yum install -y bison bison-devel
yum install -y psmisc
yum install -y unzip zip

安装宝塔

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

Nginx1.12  php5.6  mysql5.2

service iptables stop
chkconfig iptables off

设置宝塔端口为:9999

mysql设置数据库密码为:12345

mysql -uroot -p12345
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '12345' WITH GRANT OPTION;
FLUSH   PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO root@'127.0.0.1' IDENTIFIED BY '12345' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'sants.cn' WITH GRANT OPTION;
flush privileges;
quit

上传home.targz到根目录
cd /
tar -zxvf home.tar.gz
chmod -R 777 /home

安装openssl
cd /home/soft/
tar -zxvf openssl-1.0.0.tar.gz && cd openssl-1.0.0
./config --prefix=/usr/local --openssldir=/usr/local/ssl && make clean && make && make install
./config --prefix=/usr/local --openssldir=/usr/local/ssl shared && make clean && make && make install

database.dat替换到 
/home/uzone/25pp_sgwww_s1/game_os

然后xshell输入

cd /home/soft/ && tar -zxvf mysql-5.5.62-linux-glibc2.12-i686.tar.gz

mv -f mysql-5.5.62-linux-glibc2.12-i686 /home/local/mysql5.5.62

ln -s /home/local/mysql5.5.62/lib/libmysqlclient.so.18   /usr/lib/

n11 连接数据库  密码sants.cn
新建sgwww_s1  字符集utf8 -- UTF-8 Unicode   排序规则utf8_general_ci

导入  sgwww_s1.sql 文件

创建网站 端口80   上传www.zip到 网站目录下解压

chmod -R 777 /www/wwwroot/

初次运行服务器运行下 只运行一次
/home/uzone/25pp_sgwww_c1/config.sh
/home/uzone/25pp_sgwww_s1/config.sh


启动
中心服务器操作
/home/uzone/25pp_sgwww_c1/gamectrl.sh start
 
游戏1服操作
启动
/home/uzone/25pp_sgwww_s1/gamectrl.sh start
-----------------------------------------------------------------------------------------------------------------------------------------------------


停止
/home/uzone/25pp_sgwww_c1/gamectrl.sh stop
重启
/home/uzone/25pp_sgwww_c1/gamectrl.sh restart

停止
/home/uzone/25pp_sgwww_s1/gamectrl.sh stop
重启
/home/uzone/25pp_sgwww_s1/gamectrl.sh restart

-----------------------------------------------------------------------------------------------------------------------------------------------------

上线奖励
\home\uzone\25pp_sgwww_s1\game_os\BIN\config\sanguo_txt\Offline_compensation_Late_register.txt
-----------------------------------------------------------------------------------------------------------------------------------------------------

客户端修改
assets/ config.dat    对位数
assets/ script.pak  打开压缩包  拖进压缩包里面 把  ServerConfig.lua  拖出来修改 压缩包密码yize.xyz  修改完以后  拖回压缩包 设置密码 yize.xyz

(压缩包密码yize.xyz打开ServerConfig.lua修改完以后要重新加密一下)
温馨提示:本文最后更新于2022-06-20 19:28:36,某些文章具有时效性,若有错误或已失效,请在下方留言或联系一泽站长
© 版权声明
THE END
喜欢就支持一下吧
点赞91 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

图形验证码
取消
昵称表情代码图片