📃 docs: 初步完善
This commit is contained in:
@@ -16,18 +16,7 @@ title: '关于本文档'
|
||||
|
||||
源代码仓库仅托管在实验室内部提供的代码托管平台上,
|
||||
|
||||
[sayurinana/huse-lab-ops-doc - huse-lab-ops-doc - 实验室自用 - git仓库托管平台](http://gitea.lab.net/sayurinana/huse-lab-ops-doc)
|
||||
[sayurinana/huse-lab - huse-lab - 实验室自用 - git仓库托管平台](http://gitea.lab.net/sayurinana/huse-lab)
|
||||
|
||||

|
||||

|
||||
|
||||
## 为什么要倒腾这些
|
||||
|
||||
首先,对于这个文档,就是字面意思辅助运维,
|
||||
|
||||
免得之后要再添加服务要加IP加端口的时候不清楚哪些已经使用了哪些还没用,
|
||||
|
||||
还有在后续改对原有的服务进行更改的时候,可能会忘记了服务的入口和认证配置项,
|
||||
|
||||
一般这些服务配置好之后如果不出意外或没别的需求,就可能再也不会动了,用不到自然就忘记了,这不是些什么天天折腾的东西,
|
||||
|
||||
然后,对于这个文档所维护的那些服务,
|
||||
|
||||
28
docs/ops-doc/entrance-info/filerun.md
Normal file
28
docs/ops-doc/entrance-info/filerun.md
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
sidebar_label: 'filerun服务'
|
||||
title: 'filerun服务'
|
||||
---
|
||||
|
||||
## 概述
|
||||
|
||||
作为docker容器跑在[Ubuntu虚拟机-server](../machine-info/server-Ubuntu-24.04.01.md)里,
|
||||
|
||||
## 关键配置
|
||||
|
||||
docker配置文件和本地数据目录:
|
||||
|
||||
```
|
||||
/opt/myappdata/filerun-local-lan
|
||||
```
|
||||
|
||||
```
|
||||
/opt/myappdata/filerun-public-web
|
||||
```
|
||||
|
||||
修改配置文件后重新创建和运行容器:
|
||||
|
||||
```
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
64
docs/ops-doc/entrance-info/gitea.md
Normal file
64
docs/ops-doc/entrance-info/gitea.md
Normal file
@@ -0,0 +1,64 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
sidebar_label: 'gitea服务'
|
||||
title: 'gitea服务'
|
||||
---
|
||||
|
||||
## 概述
|
||||
|
||||
单独跑在[Ubuntu虚拟机-gitea](../machine-info/gitea-Ubuntu-24.04.01.md)里,
|
||||
|
||||
以可执行二进制文件的形式安装部署,
|
||||
|
||||
文档参考:[关于Gitea | Gitea Documentation](https://docs.gitea.com/zh-cn/)
|
||||
|
||||
安装时遵循:[使用二进制文件安装 | Gitea Documentation](https://docs.gitea.com/zh-cn/installation/install-from-binary)
|
||||
|
||||
所需的数据库由 1Panel 面板管理,
|
||||
|
||||
## 关键配置
|
||||
|
||||
可执行文件路径:
|
||||
|
||||
```
|
||||
/usr/local/bin/gitea
|
||||
```
|
||||
|
||||
数据存储路径:
|
||||
|
||||
```
|
||||
/var/lib/gitea/
|
||||
```
|
||||
|
||||
配置文件路径:
|
||||
|
||||
```
|
||||
/etc/gitea/
|
||||
```
|
||||
|
||||
服务配置文件路径:
|
||||
|
||||
```
|
||||
/etc/systemd/system/gitea.service
|
||||
```
|
||||
|
||||
数据库名,数据库用户名,用户密码(三个相同):
|
||||
|
||||
```
|
||||
gitea
|
||||
```
|
||||
|
||||
1panel 面板登录入口与用户名密码:
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
@@ -44,6 +44,8 @@ title: '网络配置情况'
|
||||
|
||||
目前设置了静态IP的机器有以下几台,
|
||||
|
||||
**(仅供参考,如果要改动,请登录后台查看实时状态)**
|
||||
|
||||

|
||||
|
||||
### 需要固定IP时
|
||||
@@ -52,5 +54,5 @@ title: '网络配置情况'
|
||||
|
||||
也就是说,如果某台机器需要固定IP,主要有两种正规方式:
|
||||
|
||||
1. 手动为那台机器设置 192.168.31.2 ~ 192.168.31.99 的IPv4配置,要注意不要IP冲突了
|
||||
1. 手动为那台机器设置 **192.168.31.2 ~ 192.168.31.99** 的IPv4配置,要注意不要IP冲突了
|
||||
2. 在路由器管理页面里设置静态IP,可以按惯例继续在 2xx 号里定,或者自己选都行
|
||||
|
||||
59
docs/ops-doc/entrance-info/network-printer.md
Normal file
59
docs/ops-doc/entrance-info/network-printer.md
Normal file
@@ -0,0 +1,59 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
sidebar_label: '网络打印机'
|
||||
title: '网络打印机'
|
||||
---
|
||||
|
||||
## 概述
|
||||
|
||||
单独开了一个win 10的虚拟机,1核2G,IP是:
|
||||
|
||||
```
|
||||
192.168.31.201
|
||||
```
|
||||
|
||||
把打印机直接虚拟化接到虚拟机里,然后把它网络共享,就成了,
|
||||
|
||||
## 关于这台虚拟机的配置
|
||||
|
||||
用win10是因为曾经遇到过一些bug,之前是直接用我自己主机连打印机,然后我的电脑是win11,直接在打印机那里共享的,
|
||||
|
||||
后来遇到有人总是连不上打印机,最后定位到确定是操作系统的锅,换了虚拟机装win10开共享就解决了,
|
||||
|
||||
给2GB内存是因为以前给1GB内存时,偶尔会在运行几个小时之后虚拟机卡住,
|
||||
|
||||
就是虽然也能提供服务,网络打印机也能用,但是在VMware里面点win10界面没有反应了,界面卡死,
|
||||
|
||||
给提到2GB内存就没遇到过这个问题了,
|
||||
|
||||
## 用户账户
|
||||
|
||||
115b那个不用了,不过也懒得删了,密码是:
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
虚拟机默认登录用的账户密码是:
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
用来给网络共享打印机开权限和登录用的账户是:
|
||||
|
||||
```
|
||||
lab
|
||||
```
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
## 状态截图
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
63
docs/ops-doc/entrance-info/web-explorer.md
Normal file
63
docs/ops-doc/entrance-info/web-explorer.md
Normal file
@@ -0,0 +1,63 @@
|
||||
---
|
||||
sidebar_position: 6
|
||||
sidebar_label: 'web目录浏览'
|
||||
title: 'web目录浏览'
|
||||
---
|
||||
|
||||
## 概述
|
||||
|
||||
web服务由 1panel 管理的网站配置提供,
|
||||
|
||||
跑在[Ubuntu虚拟机-server](../machine-info/server-Ubuntu-24.04.01.md)里,
|
||||
|
||||
## 关键配置
|
||||
|
||||
具体的配置是在配置文件中手动编辑设置的,
|
||||
|
||||

|
||||
|
||||
使用的路径是:
|
||||
|
||||
```
|
||||
/www/res
|
||||
```
|
||||
|
||||
但是这个路径不是真实的虚拟机的文件系统路径,
|
||||
|
||||
这个位置的文件来自[袁观杰的主机](../machine-info/workstation-s14.md)的:
|
||||
|
||||
```
|
||||
D:\classification\share
|
||||
```
|
||||
|
||||
这个位置通过VMware的共享文件夹功能映射到虚拟机中:
|
||||
|
||||
```
|
||||
/mnt/hgfs/D/classification/share
|
||||
```
|
||||
|
||||
把这个虚拟机路径配置为1panel使用的web服务容器openresty的挂载卷,最后得到在openresty容器中的位置为:
|
||||
|
||||
```
|
||||
/www/res/public
|
||||
```
|
||||
|
||||
即:
|
||||
|
||||
```
|
||||
D:\classification\share (物理机)
|
||||
|
||||
====== >>>
|
||||
|
||||
/mnt/hgfs/D/classification/share (共享到虚拟机)
|
||||
|
||||
====== >>>
|
||||
|
||||
/www/res/public (挂载到容器内)
|
||||
```
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
7
docs/ops-doc/machine-info/_category_.json
Normal file
7
docs/ops-doc/machine-info/_category_.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"label": "机器信息",
|
||||
"position": 3,
|
||||
"link": {
|
||||
"type": "generated-index"
|
||||
}
|
||||
}
|
||||
48
docs/ops-doc/machine-info/gitea-Ubuntu-24.04.01.md
Normal file
48
docs/ops-doc/machine-info/gitea-Ubuntu-24.04.01.md
Normal file
@@ -0,0 +1,48 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
sidebar_label: 'Ubuntu虚拟机-gitea'
|
||||
title: 'Ubuntu虚拟机-gitea'
|
||||
---
|
||||
|
||||
## 概述
|
||||
|
||||
跑在[袁观杰的主机](./workstation-s14.md)上的虚拟机,操作系统是Ubuntu 24.04.01 LTS,
|
||||
|
||||
## 关键配置
|
||||
|
||||
IP:
|
||||
|
||||
```
|
||||
192.168.31.203
|
||||
```
|
||||
|
||||
用户名和密码:
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
root密码:
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
1Panel 入口和用户名密码:
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
48
docs/ops-doc/machine-info/server-Ubuntu-24.04.01.md
Normal file
48
docs/ops-doc/machine-info/server-Ubuntu-24.04.01.md
Normal file
@@ -0,0 +1,48 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
sidebar_label: 'Ubuntu虚拟机-服务器'
|
||||
title: 'Ubuntu虚拟机-服务器'
|
||||
---
|
||||
|
||||
## 概述
|
||||
|
||||
跑在[袁观杰的主机](./workstation-s14.md)上的虚拟机,操作系统是Ubuntu 24.04.01 LTS,
|
||||
|
||||
## 关键配置
|
||||
|
||||
IP:
|
||||
|
||||
```
|
||||
192.168.31.202
|
||||
```
|
||||
|
||||
用户名和密码:
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
root密码:
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
1Panel 入口和用户名密码:
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
```
|
||||
❔❔❔❔❔
|
||||
```
|
||||
|
||||
20
docs/ops-doc/machine-info/workstation-s14.md
Normal file
20
docs/ops-doc/machine-info/workstation-s14.md
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
sidebar_label: '袁观杰的主机'
|
||||
title: '袁观杰的主机'
|
||||
---
|
||||
|
||||
## 概述
|
||||
|
||||
为VMware虚拟机提供资源
|
||||
|
||||
## 配置
|
||||
|
||||
| 硬件 | 数据 |
|
||||
| ---- | ---------------------------- |
|
||||
| CPU | 11400 |
|
||||
| RAM | 32G DDR4 |
|
||||
| 硬盘 | 500G SSD + 12T HDD + 10T HDD |
|
||||
|
||||
IP :静态IP 192.168.31.200
|
||||
|
||||
Reference in New Issue
Block a user