1. 程式人生 > >Debian9:Gogs——自助 Git 服務搭建教程

Debian9:Gogs——自助 Git 服務搭建教程

https://blog.csdn.net/qq_20492999/article/details/80422231

按照上文部署完成之後,多加幾個步驟

1. 修改監聽IP

[email protected]:~# vim /etc/mysql/mariadb.conf.d/50-server.cnf
bind-address		= 0.0.0.0
[email protected]:~# systemctl restart mysqld.service  #重啟資料庫
[email protected]:~# ss -lntup|grep 3306
tcp    LISTEN     0      80        *:3306                  *:*                   users:(("mysqld",pid=8603,fd=17))

2. 增加MariaDB使用者,允許gogs遠端訪問,在安裝介面會用到

GRANT ALL PRIVILEGES ON gogs.* TO [email protected]’%’ IDENTIFIED BY ‘123456’;
FLUSH PRIVILEGES;

3. 新使用者註冊

這裡寫圖片描述

填坑

https://blog.csdn.net/menghuanbeike/article/details/78581937