3 minutes to teach you to build gitea on Centos server

This article tells you how to build gitea on a Centos server and then create an account in gitea to upload the code

Before we start, briefly introduce gitea. This is a lightweight code hosting solution with open source code and suitable for building on your own server.

The first is to create a folder to store gitea, a blank folder can be created by the following command

cd ~``mkdir gitea

Then enter the folder you created

cd gitea

Download the latest gitea, you can find the latest software on this page https://docs.gitea.io/en-us/install-from-binary/

Use the following code to download the software in the folder

wget -O gitea https://dl.gitea.io/gitea/1.5.0/gitea-1.5.0-linux-amd64

You need to give permission before running the software

chmod +x gitea

Use the following command to run gitea, but this command will automatically close gitea when you log out. If you need to always open in the background, please see the following command

. /gitea web

Many times the problem arises because git is not installed well. You can install git in Centos through the following command. Note that the current user is an administrator user

yum install git

If it can run, just enter the server's ip and port 3000 to visit in the browser, my server is http://172.96.218.156 I can use the link below to access

http://172.96.218.156:3000

This link is available, everyone can use my server

Now is to make a basic setting, it is recommended to use Sqlite so that no configuration is required

Click register after configuration, the first registered user is the administrator

If you need to make gitea run in the background, you can use the following command

nohup ./gitea web &

In this way, log out and run gitea in the background. You can access your own server in many places and you can use the built gitea. In addition, gitea can set up many private projects, so that you can put some undisclosed projects on the server

But the security of gitea is not very good, so don't put your important projects on public servers.


This article will be updated frequently, please read the original text: https://lindexi.gitee.io/post/3%E5%88%86%E9%92%9F%E6%95%99%E4%BD%A0%E6%90%AD%E5%BB%BA-gitea-%E5%9C%A8-Centos-%E6%9C%8D%E5%8A%A1%E5%99%A8.html to avoid the misleading of outdated false knowledge and have a better reading experience.

https://creativecommons.org/licenses/by-nc-sa/4.0/ This work is licensed under Creative Commons Attribution-Non-commercial Use-Share the Same 4.0 International License Agreement. Welcome to reprint, use, and republish, but be sure to keep the article's signature Lin Dexi (including link: https://lindexi.gitee.io), and must not be used for commercial purposes. The modified works based on this article must be the same License issuance. If you have any questions, please contact me.

Recommended Posts

3 minutes to teach you to build gitea on Centos server
Teach you how to build a Git server on Ubuntu
How to quickly build Nginx server under CentOS
Centos7 tutorial to build a master-slave DNS server
How to build a LAMP environment on centos7.2
Build k8s1.9.9 on centos7
Jenkins build on centos
How to configure FTP server with Vsftpd on CentOS 8
CentOS uses Nginx to build a download function server
Centos8 implementation steps to build a local web server
How to install and configure NFS server on CentOS 8
How to configure FTP server with Vsftpd on CentOS 8
Build OpenV** Server under CentOS7
Build OpenLDAP server under CentOS7
Build MariaDB replication on CentOS
install virtualbox on centos server
Install Nginx server on CentOS 7
First try to build a Ceph storage cluster on Centos7
How to install and configure Postfix mail server on CentOS8
How to build an NFS file sharing server on Ubuntu 16.04
Detailed steps to set up a Git server on CentOS
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
Build Nginx-RTMP live server on ubuntu
How to install Memcached on CentOS 8
How to install R on CentOS 8
How to install FFmpeg on CentOS 8
How to install Virtualbox on CentOS 8
How to install TensorFlow on CentOS 8
How to Update to gcc4.9.x on Centos7
How to install TeamViewer on CentOS 8
CentOS8.1 build Gitlab server detailed tutorial
How to install Perl 5 on CentOS
How to install Git on CentOS 8
How to install Gradle on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Jenkins on CentOS 8
How to install Java on CentOS 8
How to install Go on CentOS 8
How to install GCC on CentOS 8
How to install Yarn on CentOS 8
How to install Nginx on CentOS 8
How to install Asterisk on CentOS 7
How to install Jenkins on CentOS 8
How to install Vagrant on CentOS 8
How to install Python 3.8 on CentOS 8
How to install Tomcat 9 on CentOS 8
How to install Webmin on CentOS 8
Centos6 method steps to build gitlab
Build an FTP server under centos7
How to install Ruby on CentOS 8
How to install Skype on CentOS 8
How to install htop on CentOS 8
How to install Python on CentOS 8
Build Elasticsearch 6.2.4 (centos) based on docker
How to install Elasticsearch on CentOS 8
How to set up the Nginx server configuration block on CentOS 8
Build Nginx environment on Linux (CentOS)
How to install Postgresql on CentOS 8
How to install Wordpress on Centos
How to install htop on CentOS 8