Install Gogs git server pada Fedora

sudo dnf install git

wget https://dl.gogs.io/0.11.66/gogs_0.11.66_linux_amd64.tar.gz
tar zxf gogs_0.11.66_linux_amd64.tar.gz


sudo dnf install supervisor

sudo systemctl enable supervisord

sudo mkdir /var/log/gogs
sudo vi /etc/supervisord.conf


#tambah dipaling bawah
[program:gogs]
directory=/home/git/gogs/
command=/home/git/gogs/gogs web
autostart=true
autorestart=true
startsecs=10
stdout_logfile=/var/log/gogs/stdout.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_capture_maxbytes=1MB
stderr_logfile=/var/log/gogs/stderr.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB
environment = HOME="/home/git", USER="git"
user = git



sudo systemctl restart supervisord

ps -ef | grep gogs
tail /var/log/gogs/stdout.log


http://your_server_ip:3000/install


#begin nginx
dnf install nginx

systemctl enable nginx.service
systemctl start nginx
systemctl status nginx

firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --reload

setsebool -P httpd_can_network_connect 1
#end nginx

#begin mariadb
dnf install mariadb-server

systemctl enable mariadb
systemctl start mariadb
systemctl status mariadb
#end mariadb

Komentar

Postingan Populer