首页
关于
壁纸
直播
留言
友链
统计
Search
1
《三国志英杰传》攻略
6,136 阅读
2
Emby客户端IOS破解
6,001 阅读
3
白嫖Emby
5,983 阅读
4
《吞食天地1》金手指代码
5,313 阅读
5
破解emby-server
4,258 阅读
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
累计撰写
377
篇文章
累计收到
465
条评论
首页
栏目
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
页面
关于
壁纸
直播
留言
友链
统计
搜索到
377
篇与
moonjerx
的结果
2023-11-20
macos移除下载镜像quarantine属性
一、什么是Quarantine属性? Quarantine属性通常用于描述计算机系统或网络安全领域中的安全特性,其指的是对于具有潜在威胁的文件、程序或数据进行隔离和限制访问的一种机制。当一个文件或程序被识别为可能包含恶意代码、病毒、蠕虫等安全威胁时,系统可以将其放置在隔离区域中,以防止其进一步感染系统或网络。这个隔离区域就被称为"quarantine",隔离期间,该文件或程序不允许执行或访问系统资源,直到被确定为安全或永久删除。Quarantine属性可以在许多安全软件或操作系统中找到,例如防病毒软件、防火墙、操作系统的安全设置等。通过使用Quarantine属性,用户可以更好地保护他们的计算机和网络不受安全威胁的侵害。 苹果系统有一个GateKeeper保护机制(自 OSX 10.5 加入)。从互联网上下载来的文件,会被自动打上com.apple.quarantine标志,翻译过来就是免疫隔离,系统根据这个附加属性对这个文件作出限制。在安装软件的时候需要移除quarantine属性,二、解除Quarantine属性打开实用工具里的【终端】并输入下面的命令:sudo xattr -r -d com.apple.quarantine然后把下载的镜像文件拖拽到终端里就会出现文件路径如下admin@supermac ~ % sudo xattr -r -d com.apple.quarantine /Users/admin/Downloads/Adobe_Photoshop_2021_22.4.2.242_ACR13.3_SP_20210617.dmg回车即可解除该属性
2023年11月20日
75 阅读
0 评论
0 点赞
2023-11-20
gitlab忘记密码
一、背景由于公司在公司内部服务新装一台Gitlab服务器,长期未登录导致密码忘记。二、邮箱方式找回1.在gitlab登录窗口如果密码忘记了登录不进入,可以先尝试点击登录框下方的Forgot your password来通过邮箱的方式找回,如果邮箱不可以使用了,则看下面的强制找回方法.2.输入邮箱账号找回输入当初设置的邮箱帐号,这一步前提是邮箱可以正常使用的情况下才可以使用的方法3.重设密码输入正确的邮箱后,点击邮箱会受到一封重设密码邮件,点击Reset password进入浏览器重新输入新密码确定重新登录即可。三、Bash命令方式找回1.切换到git用户[root@staging ~]# su git2.查看gitlab命令文件sh-4.2$ ls alertmanager gitaly gitlab-exporter gitlab-workhorse nginx postgresql redis backups git-data gitlab-rails grafana node-exporter prometheus trusted-certs-directory-hash bootstrapped gitlab-ci gitlab-shell logrotate postgres-exporter public_attributes.json3.进入gitlab控制台sh-4.2$ gitlab-rails console -------------------------------------------------------------------------------- GitLab: 13.0.3 (e2397fc2acb) FOSS GitLab Shell: 13.2.0 PostgreSQL: 11.7 -------------------------------------------------------------------------------- Loading production environment (Rails 6.0.3)4.查询gitlab超级管理员信息irb(main):001:0> user = User.where(id:1).first => #<User id:1 @root>5.重置密码并报存用户对象irb(main):004:0> user.password='*******' irb(main):005:0> user.save! Enqueued ActionMailer::DeliveryJob (Job ID: a5a683e2-9d9c-402f-8187-3902f3380ced) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", #<GlobalID:0x00007fb8d13bcbd0 @uri=#<URI::GID gid://gitlab/User/1>> => true irb(main):008:0> quit
2023年11月20日
62 阅读
0 评论
0 点赞
2023-11-18
docker版nexus迁移服务器
一、备份nexus数据备份nexus的持久化目录数据使用压缩命令 tar -czvf nexus/data/nexus-data 得到压缩文件nexus.tar.gz,将其拷贝到新服务器待用二、运行新nexus运行与旧服务器相同版本的nexus注意需要先创建好需要用的持久化目录并赋权,例如 mkdir -p nexus/data/nexus-data && sudo chown -R 200:200 nexus验证服务可用性curl -u admin:admin123 http://localhost:8081/service/metrics/ping 如果不通会报错三、替换旧数据解压备份数据包tar -xzvf nexus.tar.gz ,不要与新运行的nexus服务持久化目录同目录,或重命名为nexus_backup,并赋权, sudo chown -R 200:200 nexus_backup拷贝覆盖新nexus服务的数据sudo cp -r nexus_backup/data nexus/四、重启服务docker restart nexus无法正常重启,报错无权限重新赋权持久化目录
2023年11月18日
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日
69 阅读
0 评论
0 点赞
2023-11-17
docker版gitlab忘记管理员密码
一、进入容器进入容器docker exec -it gitlab /bin/sh打开生产数据库控制台gitlab-rails console -e production# gitlab-rails console -e production -------------------------------------------------------------------------------- Ruby: ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c5) [x86_64-linux] GitLab: 15.10.0-ee (defe6e7f882) EE GitLab Shell: 14.18.0 PostgreSQL: 13.8 ------------------------------------------------------------[ booted in 19.46s ] Loading production environment (Rails 6.1.7.2)二、修改用户密码查询id为1的用户名user = User.where(id: 1).first修改密码user.password='new_pwd'确认密码user.password_confirmation='new_pwd'irb(main):001:0> user = User.where(id: 1).first => #<User id:1 @root> irb(main):002:0> user.password='new_pwd' => "new_pwd" irb(main):003:0> user.password_confirmation = 'new_pwd' => "new_pwd" irb(main):004:0> user.save => true
2023年11月17日
77 阅读
0 评论
0 点赞
1
...
10
11
12
...
76
您的IP: