一次gogs踩坑之路2018.06.03 00:00 凌晨目录一定要按照操作步骤走1.创建用户,一定要记住密码sudo adduser gitsu gitcd ~2.下载并解压安装包wget https://dl.gogs.io/0.11.43/gogs_0.11.43_linux_amd64.zipunzip gogs_0.11.43_linux_amd64.zip3.拷贝启动项到系统下cp /home/xx/gogs/scripts/init/debian/gogs /etc/init.d/chmod +x /etc/init.d/gogs4.安装 mysqlapt updateapt install mysql-servermysql -u root -p < /home/xx/gogs/scripts/mysql.sqlmysql -u root -p> # (输入密码)> create user 'gogs'@'localhost' identified by '密码';> grant all privileges on gogs.* to 'gogs'@'localhost';> flush privileges;> exit;5.启动 gogsservice gogs startcurl -I http://localhost:3000 => HTTP OK 2006.nginx 配置server { listen 80; server_name www.example.com; location / { proxy_pass http://localhost:3000/; }}7.访问 www.example.com/install 进行初始化8.你可能遇到的问题Gogs 与 Linux 主机共享 SSH22 端口装 Gogs 后 ssh 无法和远程登录同时使用的解决方案工作 :分类aliyun, git, gogs, ubuntu 14.04, 阿里云 :标签