Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/igo9go/beego-blog

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/igo9go/beego-blog

  • v0.0.0-20161215075101-67495ce9df7a
  • Source
  • Go
  • Socket score

Version published
Created
Source

#beego-blog

使用beego框架创建的博客系统

http://go-blog.igo9go.cn ###安装

  • 安装go开发环境

    • mac 直接下载安装 https://storage.googleapis.com/golang/go1.7.3.darwin-amd64.pkg

    • linux

      1. wget https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz

      2. 解压 tar -zxf go1.7.3.linux-amd64.tar.gz ,放到合适的位置

      3. 修改 etc/profile 文件在文件后加入 export的几行,在unset下面直接加,不要有空行

      4. 然后执行 source /etc/profile 刷新配置文件

      5. 运行命令 go 测试go是否安装成功

  • go get github.com/astaxie/beego

  • go get github.com/beego/bee

  • go get igo9go/beego-blog

  • cd $GOPATH/src/igo9go/beego-blog

  • 数据库初始化,配置文件修改

  • bee run

  • 访问

    前端 http://127.0.0.1:8080

    后台 http://127.0.0.1:8080/admin

    账号:admin 密码:admin

  • 部署 后台启动守护进程nohup ./blog &(可以使用supervisor) nginx代理8080端口

 server {
     listen       80;
     server_name  go-blog.igo9go.cn;
 
     charset utf-8;
     access_log  /tmp/beego.access.log;
 
     location /(css|js|fonts|img)/ {
         access_log off;
         expires 1d;
 
         root "/data/goproject/src/static";
     }
 
     location / {
         proxy_set_header X-Forwarded-For $remote_addr;
         proxy_set_header Host            $http_host;
         proxy_pass http://127.0.0.1:8080;
     }
 }

FAQs

Package last updated on 15 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc