📃 docs: 初步完善
This commit is contained in:
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 (挂载到容器内)
|
||||
```
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
Reference in New Issue
Block a user