首页
关于
壁纸
直播
留言
友链
统计
Search
1
《三国志英杰传》攻略
6,130 阅读
2
Emby客户端IOS破解
5,999 阅读
3
白嫖Emby
5,981 阅读
4
《吞食天地1》金手指代码
5,283 阅读
5
破解emby-server
4,243 阅读
moonjerx
game
age-of-empires
zx3
san-guo-zhi
尼尔:机械纪元
net
emby
learn-video
docker
torrent
photoshop
route
minio
git
ffmpeg
im
vue
gitlab
typecho
svn
alipay
nasm
srs
mail-server
tailscale
kkfileview
aria2
webdav
synology
redis
oray
chemical
mxsite
math
π
x-ui
digital-currency
server
nginx
baota
k8s
http
cloud
linux
shell
database
vpn
esxi
rancher
domain
k3s
ewomail
os
android
windows
ios
app-store
macos
develop
java
javascript
uniapp
nodejs
hbuildx
maven
android-studio
jetbrain
jenkins
css
mybatis
php
python
hardware
hard-disk
pc
RAM
software
pt
calibre
notion
office
language
literature
philosophy
travel
登录
Search
标签搜索
ubuntu
mysql
openwrt
zerotier
springboot
centos
openvpn
jdk
吞食天地2
synology
spring
idea
windows11
吞食天地1
transmission
google-play
Japanese
xcode
群晖
kiftd
MoonjerX
累计撰写
375
篇文章
累计收到
464
条评论
首页
栏目
moonjerx
game
age-of-empires
zx3
san-guo-zhi
尼尔:机械纪元
net
emby
learn-video
docker
torrent
photoshop
route
minio
git
ffmpeg
im
vue
gitlab
typecho
svn
alipay
nasm
srs
mail-server
tailscale
kkfileview
aria2
webdav
synology
redis
oray
chemical
mxsite
math
π
x-ui
digital-currency
server
nginx
baota
k8s
http
cloud
linux
shell
database
vpn
esxi
rancher
domain
k3s
ewomail
os
android
windows
ios
app-store
macos
develop
java
javascript
uniapp
nodejs
hbuildx
maven
android-studio
jetbrain
jenkins
css
mybatis
php
python
hardware
hard-disk
pc
RAM
software
pt
calibre
notion
office
language
literature
philosophy
travel
页面
关于
壁纸
直播
留言
友链
统计
搜索到
125
篇与
server
的结果
2022-07-12
ubuntu安装、使用docker方法
一、安装1、查看内核uname -r2、更新包sudo apt-get update3、没有docker旧版本,忽略这一步。如果有则需要卸载旧的版本,主要为了防止新旧版本冲突sudo apt-get remove docker docker-engine docker.io containerd runc4、为了防止 apt 源使用 HTTPS 以确保软件下载过程中不被篡改。我们需要添加使用 HTTPS 传输的软件包及 CA 证书sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release5、确认下载软件包的合法性,需要添加软件源的 GPG 密钥,但因网络问题设置docker源改为国内源(阿里)curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg或curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -6、向 source.list 中添加 Docker CE 软件源sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"或使用https://mirrors.ustc.edu.cn源(失效)sudo add-apt-repository "deb [arch=armhf] https://mirrors.ustc.edu.cn/docker-ce/linux/raspbian $(lsb_release -cs) stable"7、安装sudo apt-get -y install docker.io或sudo apt-get install docker-ce docker-ce-cli containerd.io启动dockersudo systemctl start dockerdocker换源修改 /etc/docker/daemon.json (如果该文件不存在,则创建){ "registry-mirrors": [ "https://hub-mirror.c.163.com" ] }sudo systemctl daemon-reload && sudo systemctl restart docker添加用户到docker用户组
2022年07月12日
238 阅读
0 评论
0 点赞
2022-07-12
shell命令:判断文件或目录是否存在
一、文件比较符-e filename 如果 filename 存在,则为真-d filename 如果 filename 为目录,则为真-f filename 如果 filename 为常规文件,则为真-L filename 如果 filename 为符号链接,则为真-r filename 如果 filename 可读,则为真-w filename 如果 filename 可写,则为真-x filename 如果 filename 可执行,则为真 -s filename 如果 文件长度不为0,则为真 -h filename 如果 文件是软链接,则为真-O filename 如果 filename 存在,并且属于当前用户,则为真-G filename 如果 filename 存在,并且属于当前用户组,则为真-nt 判断file1是否比file2新 ["/data/file1" -nt"/data/file2" ]-ot 判断file1是否比file2旧 ["/data/file1" -ot"/data/file2" ]二、常用例子1,文件夹不存在则创建if [ ! -d "/data/" ]; then mkdir /data else echo "文件夹已经存在" fi2,文件存在则删除if [ ! -f "/data/filename" ]; then echo "文件不存在" else rm -f /data/filename fi3,判断文件是否存在,不存在则创建if [ ! -f "$file" ]; then touch "$file" fi4,文件夹是否存在if [ -d "/data/" ]; then echo "文件夹存在" else echo "文件夹不存在" fi
2022年07月12日
97 阅读
0 评论
0 点赞
2022-07-07
kubernates学习
暂无简介
2022年07月07日
79 阅读
0 评论
0 点赞
2022-07-06
zerotier异地组网,内网ip互ping
添加本地接口接口信息创建并分配新的防火墙区域进入防火墙基本设置编辑基本规则修改zerotier转发规则最终修改结果修改IPTABLESiptables -I FORWARD -i zt2lrwm2qj -j ACCEPT iptables -I FORWARD -o zt2lrwm2qj -j ACCEPT iptables -t nat -I POSTROUTING -o zt2lrwm2qj -j MASQUERADE
2022年07月06日
265 阅读
0 评论
0 点赞
2022-06-30
GL·MT1300安装zerotier
一、更新和安装插件包opkg update && opkg install zerotier二、安装可视化插件包根据设备cpu架构类型选择对应的可视化插件包: 下载地址这里以 GL MT1300 cpu架构 MIPS 为例:下载此文件 找到对应ipk包后,也可以直接用下载文件命令下载wget https://op.supes.top/packages/mipsel_24kc/luci-app-zerotier_git-22.156.35826-edd126a_all.ipk && opkg install *.ipk三、加入网络和MOON1.加入网络zerotier-cli join 6ab565XXXXXXXXXX报错:zerotier-cli: missing port and zerotier-one.port not found in /var/lib/zerotier-one执行以下命令后会在目录 /var/lib/zerotier-one 下生成对应文件zerotier-one -d稍等之后重新加入网络即可2.查看并加入自建的moon服务器节点zerotier-cli orbit 6ab565XXXX 6ab565XXXX显示 200 orbit OK 则加入成功3.重启路由后zerotier失效问题{alert type="info"} MOON又称为自定义根服务器,通过自定义的服务器作为跳板加速内网机器之间的互相访问。我的LEDE版本是2.32,有固定公网IP,为了提高ZeroTier在不同子网之间互访的速度,建立MOON节点就非常有必要。在启用ZeroTier后,我发现ZeroTier安装目录 /var/lib/zerotier-one (这个目录实际链接到 /var/lib/zerotier-one_sample_config )是临时目录 ,在 重启后就自动删除 ,必须修改配置文件,才能保留MOON的配置。{/alert}(1)修改配置文件 /etc/config/zerotier ,加入下面一行选项:option config_path '/etc/zerotier'option enabled 0 改为 option enabled 1config zerotier 'sample_config' option enabled '1' #option port '9993' # Join a public network called Earth list join '6ab565XXXXXXXXXX' option nat '1' # Generate secret on first start option secret 'generate' # persistent configuration folder (for ZT controller mode) # 配置文件路径,启动后会在这个指定路径生成配置文件 option config_path '/etc/zerotier' 启动zerotier/etc/init.d/zerotier start(2)生成moon.json文件zerotier-idtool generate identity.secret identity.public && zerotier-idtool initmoon identity.public >>moon.json(3)修改moon.json文件 stableEndpoints stableEndpoints 为 IP/PORT 结构,端口号(默认9993)为moon服务实际端口号{ "id": "1bf1ab4257", "objtype": "world", "roots": [ { "identity": "4f1a21bb57:0:f4e92d2ec3b3db486fd9b3d1d1d4fe75d3b34908abfed746d2ae2d47874abb54e39fdaa03913ae45ad73d393f4b649cfad3639149b41720714aac79e11b8c425", "stableEndpoints": [ "120.120.120.175/9995" ] } ], "signingKey": "7165a5a68ec892f9f1b48bd804b6f188145c81d9f0afc84ffc6f05c06f235d57c87f6df0d7e21665f186e2bd273d76ae00b7eb2e400e9ebb567c6ec0c948dec8", "signingKey_SECRET": "653caf87483f7da078fc1ae3a69c8677f05c547d587bd39ebd3ddba1ea68aef5b6acad157d35e0586f5ff9f7c03e50bd434236e9f00dd57e35c8fffca939d404", "updatesMustBeSignedBy": "7165aec892f9f1b48bd804b6f188145c81d9f0afc84ffc6f05c06f235d57c87f6df0d7e21665f186e2bd273d5a680b7eb2e40076ae0e9ebb567c6ec0c948dec8", "worldType": "moon" }(4)生成签名文件zerotier-idtool genmoon moon.json在当前目录下生成签名文件 00000005ff20a0f6.moon (5)将MOON节点加入网络在 /etc/zerotier 目录建立 moons.d 子目录,将生成的 00000005ff20a0f6.moon 复制到该文件夹中,并重启设备。(6)测试验证查看是否在MOON下运行,执行以下命令:zerotier-cli listpeersPLANET :行星服务器,Zerotier 各地的根服务器,有日本、新加坡等地MOON :卫星级服务器,用户自建的私有根服务器,起到中转加速的作用LEAF :相当于各个枝叶,就是每台连接到该网络的机器节点如果某一行显示有MOON字样,就证明MOON已被本机标识了。#zt5lnhygsv iptables -I FORWARD -i zt5lnhygsv -j ACCEPT iptables -I FORWARD -o zt5lnhygsv -j ACCEPT iptables -t nat -I POSTROUTING -o zt5lnhygsv -j MASQUERADE
2022年06月30日
704 阅读
0 评论
0 点赞
1
...
7
8
9
...
25
您的IP: