gitea 설치 방법
-- mysql 설치
# wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
# rpm -ivh mysql-community-release-el6-5.noarch.rpm
# yum install mysql-server
# service mysqld restart
# chkconfig mysqld on
-- mysql db 생성
CREATE DATABASE gitea;
CREATE USER 'gitea'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON gitea.* TO 'gitea'@'localhost';
FLUSH PRIVILEGES
-- gitea 다운
https://dl.gitea.io/gitea/
사이트에서 버전 확인 후 최신 버전을 설치하거나 자신이 원하는 버전 다운 받으면 된다.
# export GITEAVER=1.13.1
# wget https://github.com/go-gitea/gitea/releases/download/v${GITEAVER}/gitea-${GITEAVER}-linux-amd64 -O usr/local/bin/gitea
--2021-01-25 16:37:21-- https://github.com/go-gitea/gitea/releases/download/v1.13.1/gitea-1.13.1-linux-amd64
Resolving github.com (github.com)... 15.164.81.167
Connecting to github.com (github.com)|15.164.81.167|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/72495579/d152c180-4913-11eb-8f74-62b8c0e502ed?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210125%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210125T073721Z&X-Amz-Expires=300&X-Amz-Signature=bdfff62c722e00b2aeb892ec64b0ec53ab8a1147545e75a96374df057567dcfc&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=72495579&response-content-disposition=attachment%3B%20filename%3Dgitea-1.13.1-linux-amd64&response-content-type=application%2Foctet-stream [following]
--2021-01-25 16:37:21-- https://github-production-release-asset-2e65be.s3.amazonaws.com/72495579/d152c180-4913-11eb-8f74-62b8c0e502ed?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210125%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210125T073721Z&X-Amz-Expires=300&X-Amz-Signature=bdfff62c722e00b2aeb892ec64b0ec53ab8a1147545e75a96374df057567dcfc&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=72495579&response-content-disposition=attachment%3B%20filename%3Dgitea-1.13.1-linux-amd64&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.217.36.244
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.217.36.244|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 115836856 (110M) [application/octet-stream]
Saving to: ‘/usr/local/bin/gitea’
100%[====================================================================================>] 115,836,856 11.6MB/s in 28s
2021-01-25 16:37:50 (4.01 MB/s) - ‘/usr/local/bin/gitea’ saved [115836856/115836856]
# gitea -v
Gitea version 1.13.1 built with GNU Make 4.1, go1.15.6 : bindata, sqlite, sqlite_unlock_notify
저장
# systemctl daemon-reload
# systemctl start gitea
-- mysql 입력
http://localhost:3000/install
설정에 맞게 입력
혹시 별도 경로를 지정 했다면 권한이 없다고 에러 발생 할것 이다.
저장소(레파지토리) 의 경로가 올바르지 않습니다: mkdir /work/git: permission denied
'Linux' 카테고리의 다른 글
docker: Error response from daemon: Conflict. The container name "/gitlab" is already in use by container (0) | 2021.01.26 |
---|---|
This job is stuck because the project doesn't have any runners online assigned to it. (0) | 2021.01.26 |
svn url 주소 관련 (0) | 2021.01.25 |
Error while parsing config file: /work/passwd: 1: Section header expected (0) | 2021.01.22 |
docker gitlab runner install (0) | 2021.01.18 |