ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Gitea - A self hosted git server | Part -1 : Installation & Setup in Linux

gitea

gitea setup

gitea installation

git installation

how to use gitea

gitea tutorial

offline git server

offline git installation

offline source code management

gitea vs gitlab

gitea vs github

gitea login

gitea demo

gitea install windows

gitea postgres

gitea plugins

wget gitea

upgrade gitea

install gitea

configure gitea

self hosted github

github tutorial

github basics

install git

run github locally

how to install gitea

git

github

Автор: Think Easily

Загружено: 2021-06-11

Просмотров: 3029

Описание: Gitea - A self-hosted git server | Part -1: Installation & Setup in Linux

Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket, and GitLab. Gitea is a fork of Gogs. See the Gitea Announcement blog post to read about the justification for a fork.

System Requirements
2 CPU cores and 1GB RAM is typically sufficient for small teams/projects.


Command Guide

👉 Database Preparation

✔ ✅ Step : 1
We're using Mysql 8.0 for database , so you can install MySQL Database in ubuntu 20.04 by
sudo apt install mysql-server mysql-clinet
Because Ubuntu 20.04 comes with the default of MYSQL 8.0 in its APT Repository.


✔ ✅ Step : 2

For Local Database

CREATE USER 'gitea'@'locahost' IDENTIFIED BY 'Password@321"';
CREATE DATABASE gitea_db CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';
GRANT ALL PRIVILEGES ON gitea_db.* TO 'gitea'@'locahost';
FLUSH PRIVILEGES;

For Remote Database

CREATE USER 'gitea'@'X.X.X.X' IDENTIFIED BY 'Password@321"';
CREATE DATABASE gitea_db CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';
GRANT ALL PRIVILEGES ON gitea_db.* TO 'gitea'@'X.X.X.X';
FLUSH PRIVILEGES;

Test connection by running this
mysql -u gitea -h host-ip -p gitea_db


👉 Creating a user for Gitea (e.g: git )

sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git


👉 Create required directory structure

mkdir -p /var/lib/gitea/{custom,data,log}
chown -R git:git /var/lib/gitea/
chmod -R 750 /var/lib/gitea/
mkdir /etc/gitea
chown root:git /etc/gitea
chmod 770 /etc/gitea

NOTE: /etc/gitea is temporary set with write rights for user git so that Web installer could write configuration file.
After installation is done, It is recommended to set rights to read-only using:
chmod 750 /etc/gitea
chmod 640 /etc/gitea/app.ini

👉 Download Latest Version of Gitea
wget -O gitea https://dl.gitea.io/gitea/1.14.2/gite...
chmod +x gitea

👉 Copy Gitea Binary to Global location
Execute this to copy binary to global location : cp gitea /usr/local/bin/gitea



#gitea #installation #setup

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Gitea - A self hosted git server | Part -1 : Installation & Setup in Linux

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]