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 623 B

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