Install, configure Gogs under VMware + ubuntu16.04 Linux

Source: Internet
Author: User

This article was tested in Ubuntu 16.04 in Win7+vmware.

Run the following command:
sudo Install git sudo adduser git # Create a separate user for Gogs

Official download Install file compression package, I am install from binary, I am currently released in 2017-11-22 version. Https://gogs.io/docs/installation/install_from_binary
Unzip the compressed package into the/home/git/gogs directory.
The Gogs service can be configured at this time, and I use the default settings. To configure the/home/git/gogs/scripts/init/debian/gogs that can be modified

Execute the following command:

sudo cp /home/git/gogs/scripts/init/debian/gogs/etc/init.d/sudochmod +x/etc/init.d/  Gogscp /home/git/gogs/scripts/systemd/gogs.service/etc/systemd/system/  # Copy Service sudo Systemctl Enable Gogs # Enable run at startup sudo systemctl start Gogs # start now

Access the Http://localhost:3000/install in the Win7 browser, where localhost will be changed to its own Ubuntu server IP.

All of which use the default settings except:

    1. Database, because I do not know how to configure MySQL, I choose SQLite.
    2. Change all localhost to the IP of your Ubuntu server.

After install, modify the configuration only by modifying the file/home/git/gogs/custom/conf/app.ini, if you want to modify, you can refer to Https://gogs.io/docs/advanced/configuration_cheat_sheet.

To access the Gogs service, you can pass http://localhost:3000/, where localhost is the IP of Ubuntu server

LocalHost can be modified in/home/git/gogs/custom/conf/app.ini so that the Git repository is used correctly.

At this point, you should basically use Gogs. There are some room for improvement, a bit lazy, and the network problem is not implemented, including:

    1. Use the MySQL database.
    2. Reverse proxy, realize the domain name landing. Nginx (HTTPS://WWW.JIANSHU.COM/P/D946314BCE2F), Apache2 (https://www.cnblogs.com/ddr888/archive/2016/01/14/5131028.html)

This article refers to the following:

https://www.jianshu.com/p/d946314bce2f

Https://www.cnblogs.com/ddr888/archive/2016/01/14/5131028.html

Https://gogs.io/docs/intro/faqs

Https://gogs.io/docs/advanced/configuration_cheat_sheet

Install, configure Gogs under VMware + ubuntu16.04 Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.