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

26 lines
756 B

10 years ago
10 years ago
10 years ago
10 years ago
  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 mysql-server
  8. ### create the database
  9. - $mysql -u root -p
  10. - mysql> SET GLOBAL storage_engine = 'InnoDB';
  11. - mysql> CREATE DATABASE gogs CHARACTER SET utf8 COLLATE utf8_bin;
  12. - mysql> GRANT ALL PRIVILEGES ON gogs.* TO 'root'@'localhost' IDENTIFIED BY 'password';
  13. - mysql> FLUSH PRIVILEGES;
  14. - mysql> QUIT
  15. ### install the gogs
  16. - mkdir gogs
  17. - cd gogs
  18. - curl -L http://gobuild.io/github.com/gogits/gogs/v0.2.0/linux/amd64 -o v0.2.0.zip
  19. - unzip v0.2.0.zip
  20. - ./start.sh
  21. > The up-to-date binary could be found at
  22. > http://gobuild.io/download/github.com/gogits/gogs