You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

install_gogs_from_binary_on_ubuntu.md 786 B

11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627
  1. ### Binary install gogs on ubuntu 14.04 LTS
  2. ### create user and install denpendency
  3. - sudo adduser git
  4. - sudo apt-get update
  5. - sudo apt-get upgrade
  6. - sudo apt-get install git
  7. - sudo apt-get install golang
  8. - sudo apt-get install mysql-server
  9. ### create the database
  10. - $mysql -u root -p
  11. - mysql> SET GLOBAL storage_engine = 'InnoDB';
  12. - mysql> CREATE DATABASE gogs CHARACTER SET utf8 COLLATE utf8_bin;
  13. - mysql> GRANT ALL PRIVILEGES ON gogs.* TO 'root'@'localhost' IDENTIFIED BY 'password';
  14. - mysql> FLUSH PRIVILEGES;
  15. - mysql> QUIT
  16. ### install the gogs
  17. - mkdir gogs
  18. - cd gogs
  19. - curl -L http://gobuild.io/github.com/gogits/gogs/v0.2.0/linux/amd64 -o v0.2.0.zip
  20. - unzip v0.2.0.zip
  21. - ./start.sh
  22. > The up-to-date binary could be found at
  23. > http://gobuild.io/download/github.com/gogits/gogs