首页
斐讯设备
疯言疯语
系统运维
编程语言
网站建设
友情连接
推荐
autojs
Search
1
charles破解注册码(含windows和mac)最新安装教程「亲测有效」
62 阅读
2
mac下的好用工具小身材大本领-NeatDownloadManager-ndm下载器
41 阅读
3
【N1和Armbian】一、N1刷Linux系统armbian
40 阅读
4
aris常用命令收集
37 阅读
5
docker更新现有容器为自动重启
35 阅读
登录
Search
标签搜索
JAVA
JAVA学习系列
docker
Linux
js
N1
git
模块二
模块一
端口
模块五
数据库
模块九
模块四
镜像
模块三
模块六
MySQL
百度网盘
nginx
DaiMaFengZi
累计撰写
596
篇文章
累计收到
11
条评论
首页
栏目
斐讯设备
疯言疯语
系统运维
编程语言
网站建设
页面
友情连接
推荐
autojs
搜索到
216
篇与
的结果
2023-08-28
如何拷贝Docker容器里的东西
前言近年来,Docker容器的使用越来越广泛,它可以将应用程序以容器的形式打包,方便移植到不同的环境中。但是在一些场景下,我们可能需要将Docker容器中的数据或者代码拷贝出来,本篇文章将介绍如何拷贝Docker容器里的东西。Docker容器中的数据和代码在一些场景下,我们需要将容器中的数据或者代码拷贝出来,以便备份、迁移、调试等各种需求。在Docker中,数据和代码主要存储在容器的文件系统中,不同的容器之间是相互隔离的,因此不能直接拷贝。需要通过一些命令将数据和代码拷贝到宿主机上,下面介绍两种常见的方式:利用docker cp命令拷贝数据docker cp命令可以将本地文件拷贝到容器里,同时也可以将容器里的文件拷贝到本地,下面是该命令的使用方法:docker cp <容器ID或名称>:<容器内路径> <宿主机路径>其中,<容器ID或名称>表示需要拷贝的容器的ID或名称,<容器内路径>表示需要拷贝的容器内的文件路径,<宿主机路径>表示需要将文件拷贝到的宿主机路径。例如,将容器nginx中的/etc/nginx/nginx.conf文件拷贝到宿主机的/opt目录下:docker cp nginx:/etc/nginx/nginx.conf /opt利用docker commit命令创建镜像利用docker commit命令可以将容器中的文件系统打包成一个新的镜像,具体使用方法如下:docker commit -m "commit message" <容器ID或者名称> <新的镜像名称>其中,-m选项表示本次commit操作的说明。<容器ID或者名称>表示需要打包成镜像的容器的ID或者名称,<新的镜像名称>表示生成的新的镜像名称。例如,将容器nginx中的文件系统打包成新的镜像:docker commit -m "backup nginx config" nginx nginx-config-backup总结拷贝Docker容器里的数据和代码是日常工作中常见的需求,本篇文章从两个方面介绍了如何实现:利用docker cp命令可以将容器中的文件拷贝到本机上,方便备份和调试。利用docker commit命令可以将容器中的文件系统打包成新的镜像,方便迁移和备份。以上两种方式都可以实现拷贝容器中的数据和代码的需求,具体可以根据实际情况选择合适的方式。
2023年08月28日
1 阅读
0 评论
0 点赞
2023-08-23
systemd服务
前言systemd 是一个系统和服务管理器,用于在 Linux 操作系统中启动、停止和管理系统进程和服务。它被广泛用于现代的 Linux 发行版中。以下是一些常用的 systemd 命令和示例:1.启动、停止或重启某个服务:启动服务:systemctl start 服务名 停止服务:systemctl stop 服务名 重启服务:systemctl restart 服务名例如,启动 Apache 服务:systemctl start apache22.查看服务状态:查看某个服务的状态:systemctl status 服务名 查看所有服务的状态:systemctl status例如,查看网络管理服务(NetworkManager)的状态:systemctl status NetworkManager3.设置服务开机自启动:开启服务自启动:systemctl enable 服务名 关闭服务自启动:systemctl disable 服务名例如,设置 Nginx 服务开机自启动:systemctl enable nginx4.查看服务的详细信息和配置:查看某个服务的所有信息:systemctl show 服务名 查看某个服务的具体配置文件路径:systemctl show -p FragmentPath 服务名例如,查看 MySQL 服务的详细信息:systemctl show mysql5.显示服务日志:显示某个服务的日志:journalctl -u 服务名 显示所有服务的日志:journalctl例如,显示 Syslog 服务的日志:journalctl -u syslog此外,systemd 的配置文件一般位于 /etc/systemd/ 目录下,可以根据需要修改相关配置。
2023年08月23日
1 阅读
0 评论
0 点赞
2023-08-18
Docker部署OneNav个人书签管理器,个人导航
一、OneNav介绍1.OneNav简介OneNav是一款使用PHP + SQLite 3开发的导航/书签管理器,支持Material Design风格,界面简洁,使用方便。2.OneNav特点支持后台管理支持私有链接支持多种主题风格(默认内置2套模板)支持链接信息自动识别支持API二、下载onenav镜像[root@jeven ~]# docker pull helloz/onenav:latest Using default tag: latest latest: Pulling from helloz/onenav 339de151aab4: Pull complete 4f4fb700ef54: Pull complete 64e2d91f6a6b: Pull complete aedf58cb2c7e: Pull complete 03e9996f76bb: Pull complete 16141d74ea3a: Pull complete Digest: sha256:da1030a7d0b01f3918f7806eef984f686d3578e4de34d592fb4f956341b6a741 Status: Downloaded newer image for helloz/onenav:latest docker.io/helloz/onenav:latest三、部署OneNav应用1.创建数据目录[root@jeven ~]# mkdir -p /data/onenav [root@jeven ~]# cd /data/onenav/ [root@jeven onenav]#2.创建OneNav容器[root@jeven onenav]# docker run -d --name="onenav" --restart always -p 8011:80 -e USER='admin' -e PASSWORD='admin' -v /data/onenav/data:/data/wwwroot/default/data helloz/onenav:0.9.29 8e43316064d1a938600f1309883fac6b2e63279c9d2fe90fe554eecfd9fda8273.查看OneNav容器状态[root@jeven onenav]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8e43316064d1 helloz/onenav "/usr/sbin/run.sh" 32 seconds ago Up 30 seconds 0.0.0.0:8011->80/tcp, :::8011->80/tcp onenav四、访问OneNav首页五、访问OneNav后台
2023年08月18日
2 阅读
0 评论
0 点赞
2023-08-15
MySQL、MariaDB字段批量更新:设置大于、小于、等于某个值自动更新
字段内容大于10的自动-1语法如下:update <数据表> set <字段名称>=<更新方法> where <匹配条件>;假设我的数据信息如下:名称内容数据表sum字段名称permit那么我的语句就是:update sum set permit=permit+1 where permit=10;其中:permit=10就是匹配条件,可以根据实际需求更改,例如:permit=5permit<8permit>10permit!=0更多需求就可以根据这个思路去扩展了实践结果大于10的自动+1举列:update POSTS set VISITS=floor(random()*9999) where VISITS<500;
2023年08月15日
8 阅读
0 评论
0 点赞
2023-08-10
Sideloadly安裝IPA文件-iOS免费签名教程
前言前不久为了安装一个只能自签使用的app,无奈下载了sideloadly,不要问为啥不用爱思或者牛蛙,问就是软件限制。安装软件顺便记录下,写个教程。01▎Sideloadly使用准备Windows或mac电脑02▎Sideloadly介绍使用免费或付费AppleID侧载APP的工具支持注入插件。支持 iOS 7 到 iOS 16.2+设备。支持覆盖安装。支持WiFi侧载安装。支持有2次验证的AppleID。03▎安装注意事项官网地址:https://sideloadly.io/开始使用手机连上电脑,或者与电脑连同一WIFI识别手机之后,输入AppleID拖入ipa文件点击start,弹出输入密码开始安装,如果是游戏的话,注入插件可以选择Advanced Options安装到手机上之后,选择打开会出现让信任开发者,在设置->通用->VPN与设备管理中,选择对应AppleID账号,进行信任。之后就能正常打开使用了。
2023年08月10日
5 阅读
0 评论
0 点赞
2023-08-08
windows配置多个NTP服务器地址
背景因业务需要,而原运维安装的win服务器各种奇葩问题。遂,有了此文章!实际操作打开cmd窗口(需以管理员身份运行)重启时间同步服务net stop w32time & net start w32time配置NTP地址池(可以是域名和IP)w32tm /config /update /manualpeerlist:"pool.ntp.org time.windows.com time.apple.com time.google.com"应用上面的配置,并查看当前状态w32tm /resync w32tm /query /peers
2023年08月08日
6 阅读
0 评论
0 点赞
2023-08-03
无界| BNCR | 无限的 Nodejs 聊天机器人的插件仓库
插件仓库无界| BNCR | 无限的 Nodejs 聊天机器人 sign接口插件 (https://raw.githubusercontent.com/RedLightsDistrict/Bncr_plugins/main/%E8%87%AA%E5%BB%BAsign.js)kr本和通用sign接口都为 http://无界ip:9090/api/jdsign 项目地址 (https://github.com/RedLightsDistrict/Bncr) 帮助 (https://anmours.github.io/Bncr/#/help/Q&A) 频道 (https://t.me/red_Lights_District) 无界官网 (https://anmours.github.io/Bncr/#/)插件仓库 红灯区插件 https://github.com/RedLightsDistrict/Bncr_plugins.git onz3vyyds https://github.com/Yuheng0101/Bncr_plugins 薛定谔的大灰机 https://github.com/BigPlanes/Bncr_plugins 小熊 https://github.com/hsl6476/Bncr_plugins Doraemon https://github.com/fjwpsyb/Bncr_plugin 烟雨 https://github.com/yanyuwangluo/Bncr_plugins 给我一颗麦丽素 https://github.com/dandanainiyo/bncr_plugins DusKing https://github.com/DusKing1/Bncr_plugin 陌 晓的spy配置: https://github.com/Aeorq/bncrspy Dswang : https://github.com/callacat/BncrJS_plugins 寒寒 :https://github.com/djun90/hh_bncr_plugins (巨量签到) 网友写的入门教程,仅供参考。https://flowus.cn/share/20e855c0-ca05-4cc4-8128-d3e9707069bbhttps://www.kejiwanjia.com/?post_type=post&p=125849&post_type=post&viewtoken=d8e743fe921e22744ec8e77cb6d3d326http://fdd666.cf/wjcj
2023年08月03日
8 阅读
0 评论
0 点赞
2023-08-02
qbittorrent搜索在线插件
https://raw.githubusercontent.com/khensolomon/leyts/master/yts.py https://raw.githubusercontent.com/solenskiner/search-plugins/master/nova3/engines/academictorrents.py https://raw.githubusercontent.com/hannsen/qbittorrent_search_plugins/master/ali213.py https://raw.githubusercontent.com/hannsen/qbittorrent_search_plugins/master/threedm.py https://raw.githubusercontent.com/lima66/Torrents_Plugin/master/btetree.py https://raw.githubusercontent.com/MaurizioRicci/qBittorrent_search_engine/master/cinecalidad.py https://raw.githubusercontent.com/davy39/qbfrench/master/cpasbien.py https://raw.githubusercontent.com/hannsen/qbittorrent_search_plugins/master/demonoid.py https://github.com/xyauhideto/DMHY_qBittorrent_search_plugin/raw/master/dmhyorg.py https://raw.githubusercontent.com/MaurizioRicci/qBittorrent_search_engine/master/ettv.py https://raw.githubusercontent.com/MaurizioRicci/qBittorrent_search_engine/master/extratorrent.py https://raw.githubusercontent.com/nindogo/qbtSearchScripts/master/idope.py https://raw.githubusercontent.com/MaurizioRicci/qBittorrent_search_engine/master/corsaroblu.py https://raw.githubusercontent.com/MaurizioRicci/qBittorrent_search_engine/master/corsaronero.py https://raw.githubusercontent.com/MaurizioRicci/qBittorrent_search_engine/master/kickass_torrent.py https://raw.githubusercontent.com/MadeOfMagicAndWires/qBit-plugins/6074a7cccb90dfd5c81b7eaddd3138adec7f3377/engines/linuxtracker.py https://raw.githubusercontent.com/nindogo/qbtSearchScripts/master/magnetdl.py https://raw.githubusercontent.com/MaurizioRicci/qBittorrent_search_engine/master/mejor.py https://raw.githubusercontent.com/nindogo/qbtSearchScripts/master/mkvcage.py https://raw.githubusercontent.com/4chenz/pantsu-plugin/master/pantsu.py https://raw.githubusercontent.com/MadeOfMagicAndWires/qBit-plugins/master/engines/nyaapantsu.py https://raw.githubusercontent.com/MadeOfMagicAndWires/qBit-plugins/master/engines/nyaasi.py https://raw.githubusercontent.com/Pireo/hello-world/master/rockbox.py https://raw.githubusercontent.com/Pireo/hello-world/master/rutor.py https://gist.githubusercontent.com/kernc/67c939c57edb7dd057b3abf9f159598a/raw/09c0099fc8cd8bd2326e5881a8f77c2dffb8e16b/skytorrents.py https://raw.githubusercontent.com/hannsen/qbittorrent_search_plugins/master/smallgames.py https://raw.githubusercontent.com/gitDew/qbittorrent-snowfl-search-plugin/master/snowfl.py https://raw.githubusercontent.com/MaurizioRicci/qBittorrent_search_engine/master/solotorrent.py https://raw.githubusercontent.com/phuongtailtranminh/qBittorrent-Nyaa-Search-Plugin/master/nyaa.py https://raw.githubusercontent.com/4chenz/pantsu-plugin/master/sukebei.py https://raw.githubusercontent.com/ngosang/qBittorrent-plugins/master/sumotorrent/sumotorrent.py https://raw.githubusercontent.com/ngosang/qBittorrent-plugins/master/tntvillage/tntvillage.py https://raw.githubusercontent.com/BrunoReX/qBittorrent-Search-Plugin-TokyoToshokan/master/tokyotoshokan.py https://raw.githubusercontent.com/CravateRouge/qBittorrentSearchPlugins/master/torrent9.py https://raw.githubusercontent.com/MaurizioRicci/qBittorrent_search_engine/master/torrentfunk.py https://raw.githubusercontent.com/nindogo/qbtSearchScripts/master/uniondht.py https://raw.githubusercontent.com/nindogo/qbtSearchScripts/master/yourbittorrent.py https://raw.githubusercontent.com/MadeOfMagicAndWires/qBit-plugins/master/engines/bakabt.py https://raw.githubusercontent.com/adrianmocan/qbittorrent_plugin_filelist.ro/master/filelist_ro/filelist.py https://raw.githubusercontent.com/hannsen/qbittorrent_search_plugins/master/jackett.py https://raw.githubusercontent.com/Skymirrh/qBittorrent-rutracker-plugin/master/rutracker.py https://raw.githubusercontent.com/alvin1979/qbrutracker/master/qbrutracker.py https://raw.githubusercontent.com/CravateRouge/qBittorrentSearchPlugins/master/yggtorrent.py
2023年08月02日
5 阅读
0 评论
0 点赞
1
...
19
20
21
...
27