|
发表于 2023-2-16 02:11:02
|
显示全部楼层
【少年三国志外网Centos7.3图文教程】
好久没有回宝湾了昨天回来一看好多私信……
一般是不回复的过期的也懒得去补了时代在变人也在变要变化
切入正题 首先去百度买一个云服务器
等待安装完成
然后百度下载工具:Xshell 5、WinSCP 这两个工具
按照上图登录Linux【要到你的网站后台去看地址】
登录成功以后开始把如下命令跑一遍 [创建搭建环境]
一行一复制【注意有些不能复制,有些是解释】
yum update -y
yum -y install gcc gcc- c gcc*
cd /etc/selinux/
yum install vim
提示 y
yum groupinstall "Development Libraies"
yum groupinstall "Development Tools"
yum install httpd httpd-devel mysql mariadb-server mariadb-devel php php-devel phpmyadmin redis redis-devel -y
yum install php-redis
cd
yum install -y wget
wget http://dl.fedoraproject.org/pub/ ... latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
yum repolist
yum install php-redis
wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip 这里有些云机下载不动,可以自行IE下载然后winscp导入root 然后直接下一步
yum install -y unzip zip
unzip ssdb-master.zip
cd ssdb-master/
make
这里注意看有没有报错
make install
vim ~/.bash_profile
改成如下格式:
PATH=$PATH HOME/bin
PATH=/root/ssdb-master PATH
export PATH
echo >/var/log/wtmp;echo >/var/log/btmp;history -c;
改完后直接ESC输入 :wq
source ~/.bash_profile
cd /home/
home.zip放到home文件夹 【这里用WinSCP上传】
具体方法如下
unzip home.zip
rm -rf home.zip
cd /var/lib/
rm -rf mysql
mysql.tgz到/var/lib/文件夹 注意格式 有些服务端格式不一样 命令也不一样
tar zvxf mysql.tgz
service mariadb start
mysql -uroot -p553322
exit
cd /var/www/
rm -rf html
html.tgz到/var/www/文件夹 注意格式 有些服务端格式不一样 命令也不一样
tar zvxf html.tgz
cd /etc/
rm -rf httpd
httpd.tgz到/etc/文件夹 注意格式 有些服务端格式不一样 命令也不一样
tar zvxf httpd.tgz
cd httpd/
service httpd start
systemctl stop firewalld.service
systemctl disable firewalld.service
yum install iptables-services
netstat -naigrep LISTEAN
netstat -naigrep LISTEN
cd
chmod -R 777 /home/
cd /home/
yum install psmisc
yum install redis
cd /var/www/html
vim /etc/hosts
127.0.0.1 localhost localhost.localdomain VM_96_210_centos gw 无论什么后面加 空格gw
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
service network start
修改/var/www/目录下的serverlist文件
分区名 新开分区网址 游戏地址换成你的服务器IP 游戏端口
{"data":[{"id":101,"name":"幻影一区","login":"127.0.0.1","status":1,"gateway":"外网IP 局域网IP","port":8118}]}
多区列表
{"data":[{"id":101,"name":"一区","login":"127.0.0.1","status":1,"gateway":"外网IP","port":8118},
{"id":101,"name":"二区","login":"127.0.0.1","status":2,"gateway":"外网IP","port":端口},
{"id":101,"name":"待开","login":"127.0.0.1","status":2,"gateway":"外网IP","port":端口}]}
status":1, 1代表正常 2代表新区 3代表 热(好像是 忘了)
启动游戏
service httpd start
service mariadb start
/home/start.sh
关闭游戏
/home/stop.sh
需要的源码文件:http://pan.baidu.com/s/1o7CqJpC
不懂加群:455824476
好久没有回宝湾了昨天回来一看好多私信……
一般是不回复的过期的也懒得去补了时代在变人也在变要变化
好久没有回宝湾了昨天回来一看好多私信……
一般是不回复的过期的也懒得去补了时代在变人也在变要变化
切入正题 首先去百度买一个云服务器
切入正题 首先去百度买一个云服务器
yum -y install gcc gcc- c gcc*
cd /etc/selinux/
yum install vim
提示 y
yum groupinstall "Development Libraies"
yum groupinstall "Development Tools"
yum install httpd httpd-devel mysql mariadb-server mariadb-devel php php-devel phpmyadmin redis redis-devel -y
yum install php-redis
cd
yum install -y wget
wget http://dl.fedoraproject.org/pub/ ... latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
yum repolist
yum install php-redis
wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip 这里有些云机下载不动,可以自行IE下载然后winscp导入root 然后直接下一步
yum install -y unzip zip
unzip ssdb-master.zip
cd ssdb-master/
make
这里注意看有没有报错
make install
vim ~/.bash_profile
改成如下格式:
PATH=$PATH HOME/bin
PATH=/root/ssdb-master PATH
export PATH
echo >/var/log/wtmp;echo >/var/log/btmp;history -c;
改完后直接ESC输入 :wq
source ~/.bash_profile
cd /home/
home.zip放到home文件夹 【这里用WinSCP上传】
具体方法如下
unzip home.zip
rm -rf home.zip
cd /var/lib/
rm -rf mysql
mysql.tgz到/var/lib/文件夹 注意格式 有些服务端格式不一样 命令也不一样
tar zvxf mysql.tgz
service mariadb start
mysql -uroot -p553322
exit
cd /var/www/
rm -rf html
html.tgz到/var/www/文件夹 注意格式 有些服务端格式不一样 命令也不一样
tar zvxf html.tgz
cd /etc/
rm -rf httpd
httpd.tgz到/etc/文件夹 注意格式 有些服务端格式不一样 命令也不一样
tar zvxf httpd.tgz
cd httpd/
service httpd start
systemctl stop firewalld.service
systemctl disable firewalld.service
yum install iptables-services
netstat -naigrep LISTEAN
netstat -naigrep LISTEN
cd
chmod -R 777 /home/
cd /home/
yum install psmisc
yum install redis
cd /var/www/html
vim /etc/hosts
127.0.0.1 localhost localhost.localdomain VM_96_210_centos gw 无论什么后面加 空格gw
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
service network start
修改/var/www/目录下的serverlist文件
分区名 新开分区网址 游戏地址换成你的服务器IP 游戏端口
{"data":[{"id":101,"name":"幻影一区","login":"127.0.0.1","status":1,"gateway":"外网IP 局域网IP","port":8118}]}
多区列表
{"data":[{"id":101,"name":"一区","login":"127.0.0.1","status":1,"gateway":"外网IP","port":8118},
{"id":101,"name":"二区","login":"127.0.0.1","status":2,"gateway":"外网IP","port":端口},
{"id":101,"name":"待开","login":"127.0.0.1","status":2,"gateway":"外网IP","port":端口}]}
status":1, 1代表正常 2代表新区 3代表 热(好像是 忘了)
启动游戏
service httpd start
service mariadb start
/home/start.sh
关闭游戏
/home/stop.sh
需要的源码文件:http://pan.baidu.com/s/1o7CqJpC
不懂加群:455824476
home.zip放到home文件夹
【这里用
WinSCP上传
】 |
|