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

How to install gogs on centos 6.x

藏色散人
Release: 2021-06-26 16:47:12
forward
1938 people have browsed it

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
Copy after login

Switch to the git user and create an ssh directory

su git 
mkdir ~/.ssh
Copy after login

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
Copy after login

Unzip the installation package

tar -zxvf gogs_0.11.53_linux_amd64.tar.gz
Copy after login

Enter the decompression directory

cd gogs
Copy after login

Start gogs

./gogs web
Copy after login

Use pm2 to start as a background service

nohup ./gogs web &
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template