概述
搭建一个企业代码仓库,网上对比一圈,发现 gitea 比较受欢迎。
- 选用 docker 作为 gitea 容器
- 主服务器装 mysql ,团队5人以下用 SQLite 3 也够用 。
mysql 安装
- MySQL 安装
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server
- 启动 MySql ,并查看运行状态
systemctl start mysqld.service
systemctl status mysqld.service
- 查看默认root权限密码,然后修改密码。
grep "password" /var/log/mysqld.log
mysql -uroot -p
alter user