Gogs部署

yum install -y mariadb-server git

systemctl enable mariadb-server

systemctl start mariadb-server

mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('1q2w3e');

useradd git

passwd git

su - 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

創建gogs數據庫

cd /home/git/gogs/scripts

mysql -uroot -p1q2w3e < /home/git/gogs/scripts/mysql.sql

啓動gogs

cd /home/git/gogs

./gogs web &

訪問http://gogs服務器IP:3000

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章