vurhorse.blogg.se

Git server centos 7
Git server centos 7











Restore-repo Restore the repository from disk Keys This command queries the Gitea database to get the authorized command for a given ssh key fingerprintĭump-repo Dump the repository from git/github/gitea/gitlab Generate Command line interface for running generators Hook Delegate commands to corresponding Git hooksĪdmin Command line interface to perform common administrative operations Serv This command should only be called by SSH shell Gitea command ġ.14.4 built with GNU Make 4.1, go1.16.5 : bindata, sqlite, sqlite_unlock_notifyīy default, gitea will start serving using the webserver with noĪrguments - which can alternatively be run by running the subcommand web. Gitea - A painless self-hosted Git service Help page can be printed with -help option $ gitea -help Gitea version 1.14.4 built with GNU Make 4.1, go1.16.5 : bindata, sqlite, sqlite_unlock_notify You can confirm version installed using $ gitea -version Sudo mv gitea-*-linux-amd64 /usr/local/bin/gitea Move the downloaded binary file to the /use/local/bindirectory chmod +x gitea-*-linux-amd64 curl -s |grep browser_download_url | cut -d '"' -f 4 | grep '\linux-amd64$' | wget -i. Check the latest release before downloading it. Now download gitea binary from the Downloads page. MariaDB > GRANT ALL PRIVILEGES ON gitea.* TO IDENTIFIED BY "StrongPassword" Type '\c' to clear the current input statement. Server version: 10.3.9-MariaDB MariaDB ServerĬopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Install MariaDB 10.x on Ubuntu 18.04 and CentOS 7Ĭreate a database for Gitea: # mysql -u root -p We will use MariaDB to store Gitea data, install MariaDB on your server by following our previous guide Sudo chmod 770 /etc/gitea Step 3: Install MariaDB database server sudo useradd \Ĭreate the required directory structure sudo mkdir -p /etc/gitea /var/lib/gitea/ Sudo reboot Step 2: Add git system user and create directoriesĪdd git user account that will be used by Gitea. Sudo yum -y install git wget vim bash-completion Update all system packages and install git by running sudo yum -y update Sudo sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config Put SELinux in Permissive mode: sudo setenforce 0













Git server centos 7