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 年前3The Weblate Manual 2.10.1
Configuring Weblate to use PostgreSQL MySQL or MariaDB Unicode issues in MySQL Transaction locking Creating database in MySQL Configuring Weblate to use MySQL Other configurations Configuring outgoing For PostgreSQL apt-get install python-psycopg2 # For MySQL on Ubuntu (if using Ubuntu package for Django) apt-get install python-pymysql # For MySQL on Debian (or Ubuntu if using upstream Django packages) postgresql # Database option 2: mariadb apt-get install mariadb-server # Database option 3: mysql apt-get install mysql-server # SMTP server apt-get install exim4 # GitHub PR support: hub # See https://hub0 码力 | 276 页 | 1.12 MB | 1 年前3The Weblate Manual 2.10
Configuring Weblate to use PostgreSQL MySQL or MariaDB Unicode issues in MySQL Transaction locking Creating database in MySQL Configuring Weblate to use MySQL Other configurations Configuring outgoing For PostgreSQL apt-get install python-psycopg2 # For MySQL on Ubuntu (if using Ubuntu package for Django) apt-get install python-pymysql # For MySQL on Debian (or Ubuntu if using upstream Django packages) postgresql # Database option 2: mariadb apt-get install mariadb-server # Database option 3: mysql apt-get install mysql-server # SMTP server apt-get install exim4 # GitHub PR support: hub # See https://hub0 码力 | 276 页 | 1.11 MB | 1 年前3The Weblate Manual 3.5
Configuring Weblate to use PostgreSQL MySQL or MariaDB Unicode issues in MySQL Transaction locking Creating a database in MySQL Configuring Weblate to use MySQL Other configurations Configuring outgoing Install database backend for PostgreSQL pip install psycopg2-binary # Install database backend for MySQL pip install mysqlclient 6. Copy the file ~/weblate-env/lib/python2.7/site- packages/weblate/settings-example Install database backend for PostgreSQL pip install psycopg2-binary # Install database backend for MySQL pip install mysqlclient 5. Create your settings (in this example it would be in ~/weblate- env/lib/python20 码力 | 419 页 | 1.75 MB | 1 年前3The Weblate Manual 3.5.1
Configuring Weblate to use PostgreSQL MySQL or MariaDB Unicode issues in MySQL Transaction locking Creating a database in MySQL Configuring Weblate to use MySQL Other configurations Configuring outgoing Install database backend for PostgreSQL pip install psycopg2-binary # Install database backend for MySQL apt install default-libmysqlclient-dev pip install mysqlclient 6. Copy the file ~/weblate-env/lib/python3 Install database backend for PostgreSQL pip install psycopg2-binary # Install database backend for MySQL apt install default-libmysqlclient-dev pip install mysqlclient 5. Create your settings (in this example0 码力 | 421 页 | 1.77 MB | 1 年前3The Weblate Manual 2.12
Configuring Weblate to use PostgreSQL MySQL or MariaDB Unicode issues in MySQL Transaction locking Creating database in MySQL Configuring Weblate to use MySQL Other configurations Configuring outgoing For PostgreSQL apt-get install python-psycopg2 # For MySQL on Ubuntu (if using Ubuntu package for Django) apt-get install python-pymysql # For MySQL on Debian (or Ubuntu if using upstream Django packages) postgresql # Database option 2: mariadb apt-get install mariadb-server # Database option 3: mysql apt-get install mysql-server # SMTP server apt-get install exim4 # GitHub PR support: hub # See https://hub0 码力 | 287 页 | 1.18 MB | 1 年前3The Weblate Manual 2.16
Configuring Weblate to use PostgreSQL MySQL or MariaDB Unicode issues in MySQL Transaction locking Creating database in MySQL Configuring Weblate to use MySQL Other configurations Configuring outgoing For PostgreSQL apt-get install python-psycopg2 # For MySQL on Ubuntu (if using Ubuntu package for Django) apt-get install python-pymysql # For MySQL on Debian (or Ubuntu if using upstream Django packages) postgresql # Database option 2: mariadb apt-get install mariadb-server # Database option 3: mysql apt-get install mysql-server # SMTP server apt-get install exim4 # GitHub PR support: hub # See https://hub0 码力 | 315 页 | 1.36 MB | 1 年前3The Weblate Manual 2.15
Configuring Weblate to use PostgreSQL MySQL or MariaDB Unicode issues in MySQL Transaction locking Creating database in MySQL Configuring Weblate to use MySQL Other configurations Configuring outgoing For PostgreSQL apt-get install python-psycopg2 # For MySQL on Ubuntu (if using Ubuntu package for Django) apt-get install python-pymysql # For MySQL on Debian (or Ubuntu if using upstream Django packages) postgresql # Database option 2: mariadb apt-get install mariadb-server # Database option 3: mysql apt-get install mysql-server # SMTP server apt-get install exim4 # GitHub PR support: hub # See https://hub0 码力 | 306 页 | 1.19 MB | 1 年前3The Weblate Manual 2.14
Configuring Weblate to use PostgreSQL MySQL or MariaDB Unicode issues in MySQL Transaction locking Creating database in MySQL Configuring Weblate to use MySQL Other configurations Configuring outgoing For PostgreSQL apt-get install python-psycopg2 # For MySQL on Ubuntu (if using Ubuntu package for Django) apt-get install python-pymysql # For MySQL on Debian (or Ubuntu if using upstream Django packages) postgresql # Database option 2: mariadb apt-get install mariadb-server # Database option 3: mysql apt-get install mysql-server # SMTP server apt-get install exim4 # GitHub PR support: hub # See https://hub0 码力 | 300 页 | 1.19 MB | 1 年前3The Weblate Manual 2.14.1
Configuring Weblate to use PostgreSQL MySQL or MariaDB Unicode issues in MySQL Transaction locking Creating database in MySQL Configuring Weblate to use MySQL Other configurations Configuring outgoing For PostgreSQL apt-get install python-psycopg2 # For MySQL on Ubuntu (if using Ubuntu package for Django) apt-get install python-pymysql # For MySQL on Debian (or Ubuntu if using upstream Django packages) postgresql # Database option 2: mariadb apt-get install mariadb-server # Database option 3: mysql apt-get install mysql-server # SMTP server apt-get install exim4 # GitHub PR support: hub # See https://hub0 码力 | 303 页 | 1.19 MB | 1 年前3
共 328 条
- 1
- 2
- 3
- 4
- 5
- 6
- 33