 Gitea v1.21.1 中文文档更多组件参见 package.json 编辑器: CodeMirror EasyMDE Monaco Editor 数据库驱动: github.com/go-sql-driver/mysql github.com/lib/pq github.com/mattn/go-sqlite3 github.com/denisenkom/go-mssqldb 请访问 Awesome Gitea BookStack.CN 构建 在使用 Gitea 前,您需要准备一个数据库。Gitea 支持 PostgreSQL(>=10)、MySQL(>=5.7)、SQLite 和 MSSQL(>=2008R2 SP3)这几种数据库。本页将指导您准备数据库。由于 PostgreSQL 和 MySQL 在生产环 境中被广泛使用,因此本文档将仅涵盖这两种数据库。如果您计划使用 SQLite,则可以忽略本章内容。 数据库实例可以与 本,以使某些引擎功能正常工作。出于安全原因,请使用安全密码保护 root (MySQL)或 postgres (PostgreSQL)数据库超级用户。以下步骤假设您在数据库和 Gitea 服务器上都使用 Linux。 1. 对于远程数据库设置,您需要让 MySQL 监听您的 IP 地址。编辑数据库实例上的 /etc/mysql/my.cnf 文件 中的 bind-address 选项为:0 码力 | 303 页 | 3.88 MB | 1 年前3 Gitea v1.21.1 中文文档更多组件参见 package.json 编辑器: CodeMirror EasyMDE Monaco Editor 数据库驱动: github.com/go-sql-driver/mysql github.com/lib/pq github.com/mattn/go-sqlite3 github.com/denisenkom/go-mssqldb 请访问 Awesome Gitea BookStack.CN 构建 在使用 Gitea 前,您需要准备一个数据库。Gitea 支持 PostgreSQL(>=10)、MySQL(>=5.7)、SQLite 和 MSSQL(>=2008R2 SP3)这几种数据库。本页将指导您准备数据库。由于 PostgreSQL 和 MySQL 在生产环 境中被广泛使用,因此本文档将仅涵盖这两种数据库。如果您计划使用 SQLite,则可以忽略本章内容。 数据库实例可以与 本,以使某些引擎功能正常工作。出于安全原因,请使用安全密码保护 root (MySQL)或 postgres (PostgreSQL)数据库超级用户。以下步骤假设您在数据库和 Gitea 服务器上都使用 Linux。 1. 对于远程数据库设置,您需要让 MySQL 监听您的 IP 地址。编辑数据库实例上的 /etc/mysql/my.cnf 文件 中的 bind-address 选项为:0 码力 | 303 页 | 3.88 MB | 1 年前3
 git 操作手册"/git-data" } }) #设置备份存放路径及备份默认保存时间,默认 /var/opt/gitlab/backups/ gitlab_rails['backup_path'] = "/git-backup" gitlab_rails['backup_keep_�me'] = 604800 #设置时区 gitlab_rails['�me_zone'] = "Asia/Shanghai" #设置监听的端口号(h�ps的端口号) nginx['ssl_cer�ficate_key'] = "/etc/gitlab/gitlab.cof-lee.com.key" EOF # mkdir /git-data # mkdir /git-backup #将证书及密钥文件复制到/etc/gitlab目录下 # gitlab-ctl reconfigure #重加载配置文件(耗时较长,约5到10分钟)0 码力 | 35 页 | 1.69 MB | 1 年前3 git 操作手册"/git-data" } }) #设置备份存放路径及备份默认保存时间,默认 /var/opt/gitlab/backups/ gitlab_rails['backup_path'] = "/git-backup" gitlab_rails['backup_keep_�me'] = 604800 #设置时区 gitlab_rails['�me_zone'] = "Asia/Shanghai" #设置监听的端口号(h�ps的端口号) nginx['ssl_cer�ficate_key'] = "/etc/gitlab/gitlab.cof-lee.com.key" EOF # mkdir /git-data # mkdir /git-backup #将证书及密钥文件复制到/etc/gitlab目录下 # gitlab-ctl reconfigure #重加载配置文件(耗时较长,约5到10分钟)0 码力 | 35 页 | 1.69 MB | 1 年前3
 Pro Git 2nd Edition 2.1.413client repositories can be copied back up to the server to restore it. Every clone is really a full backup of all the data. Figure 3. Distributed version control diagram Furthermore, many of these systems every snapshot, whether it exists or not. If you want to remove all accidentally committed editor backup files, you can run something like git filter-branch --tree- filter 'rm -f *~' HEAD. You’ll be able you back up your project by occasionally copying the directory into a time-stamped back_YYYY_MM_DD backup directory, and you want to import this into Git. Your directory structure looks like this: $ ls0 码力 | 731 页 | 21.49 MB | 1 年前3 Pro Git 2nd Edition 2.1.413client repositories can be copied back up to the server to restore it. Every clone is really a full backup of all the data. Figure 3. Distributed version control diagram Furthermore, many of these systems every snapshot, whether it exists or not. If you want to remove all accidentally committed editor backup files, you can run something like git filter-branch --tree- filter 'rm -f *~' HEAD. You’ll be able you back up your project by occasionally copying the directory into a time-stamped back_YYYY_MM_DD backup directory, and you want to import this into Git. Your directory structure looks like this: $ ls0 码力 | 731 页 | 21.49 MB | 1 年前3
 Pro Git 2nd Edition 2.1.413client repositories can be copied back up to the server to restore it. Every clone is really a full backup of all the data. 12 Figure 3. Distributed version control diagram Furthermore, many of these systems every snapshot, whether it exists or not. If you want to remove all accidentally committed editor backup files, you can run something like git filter-branch --tree-filter 'rm -f *~' HEAD. You’ll be able you back up your project by occasionally copying the directory into a time-stamped back_YYYY_MM_DD backup directory, and you want to import this into Git. Your directory structure looks like this: $ ls0 码力 | 501 页 | 17.96 MB | 1 年前3 Pro Git 2nd Edition 2.1.413client repositories can be copied back up to the server to restore it. Every clone is really a full backup of all the data. 12 Figure 3. Distributed version control diagram Furthermore, many of these systems every snapshot, whether it exists or not. If you want to remove all accidentally committed editor backup files, you can run something like git filter-branch --tree-filter 'rm -f *~' HEAD. You’ll be able you back up your project by occasionally copying the directory into a time-stamped back_YYYY_MM_DD backup directory, and you want to import this into Git. Your directory structure looks like this: $ ls0 码力 | 501 页 | 17.96 MB | 1 年前3
 Pro Git 2nd Edition 2.1.413 client repositories can be copied back up to the server to restore it. Every clone is really a full backup of all the data. Figure 3. Distributed version control diagram Furthermore, many of these systems every snapshot, whether it exists or not. If you want to remove all accidentally committed editor backup files, you can run something like git filter-branch --tree- filter 'rm -f *~' HEAD. You’ll be able you back up your project by occasionally copying the directory into a time-stamped back_YYYY_MM_DD backup directory, and you want to import this into Git. Your directory structure looks like this: $ ls0 码力 | 691 页 | 13.35 MB | 1 年前3 Pro Git 2nd Edition 2.1.413 client repositories can be copied back up to the server to restore it. Every clone is really a full backup of all the data. Figure 3. Distributed version control diagram Furthermore, many of these systems every snapshot, whether it exists or not. If you want to remove all accidentally committed editor backup files, you can run something like git filter-branch --tree- filter 'rm -f *~' HEAD. You’ll be able you back up your project by occasionally copying the directory into a time-stamped back_YYYY_MM_DD backup directory, and you want to import this into Git. Your directory structure looks like this: $ ls0 码力 | 691 页 | 13.35 MB | 1 年前3
共 5 条
- 1














 
 