parent
a0389cb28c
commit
65ae3e1e13
|
@ -1,8 +1,19 @@
|
|||
# Gitea 安装和配置
|
||||
---
|
||||
layout: post
|
||||
title: "Gitea 安装和配置"
|
||||
subtitle: ""
|
||||
description: "Gitea 是一个类似于 GitHub 的功能强大的代码托管平台。介绍 Gitea 的安装和配置方法。"
|
||||
excerpt: "介绍 Gitea 的安装和配置方法。"
|
||||
date: 2024-03-09 09:12:00
|
||||
author: "Rick Chan"
|
||||
tags: ["Applications", "Gitea"]
|
||||
categories: ["Software"]
|
||||
published: true
|
||||
---
|
||||
|
||||
## 1.简介
|
||||
|
||||
Gitea 是一个类似于 GitHub 的代码托管平台,使用 Go 语言开发,只需要一个可执行程序文件即可部署,非常简单易用,且功能丰富。具有版本管理、组织管理、Issues讨论、版本发布等功能。内置维基百科和 SSH 子系统。
|
||||
Gitea 是一个类似于 GitHub 的功能强大的代码托管平台,使用 Go 语言开发,只需要一个可执行程序文件即可部署,非常简单易用,且功能丰富。具有版本管理、组织管理、Issues讨论、版本发布等功能。内置维基百科和 SSH 子系统。
|
||||
|
||||
## 2.Gitea 安装
|
||||
|
||||
|
@ -36,13 +47,13 @@ sc delete Gitea
|
|||
|
||||
### 4.2.Linux 服务
|
||||
|
||||
systemd 服务的开启过程如下,首先创建 gitea.service 文件
|
||||
systemd 服务的开启过程如下,首先创建 gitea.service 文件:
|
||||
|
||||
```bash
|
||||
sudo vim /etc/systemd/system/gitea.service
|
||||
```
|
||||
|
||||
并参照以下模板填充该文件
|
||||
并参照以下模板填充该文件:
|
||||
|
||||
```ini
|
||||
[Unit]
|
||||
|
@ -79,14 +90,14 @@ Restart=always
|
|||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
使用如下命令使能并启动 gitea 服务
|
||||
使用如下命令使能并启动 gitea 服务:
|
||||
|
||||
```bash
|
||||
sudo systemctl enable gitea
|
||||
sudo systemctl start gitea
|
||||
```
|
||||
|
||||
使用如下命令停止 gitea 服务
|
||||
使用如下命令停止 gitea 服务:
|
||||
|
||||
```bash
|
||||
sudo systemctl stop gitea
|
||||
|
@ -145,18 +156,26 @@ SSH_LISTEN_PORT = 3022
|
|||
Gitea 可以通过预先配置好的电子邮件发送服务器发送服务邮件如:通知、消息、注册确认等信息。邮件发送服务器为 smtp 服务器,需要同时提供服务器端口,用户名和密码。
|
||||
|
||||
```ini
|
||||
[mailer]
|
||||
ENABLED = true
|
||||
; Mail server
|
||||
; Gmail: smtp.gmail.com:587
|
||||
; QQ: smtp.qq.com:465
|
||||
; 163: smtp.163.com:465
|
||||
; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used.
|
||||
HOST = smtp.sina.com:465
|
||||
[mailer]
|
||||
ENABLED = true
|
||||
; PROTOCOL: empty: One of "smtp", "smtps", "smtp+starttls", "smtp+unix", "sendmail", "dummy".
|
||||
PROTOCOL = smtp
|
||||
SMTP_ADDR = smtp.sina.com
|
||||
; SMTP_PORT: empty: Mail server port. If no protocol is specified, it will be inferred by this setting. Common ports are
|
||||
; * 25: insecure SMTP
|
||||
; * 465: SMTP Secure
|
||||
; * 587: StartTLS
|
||||
|
||||
; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
|
||||
FROM = user_name@sina.com
|
||||
; Mailer user name and password
|
||||
USER = user_name@sina.com
|
||||
; Use PASSWD = `your password` for quoting if you use special characters in the password.
|
||||
; Use PASSWD = `your password` for quoting if you use special characters in the password. 该字段也可用于指定“设备授权码”
|
||||
PASSWD = user_password
|
||||
```
|
||||
|
||||
|
|
|
@ -1,6 +1,17 @@
|
|||
# Part-DB 安装及使用
|
||||
---
|
||||
layout: post
|
||||
title: "Part-DB 安装及使用"
|
||||
subtitle: ""
|
||||
description: "Part-DB 是比较实用的元器件进销存 Web 系统,支持使用电脑摄像头扫码(条码和二维码)。本文介绍 Part-DB 的安装和配置方法。"
|
||||
excerpt: "介绍 Part-DB 的安装和配置方法。"
|
||||
date: 2024-03-09 09:19:00
|
||||
author: "Rick Chan"
|
||||
tags: ["Applications", "Part-DB"]
|
||||
categories: ["Software"]
|
||||
published: true
|
||||
---
|
||||
|
||||
Part-DB 是比较实用的元器件进销存 Web 系统,支持实用电脑摄像头扫码(条码和二维码)。
|
||||
Part-DB 是比较实用的元器件进销存 Web 系统,支持使用电脑摄像头扫码(条码和二维码)。
|
||||
|
||||
## 1. 安装
|
||||
|
||||
|
@ -119,4 +130,3 @@ Part-DB 还可以与 KiCAD 等 EDA 结合使用,[官方说明在此](https://d
|
|||
2. [Part-DB Doc](https://docs.part-db.de/)
|
||||
3. [Part-DB Demo](https://part-db.herokuapp.com/en/)
|
||||
4. [Part-DB Docker](https://hub.docker.com/r/jbtronics/part-db1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue