mysql -u root -p mysql> SET GLOBAL storage_engine = 'InnoDB'; mysql> CREATE DATABASE gogs CHARACTER SET utf8 COLLATE utf8_bin; mysql> GRANT ALL PRIVILEGES ON gogs.* TO ‘root’@‘localhost’ IDENTIFIED BY ‘itadmin’; mysql> FLUSH PRIVILEGES; mysql> QUIT;
wget https://github.com/gogits/gogs/releases/download/v0.11.29/go1.9.2.linux-amd64.tar.gz tar zxvf go1.9.2.linux-amd64.tar.gz mv go $GOROOT //这一步有点问题,已存在文件 go env //测试这个一步 倒是没问题
安装Gogs
1 2 3 4 5 6
su git cd ~ wget https://github.com/gogits/gogs/releases/download/v0.11.29/linux_amd64.tar.gz tar zxvf linux_amd64.tar.gz //解压后会右gogs文件 cd gogs ./gogs web