首页
关于
壁纸
直播
留言
友链
统计
Search
1
《吞食天地1》金手指代码
8,248 阅读
2
白嫖Emby
7,101 阅读
3
Emby客户端IOS破解
7,075 阅读
4
《三国志英杰传》攻略
6,825 阅读
5
破解emby-server
4,616 阅读
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
累计撰写
384
篇文章
累计收到
466
条评论
首页
栏目
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
页面
关于
壁纸
直播
留言
友链
统计
搜索到
54
篇与
moonjerx
的结果
2024-08-01
忘记青龙面板密码的解决方法
如果您忘记了青龙面板的密码,不用担心,本文将向您介绍几种解决方法,帮助您找回或重置密码。通过SSH登录服务器或主机使用docker exec命令进入青龙面板容器使用docker exec命令可以进入青龙面板的Docker容器内部。docker exec -it qinglong bash注意:这里的qinglong是青龙面板容器的名字,如果在容器中查询不到,请确认青龙面板容器的实际名字。查看账号和密码一旦进入了容器内部,可以使用cat命令查看青龙面板的账号和密码。cat /ql/data/config/auth.json这个文件包含了青龙面板的登录信息。通过命令查看账号密码使用宝塔面板查看如果您能够登录到宝塔面板,可以通过宝塔面板的文件管理功能找到对应的账号密码文件,通常位于/www/server/panel/data/*.login。使用Python脚本查看另外,您还可以通过执行以下命令在SSH终端中查看宝塔面板的账户和密码。cd /www/server/panel python tools.py panel testpasswd通过修改配置文件来重置密码如果上述方法都无法使用,还可以考虑通过数据库工具或直接修改配置文件来重置密码。在操作之前,请务必先备份您的数据,以防意外情况发生。通过数据库重置如果青龙面板的密码存储在数据库中,您可以使用数据库管理工具(如phpMyAdmin或MySQL Workbench)来直接修改密码字段。直接修改配置文件如果密码存储在某个配置文件中,可以直接编辑该文件来重置密码。nano /ql/data/config/auth.json修改文件中的密码字段,保存并退出。总结以上方法提供了不同的途径来解决忘记青龙面板密码的问题。根据您的具体情况选择最合适的方法进行操作。同时,为了避免类似问题的再次发生,建议定期备份重要数据,并记录好自己的账号密码信息。注意事项在执行任何敏感操作之前,请确保您有足够的权限。在尝试重置密码之前,请先备份相关数据。如果您不确定如何操作,请寻求专业人士的帮助。
2024年08月01日
3,037 阅读
1 评论
1 点赞
2024-01-07
podman推送报错http: server gave HTTP response to HTTPS client
如果你使用的是 v1 格式的配置,将文件中的所有内容替换为以下内容:[registries.search] registries = ['docker.io'] [registries.insecure] registries = ['127.0.0.1:30026']如果你使用的是 v2 格式的配置,将文件中的所有内容替换为以下内容:[registries.search] registries = ['docker.io'] [[registry]] prefix = "docker.io" location = "docker.io" [[registry]] prefix = "127.0.0.1:30026" location = "127.0.0.1:30026" insecure = true
2024年01月07日
152 阅读
0 评论
0 点赞
2023-11-30
idea集成docker
修改docker.servicevim /usr/lib/systemd/system/docker.service修改ExecStart这一行,开启2375端口远程访问[Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.com After=network-online.target docker.socket firewalld.service containerd.service time-set.target Wants=network-online.target containerd.service Requires=docker.socket [Service] Type=notify # the default is not to use systemd for cgroups because the delegate issues still # exists and systemd currently does not support the cgroup feature set required # for containers run by docker #ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock ExecReload=/bin/kill -s HUP $MAINPID TimeoutStartSec=0 RestartSec=2 Restart=always # Note that StartLimit* options were moved from "Service" to "Unit" in systemd 229. # Both the old, and new location are accepted by systemd 229 and up, so using the old location # to make them work for either version of systemd. StartLimitBurst=3 # Note that StartLimitInterval was renamed to StartLimitIntervalSec in systemd 230. # Both the old, and new name are accepted by systemd 230 and up, so using the old name to make # this option work for either version of systemd. StartLimitInterval=60s # Having non-zero Limit*s causes performance problems due to accounting overhead # in the kernel. We recommend using cgroups to do container-local accounting. LimitNOFILE=infinity LimitNPROC=infinity LimitCORE=infinity # Comment TasksMax if your systemd version does not support it. # Only systemd 226 and above support this option. TasksMax=infinity # set delegate yes so that systemd does not reset the cgroups of docker containers Delegate=yes # kill only the docker process, not all processes in the cgroup KillMode=process OOMScoreAdjust=-500 [Install] WantedBy=multi-user.target说明: Intelli] IDEA通过2375端口远程连接到Linux系统中的Docker.重载配置并重启docker服务systemctl daemon-reload && systemctl restart docker3、开放端口firewall -cmd --zone=public --add-port=2375/tcp --permanent && firewall -cmd --reload测试接口curl http://192.168.3.100:2375/version看到类似如下内容[WARNING] No entry found in settings.xml for serverId=docker-mx, cannot configure authentication for that registry出现这个警告是因为settings.xml文件没有配置镜像仓库登录账号密码信息 <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <version>1.2.2</version> <executions> <execution> <id>build-image</id> <phase>package</phase> <goals> <goal>build</goal> </goals> </execution> <!-- <execution>--> <!-- <id>tag-image</id>--> <!-- <phase>package</phase>--> <!-- <goals>--> <!-- <goal>tag</goal>--> <!-- </goals>--> <!-- <configuration>--> <!-- <image>${project.name}</image>--> <!-- <newName>1${project.name}</newName>--> <!-- </configuration>--> <!-- </execution>--> <execution> <id>push-image</id> <phase>deploy</phase> <goals> <goal>push</goal> </goals> <configuration> <imageName>${project.name}</imageName> <imageTags> <imageTag>v${project.version}</imageTag> </imageTags> </configuration> </execution> </executions> <configuration> <!--docker api地址,构建镜像是通过api调用在192.168.245.133上构建,并推送到registryUrl上--> <dockerHost>${docker.remote.host}</dockerHost> <buildArgs> <appName>${project.build.finalName}</appName> </buildArgs> <serverId>docker-mx</serverId> <!--私有仓库地址--> <registryUrl>${docker.registry.url}</registryUrl> <!--镜像名称,必须带仓库地址,否则只会push到docker.io--> <imageName>${docker.registry.url}/${project.name}:v${project.version}</imageName> <imageTags> <imageTag>v${project.version}</imageTag> </imageTags> <!-- 指定dockerfile所在目录 --> <!--<dockerDirectory>${project.build.directory}</dockerDirectory>--> <!--<dockerDirectory>src/main/docker</dockerDirectory>--> <!-- All resources will be copied to this directory before building the image. --> <!--<buildDirectory>${project.basedir}</buildDirectory>--> <!--是否推送镜像--> <!--<pushImage>true</pushImage>--> <!--推送后是否覆盖已存在的标签镜像--> <forceTags>true</forceTags> <!--资源,类似Dockerfile里的 ADD --> <resources> <resource> <!--在生成的docker目录下,新建目录--> <targetPath>/</targetPath> <!--docker-build时生成docker目录位置--> <directory>${project.build.directory}</directory> <!-- <directory>${project.build.directory}</directory>--> <include>${project.build.finalName}.jar</include> <filtering>true</filtering> </resource> </resources> <!--基础镜像--> <baseImage>openjdk:8-jdk-alpine</baseImage> <runs> <run>echo "App is: ${project.name}"</run> <!--<run>mkdir /app</run>--> </runs> <workdir>/app</workdir> <exposes>${profiles.port}</exposes> <!--启动容器里执行的命令:注意这里的格式,格式不对,会运行不成功的--> <!--<entryPoint>["java", "-version"]</entryPoint>--> <entryPoint>["java", "-jar","/${project.build.finalName}.jar"]</entryPoint> </configuration> </plugin>控制台提示报错[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.2.2:build (default-cli) on project mxhello: Exception caught: java.io.IOException: Cannot run program "docker-credential-desktop": error=2, No such file or directory -> [Help 1]将 credsStore 改成 credStore ,但是别重启本地docker,否则这一项配置会被清除
2023年11月30日
179 阅读
0 评论
0 点赞
2023-11-24
ubuntu禁用休眠、挂起、休眠和混合休眠功能。
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
2023年11月24日
175 阅读
0 评论
0 点赞
2023-11-18
docker版gitlab迁移服务器
一、创建备份docker exec gitlab gitlab-rake gitlab:backup:create二、迁移备份wget -O 1700569074_2023_11_21_15.1.1_gitlab_backup.tar http://192.168.31.247/down/H1zhXWIynpLp三、导入备份进入备份目录后执行导入命令gitlab-rake gitlab:backup:restore BACKUP=1700569074_2023_11_21_15.1.1警告提示# gitlab-rake gitlab:backup:restore BACKUP=1700569074_2023_11_21_15.1.1 2023-11-21 12:30:38 +0000 -- Unpacking backup ... 2023-11-21 12:30:39 +0000 -- Unpacking backup ... done 2023-11-21 12:30:39 +0000 -- Restoring database ... 2023-11-21 12:30:39 +0000 -- Be sure to stop Puma, Sidekiq, and any other process that connects to the database before proceeding. For Omnibus installs, see the following link for more information: https://docs.gitlab.com/ee/raketasks/backup_restore.html#restore-for-omnibus-gitlab-installations Before restoring the database, we will remove all existing tables to avoid future upgrade problems. Be aware that if you have custom tables in the GitLab database these tables and all data will be removed. Do you want to continue (yes/no)?输入 yesRemoving all tables. Press `Ctrl-C` within 5 seconds to abort 2023-11-17 16:37:07 UTC -- Cleaning the database ... 正常执行导入后,控制台输出如下:2023-11-21 12:55:32 +0000 -- Restoring repositories ... done 2023-11-21 12:55:32 +0000 -- Restoring uploads ... 2023-11-21 12:55:32 +0000 -- Restoring uploads ... done 2023-11-21 12:55:32 +0000 -- Restoring builds ... 2023-11-21 12:55:32 +0000 -- Restoring builds ... done 2023-11-21 12:55:32 +0000 -- Restoring artifacts ... 2023-11-21 12:55:33 +0000 -- Restoring artifacts ... done 2023-11-21 12:55:33 +0000 -- Restoring pages ... 2023-11-21 12:55:33 +0000 -- Restoring pages ... done 2023-11-21 12:55:33 +0000 -- Restoring lfs objects ... 2023-11-21 12:55:33 +0000 -- Restoring lfs objects ... done 2023-11-21 12:55:33 +0000 -- Restoring terraform states ... 2023-11-21 12:55:33 +0000 -- Restoring terraform states ... done 2023-11-21 12:55:33 +0000 -- Restoring packages ... 2023-11-21 12:55:33 +0000 -- Restoring packages ... done This task will now rebuild the authorized_keys file. You will lose any data stored in the authorized_keys file. Do you want to continue (yes/no)? yes 2023-11-21 12:55:49 +0000 -- Deleting tar staging files ... 2023-11-21 12:55:49 +0000 -- Cleaning up /var/opt/gitlab/backups/backup_information.yml 2023-11-21 12:55:49 +0000 -- Cleaning up /var/opt/gitlab/backups/db 2023-11-21 12:55:49 +0000 -- Cleaning up /var/opt/gitlab/backups/repositories 2023-11-21 12:55:49 +0000 -- Cleaning up /var/opt/gitlab/backups/uploads.tar.gz 2023-11-21 12:55:49 +0000 -- Cleaning up /var/opt/gitlab/backups/builds.tar.gz 2023-11-21 12:55:49 +0000 -- Cleaning up /var/opt/gitlab/backups/artifacts.tar.gz 2023-11-21 12:55:49 +0000 -- Cleaning up /var/opt/gitlab/backups/pages.tar.gz 2023-11-21 12:55:49 +0000 -- Cleaning up /var/opt/gitlab/backups/lfs.tar.gz 2023-11-21 12:55:49 +0000 -- Cleaning up /var/opt/gitlab/backups/terraform_state.tar.gz 2023-11-21 12:55:49 +0000 -- Cleaning up /var/opt/gitlab/backups/packages.tar.gz 2023-11-21 12:55:49 +0000 -- Deleting tar staging files ... done 2023-11-21 12:55:49 +0000 -- Deleting backups/tmp ... 2023-11-21 12:55:49 +0000 -- Deleting backups/tmp ... done 2023-11-21 12:55:49 +0000 -- Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data and are not included in this backup. You will need to restore these files manually. 2023-11-21 12:55:49 +0000 -- Restore task is done.输出内容提到 gitlab.rb 和 gitlab-secrets.json 文件要手动还原报错:Restoring PostgreSQL database gitlabhq_production ... ERROR: must be owner of extension pg_trgm ERROR: must be owner of extension btree_gist ERROR: must be owner of extension btree_gist ERROR: must be owner of extension pg_trgm解决方法:修改postgresql配置$ vim /var/opt/gitlab/postgresql/data/postgresql.conf listen_addresses = '*' # 最下面新增两行 $ vim /var/opt/gitlab/postgresql/data/pg_hba.conf local all all trust host all all 127.0.0.1/32 trust重启gitlab服务$ gitlab-ctl restart ok: run: logrotate: (pid 29367) 1s ok: run: nginx: (pid 29371) 0s ok: run: postgresql: (pid 29389) 0s ok: run: redis: (pid 29391) 0s ok: run: sidekiq: (pid 29404) 0s ok: run: unicorn: (pid 29413) 0s修改gitlab账号为超级用户切换到gitlab-psql用户su - gitlab-psql进入到生产数据库postgresql/opt/gitlab/embedded/bin/psql -h 127.0.0.1 gitlabhq_production给数据库用户gitlab赋予超级权限ALTER USER gitlab WITH SUPERUSER;退出数据库\q操作控制台输出如下$ su - gitlab-psql $ /opt/gitlab/embedded/bin/psql -h 127.0.0.1 gitlabhq_production psql (9.2.8) Type "help" for help. gitlabhq_production=# ALTER USER gitlab WITH SUPERUSER; ALTER ROLE gitlabhq_production=# \q四、重启服务admin@DESKTOP-JQNAP:~/dockerfile$ docker exec gitlab gitlab-rake gitlab:env:info System information System: Current User: git Using RVM: no Ruby Version: 2.7.5p203 Gem Version: 3.1.4 Bundler Version:2.3.15 Rake Version: 13.0.6 Redis Version: 6.2.7 Sidekiq Version:6.4.0 Go Version: unknown GitLab information Version: 15.1.1 Revision: 35925db62b6 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 13.6 URL: http://10.10.12.235:30002 HTTP Clone URL: http://10.10.12.235:30002/some-group/some-project.git SSH Clone URL: ssh://git@10.10.12.235:30003/some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 14.7.4 Repository storage paths: - default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
2023年11月18日
160 阅读
0 评论
0 点赞
1
...
4
5
6
...
11
您的IP: