Git Product home page Git Product logo

Comments (7)

lisijie avatar lisijie commented on August 13, 2024

可能是你的配置信息有误,检查下 conf/app.conf 的配置,直接使用 ./gopub 启动看看报什么错误。

from gopub.

timosir avatar timosir commented on August 13, 2024

[root@muji gopub-v2.0.0]# cat conf/app.conf
appname = gopub
httpport = 8000
runmode = dev

数据库配置

db.host = 127.0.0.1
db.user = root
db.password = "123456" ------------------我自己修改了
db.port = 3306
db.name = gopub
db.prefix = "t_"
db.timezone = "Asia/Shanghai"

邮件服务器配置

mail.from = [email protected]
mail.host = smtp.example.com
mail.port = 25
mail.user = username
mail.password = your password

数据目录设置

data_dir = /data/golang/src/gopub/data

日志文件

log_file = logs/error.log

[root@muji gopub-v2.0.0]# ./gopub
-bash: ./gopub: Permission denied

from gopub.

lisijie avatar lisijie commented on August 13, 2024

看下 gopub 是不是缺少可执行权限,chmod +x ./gopub 加上执行权限再运行。

from gopub.

timosir avatar timosir commented on August 13, 2024

现在可以启动了,默认登录账号和密码是多少 ?
建议:
1,gopub 默认没有执行权限,按理说go build gopub 后生成的gopub会有执行权限,希望在README.md说明
2,说明conf/app.conf 需要根据自己的配置更改相应信息

from gopub.

lisijie avatar lisijie commented on August 13, 2024

帐号:admin 密码:admin888

from gopub.

timosir avatar timosir commented on August 13, 2024

恩 ,谢谢,我刚才自己MD5反解密找到密码了、 麻烦再README 添加说明哦、

from gopub.

lisijie avatar lisijie commented on August 13, 2024

嗯嗯,已经加了说明

from gopub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.