安装宝塔
-------------------------------------------------------------------------------
Nginx-1.16
MySQL5.7 插入 lower_case_table_names=1 保存重启数据库
PHP5.6
-------------------------------------------------------------------------------
xyh5.zip到主目录/
设置777权限并且解压
-------------------------------------------------------------------------------
宝塔 - 网站 - 添加站点 输入IP 根目录/www/127.0.0.1
宝塔 - 数据库 - root密码 输入 123456 提交
-------------------------------------------------------------------------------
mysql -u root -p123456
-------------------------------------------------------------------------------
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;
quit
-------------------------------------------------------------------------------
systemctl stop firewalld.service
systemctl disable firewalld.service
-------------------------------------------------------------------------------
data\server\gameserver\config.xml
修改第20行【为网卡IP,并非服务器IP】
ifconfig【查看网卡IP】
-------------------------------------------------------------------------------
index.min.html
preload.js
serverlist.json
-------------------------------------------------------------------------------
cd /data/server/sql/
mysql -uroot -p123456
source /data/server/sql/mhxyall.sql
-------------------------------------------------------------------------------
tar -zxvf lua-5.1.5.tar.gz
cd lua-5.1.5
sed -i 's#^CFLAGS=.*#CFLAGS= -O2 -fPIC -Wall $(MYCFLAGS)#gi' ./src/Makefile
#这里如果报错,检测依赖有没有装好#
make linux test && make install
whereis lua
lua -v
cd ..
tar -xzvf luarocks-2.2.2.tar.gz
cd luarocks-2.2.2
./configure; sudo make bootstrap
make build && make install
PATH=$PATHHOME/bin:/usr/local/luarocks-2.2.2/bin:/usr/local/lua-5.1.5/bin export PATH
export LUA_PATH="/usr/local/luarocks-2.2.2/share/lua/5.1/?.lua;?.lua;;"
export LUA_CPATH="/usr/local/luarocks-2.2.2/lib/lua/5.1/?.so;?.so;;"
luarocks install luasocket
luarocks install luasql-mysql MYSQL_INCDIR=/www/server/mysql/include MYSQL_LIBDIR=/www/server/mysql/lib/
-------------------------------------------------------------------------------
chmod -R 777 /data
-------------------------------------------------------------------------------
cd /data/server
./start.sh
-------------------------------------------------------------------------------
netstat -ltnp
-------------------------------------------------------------------------------
http://服务器IP/
-------------------------------------------------------------------------------
http://服务器IP/gm/gm.php
admin
123456
-------------------------------------------------------------------------------