2023-06-29 11:55:02 +08:00
|
|
|
|
## 光猫
|
|
|
|
|
057152243127
|
|
|
|
|
550743
|
|
|
|
|
|
|
|
|
|
telecomadmin
|
|
|
|
|
15675507
|
|
|
|
|
|
2023-07-25 13:29:27 +08:00
|
|
|
|
|
|
|
|
|
## 游影服务器账号密码
|
|
|
|
|
- 192.168.100.11 (远程桌面)
|
|
|
|
|
- unworld_server
|
|
|
|
|
- unworld123
|
|
|
|
|
- 192.168.100.2 (SSH)
|
|
|
|
|
- root
|
|
|
|
|
- unworld2020
|
|
|
|
|
|
|
|
|
|
[http://svn.uplusplus.net:7000/](http://svn.uplusplus.net:7000/)
|
|
|
|
|
GO-REST-WOL
|
|
|
|
|
|
2023-06-29 11:55:02 +08:00
|
|
|
|
## 路由器
|
|
|
|
|
|
|
|
|
|
## Netgear
|
|
|
|
|
- admin
|
|
|
|
|
- dawa
|
|
|
|
|
- 上网dawa2022
|
|
|
|
|
|
|
|
|
|
## FreeNAS账号密码
|
|
|
|
|
- root
|
|
|
|
|
- dawa
|
|
|
|
|
|
|
|
|
|
## 服务
|
|
|
|
|
- SVN
|
|
|
|
|
- http://192.168.0.236:7777/svnadmin
|
|
|
|
|
- http://192.168.0.236:7777/svn/DAWA_SVN
|
|
|
|
|
- portainer:http://192.168.0.236:9000
|
|
|
|
|
|
|
|
|
|
## FreeNAS搭建服务流程
|
|
|
|
|
玩转Freenas系统06——freenas下使用docker(配置RancherOS/Portainer) :https://www.bilibili.com/video/av77422499/?vd_source=d47c0bb42f9c72fd7d74562185cee290
|
|
|
|
|
|
|
|
|
|
Docker虚拟机账号:Rancher
|
|
|
|
|
密码:Docker
|
|
|
|
|
Root模式:`sudo -i`
|
|
|
|
|
|
|
|
|
|
### 固定IP命令
|
|
|
|
|
bxe1为网卡口。所以创建虚拟机的时候需要设置成bxe1。之后在虚拟机里固定IP还是看虚拟机的局域网IP接口是啥:
|
|
|
|
|
```c++
|
|
|
|
|
sudo ros config set rancher.network.interfaces.eth0.address 192.168.0.236/24
|
|
|
|
|
sudo ros config set rancher.network.interfaces.eth0.gateway 192.168.0.252
|
|
|
|
|
sudo ros config set rancher.network.interfaces.eth0.mtu 1500
|
|
|
|
|
sudo ros config set rancher.network.interfaces.eth0.dhcp false
|
|
|
|
|
sudo ros config set rancher.network.interfaces.dns.nameservers "['192.168.0.252']"
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 挂载宿主NFS共享文件夹
|
|
|
|
|
在FreeNAS里开启服务`NFS`。进入目录
|
|
|
|
|
```bash
|
|
|
|
|
cd /var/lib/rancher/conf/cloud-config.d
|
|
|
|
|
```
|
|
|
|
|
下载脚本
|
|
|
|
|
```bash
|
|
|
|
|
wget https://gist.githubusercontent.com/superseb/15aada95f6f2fbacc1af7a442c767cce/raw/158c8d0161ec6416aa558d3dad4d1e2afb026d89/cloud-config.yml
|
|
|
|
|
```
|
|
|
|
|
脚本如下:
|
|
|
|
|
```yml
|
|
|
|
|
#cloud-config
|
|
|
|
|
write_files:
|
|
|
|
|
- path: /etc/rc.local
|
|
|
|
|
permissions: "0755"
|
|
|
|
|
owner: root
|
|
|
|
|
content: |
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
mkdir -p /mnt/nfs-1
|
|
|
|
|
mkdir -p /mnt/nfs-2
|
|
|
|
|
cloud-init-execute
|
|
|
|
|
rancher:
|
|
|
|
|
services:
|
|
|
|
|
nfs:
|
|
|
|
|
image: d3fk/nfs-client
|
|
|
|
|
labels:
|
|
|
|
|
io.rancher.os.after: console, preload-user-images
|
|
|
|
|
io.rancher.os.scope: system
|
|
|
|
|
net: host
|
|
|
|
|
privileged: true
|
|
|
|
|
tty: true
|
|
|
|
|
restart: always
|
|
|
|
|
volumes:
|
|
|
|
|
- /usr/bin/iptables:/sbin/iptables:ro
|
|
|
|
|
mounts:
|
|
|
|
|
- ["nfs_server_ip:/", "/mnt/nfs-1", "nfs4", ""]
|
|
|
|
|
- ["nfs_server_ip:/", "/mnt/nfs-2", "nfs4", ""]
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
将`- ["nfs_server_ip:/", "/mnt/nfs-1", "nfs4", ""] `修改成NAS服务器ip,后面加上NFS共享目录路径:
|
|
|
|
|
```yml
|
|
|
|
|
- ["192.168.0.235:/mnt/zpool_main/DockerHost", "/mnt/nfs-1", "nfs4", ""]
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 服务部署
|
|
|
|
|
### portainer
|
|
|
|
|
```bash
|
|
|
|
|
cd /mnt/nfs-1
|
|
|
|
|
mkdir -vp portainer
|
|
|
|
|
```
|
|
|
|
|
```bash
|
|
|
|
|
docker run -d -p 9000:9000 \
|
|
|
|
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
|
|
|
|
-v /mnt/nfs-1/portainer:/data \
|
|
|
|
|
--restart always --name portainer portainer/portainer
|
|
|
|
|
```
|
|
|
|
|
### SVN
|
|
|
|
|
```c++
|
|
|
|
|
cd /mnt/nfs-1
|
|
|
|
|
mkdir -vp svn
|
|
|
|
|
chmod -R 777 /mnt/nfs-1/svn
|
|
|
|
|
```
|
|
|
|
|
```bash
|
|
|
|
|
docker run -d --name svn-server --restart=always \
|
|
|
|
|
-v /mnt/nfs-1/svn:/home/svn \
|
|
|
|
|
-p 7777:80 \
|
|
|
|
|
-p 3690:3690 \
|
|
|
|
|
elleflorio/svn-server
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
![[NAS与服务部署#SVN]]
|
|
|
|
|
|
|
|
|
|
## cloudreve
|
|
|
|
|
```c++
|
|
|
|
|
cd /mnt/zpool_main/DockerHost/cloudreve/
|
|
|
|
|
mkdir -vp {uploads,avatar} \
|
|
|
|
|
&& touch conf.ini \
|
|
|
|
|
&& touch cloudreve.db
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```c++
|
|
|
|
|
docker run -d --restart=always \
|
|
|
|
|
-p 5212:5212 \
|
|
|
|
|
--mount type=bind,source=/mnt/nfs-1/cloudreve/conf.ini,target=/cloudreve/conf.ini \
|
|
|
|
|
--mount type=bind,source=/mnt/nfs-1/cloudreve/cloudreve.db,target=/cloudreve/cloudreve.db \
|
|
|
|
|
-v /mnt/nfs-1/cloudreve/uploads:/cloudreve/uploads \
|
|
|
|
|
-v /mnt/nfs-1/cloudreve/avatar:/cloudreve/avatar \
|
|
|
|
|
cloudreve/cloudreve:latest
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 北京p4v密码
|
|
|
|
|
- bluerose
|
|
|
|
|
- 123456
|