1、下载博客模板
2、安装数据库mysql
3、导入数据 data/Dump20190828.sql
4、修改配置文件
server.cfg
ip="127.0.0.1"
port=i0
lua="main.lua"
https=1
httpip="你的IP"
httpport=i443
timer=5
core/coreexdata.lua
DB_IP = '127.0.0.1'
DB_ACCOUNT='root' --数据库账号
DB_PWD='123456' --数据库密码
DB_NAME = "blogs"
LOG_PRINT=true
5、运行 bin/gameserver.exe
如果遇到dll找不到问题,请自行安装vc_redist.x86版本
6、浏览器输入
https://你的ip
7、如果提示不是安全链接,可修改server.cfg中https采用http模式或者点击继续
8、参照已有接口,增加网页接口。
修改logic.lua文件,添加接口,如下
--编辑
local function http_html_edit(req)
print('http_html_edit')
if not is_logined(req) then
return http_redirect(req, &#