CentOS 7 安装 Yearning

1、下载 Yearning 包
wget https://github.com/cookieY/Yearning/releases/download/2.3.5/Yearning-2.3.5-linux-amd64.zip
2、安装 Yearning
mv Yearning-2.3.5-linux-amd64.zip /data/tool/yearning
unzip Yearning-2.3.5-linux-amd64.zip
3、填写配置文件
cd /data/tool/yearningYearning-go

cat conf.toml
[Mysql]
Db = "Yearning"
Host = "127.0.0.1"
Port = "3306"
Password = "xxxx"
User = "root"

[General]   #数据库加解密key,只可更改一次。
SecretKey = "dbcjqheupqjsuwsm"
4、初始化及安装
./Yearning install

如要再次安装,请先把 yearning 库下所有表删除,否则重复执行无效
5、启动服务
# 默认启动
./Yearning run

# 参数启动
./Yearning run --push "127.0.0.1" -port "8000"
./Yearning run -s -b "127.0.0.1" -port "8000"
打开浏览器 http://127.0.0.1:8000

# 默认账号/密码
admin/Yearning_admin
posted @   Rocky_940120  阅读(290)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示