Home  >  Article  >  Operation and Maintenance  >  How to install gogs on centos 6.x

How to install gogs on centos 6.x

藏色散人
藏色散人forward
2021-06-26 16:47:121893browse

This article demonstrates how to install gogs on centos 6.x.

How to install gogs on centos 6.x

centos 6.x Install gogs

Installation environment requirements

MySQL: Version >= 5.7
Git : Version >= 1.7.1

Detailed installation steps

Create a non-root account

sudo adduser git

Switch to the git user and create an ssh directory

su git 
mkdir ~/.ssh

to Download the installation package in a custom directory

cd /home/git
wget https://cdn.gogs.io/0.11.53/gogs_0.11.53_linux_amd64.tar.gz

Unzip the installation package

tar -zxvf gogs_0.11.53_linux_amd64.tar.gz

Enter the decompression directory

cd gogs

Start gogs

./gogs web

Use pm2 to start as a background service

nohup ./gogs web &

Originally I wanted to use pm2 for management, but pm2 always reported an error when starting up, saying that the current root user cannot start. Let's leave it like this for now.

Recommended: "centos tutorial"

The above is the detailed content of How to install gogs on centos 6.x. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete