gogs 搭建
sudo apt-get install nginx sudo apt-get install git sudo apt-get install mysql-server mysql -u root -p SET GLOBAL default_storage_engine = 'InnoDB'; CREATE DATABASE gogs CHARACTER SET utf8 COLLATE utf8_bin; GRANT ALL PRIVILEGES ON gogs.* TO ‘root’@‘localhost’ IDENTIFIED BY '*****'; FLUSH PRIVILEGES; QUIT; sudo adduser git apt-get install unzip su git cd ~ wget https://dl.gogs.io/0.11.4/linux_amd64.zip unzip linux_amd64.zip su sudo cp /home/git/gogs/scripts/init/debian/gogs /etc/init.d/ sudo chmod +x /etc/init.d/gogs cp /home/git/gogs/scripts/systemd/gogs.service /etc/systemd/system/ sudo service gogs start
添加ngix反向代理和https
nginx自签名 :
https://blog.csdn.net/qq_26819733/article/details/53431662
添加nginx 反向代理
https://www.jianshu.com/p/cd3fe466bdc7