ubuntu 14.04 lts 安装gogs v0.6.1

理论上是这样的
http://gogs.io/docs/installation/install_gogs_on_ubuntu.html

我直接用的 sqlite3 然后起成服务运行

sudo adduser git  
sudo apt-get install unzip  git sqlite3
cd /home/git
wget https://github.com/gogits/gogs/releases/download/v0.6.1/linux_amd64.zip
su git
unzip linux_amd64.zip
cp /home/git/gogs/scripts/init/debian/gogs /etc/init.d/
chmod a+x /etc/init.d/gogs
sudo -s
apt-get install sysv-rc-conf
sysv-rc-conf gogs on
apt-get remove sysv-rc-conf
apt-get autoremove

vi /home/git/gogs/custom/conf/app.ini


./gogs web

http://ip:3000 安装 

sudo apt-get install nginx
sudo touch /etc/nginx/sites-available/gogs.conf
sudo ln -s /etc/nginx/sites-available/gogs.conf /etc/nginx/sites-enabled/gogs.conf


sudo vi /etc/nginx/sites-available/gogs.conf


server {
        listen 80;
        server_name 192.168.1.19;
        location / {
        proxy_pass http://localhost:3000;
        }
}


具体配置http://gogs.io/docs/advanced/configuration_cheat_sheet.md

nginx 代理设置 http://gogs.io/docs/intro/faqs.md;

done


你可能感兴趣的:(ubuntu 14.04 lts 安装gogs v0.6.1)