概述
我忘记了VMware Esxi的密码,存储密码的是state.tgz,如果想要更改密码,需要解密并修改,解密部分可以使用crypto-util工具。
解密步骤
1. 准备环境
-
使用Ubuntu 20.04 Live USB启动系统
-
挂载包含加密文件的分区:
sudo mount /dev/sda5 /mnt
我忘记了VMware Esxi的密码,存储密码的是state.tgz,如果想要更改密码,需要解密并修改,解密部分可以使用crypto-util工具。
使用Ubuntu 20.04 Live USB启动系统
挂载包含加密文件的分区:
sudo mount /dev/sda5 /mnt
有一张 600万 左右的表做 select count(*)
占用大量CPU并且速度特别慢。
Server version: 8.0.35-log MySQL Community Server - GPL
SQL 如下,仅仅就是统计 db001.item
这张表的行数,一条简单的不能再简单的 SQL,但却占用了大量CPU资源:
SELECT count(*) FROM `db001`.`item` WHERE project_id IS NULL AND ((tag IS NULL OR tag = '')) AND `item`.`deleted_at` IS NULL;
禁止来自 192.168.12.0/24 子网的设备通过 TCP 协议访问本机的 80、443 和 22 端口。
# 禁止 192.168.12.0/24 子网通过 TCP 协议访问本机的 80、443 和 22 端口
# 或者 iptables -A INPUT -s 192.168.12.0/24 -p tcp -m multiport --dports 80,443,22 -j REJECT --reject-with icmp-port-unreachable
iptables -t filter -A INPUT -s 192.168.12.0/24 -p tcp --dport 80 -j DROP
iptables -t filter -A INPUT -s 192.168.12.0/24 -p tcp --dport 443 -j DROP
iptables -t filter -A INPUT -s 192.168.12.0/24 -p tcp --dport 22 -j DROP
bash <(wget -qO- https://down.vpsaff.net/linux/speedtest/superbench.sh)
或
wget -qO- https://down.vpsaff.net/linux/speedtest/superbench.sh | sudo bash
Gitlab配置文件真是又臭又长,将很多款文件合并到一个文件中,整个配置3601行,英文不太好的朋友很容易因为理解偏差误操作,下面是汉化版本的gitlab.rb文件,我已经将它完全汉化。最后记录了汉化脚本。
这个配置文件是当前最新的,配置文件更新日期:8月 21, 2025
1、使用有admin权限的账号登录GitLab;
2、单击右上角的头像,点击"Settings"进入设置页面;
3、点击左侧菜单Access Tokens,然后生成 Personal Access Tokens;
4、将生成的personal access token记录下来,后面会用到。
创建userlist.txt文件,内容格式如下:
xxxxxxx@G1t2025 [email protected] xxxx 宋xx
xxxxxxx@G1t2025 [email protected] xxxx 李xx
xxxxxxx@G1t2025 [email protected] xxxx 龙xx
xxxxxxx@G1t2025 [email protected] xxxx 李xx
xxxxxxx@G1t2025 [email protected] xxxx 祁xx
xxxxxxx@G1t2025 [email protected] xxxx 曾xx
xxxxxxx@G1t2025 [email protected] xxxx 余xx
xxxxxxx@G1t2025 [email protected] xxxx 李xx
xxxxxxx@G1t2025 [email protected] xxxx 师xx
摘录自:http://www.dellhpibm.com/js-47.html
PowerEdge 系统支持 DDR4 寄存式 DIMM (RDIMM)、低负载 DIMM (LRDIMM) 以及非易失性 DIMM (NVDIMM-N) 和 DCPMM。系统内存可容纳执行由处理器的说明进行操作。
系统包含 24 个内存插槽,分为两组(每组 12 个),每个处理器一组。每组的 12 个插槽分入六通道。每个处理器均分配有六个内存通道。在每个通道中,第一个插槽的释放拉杆标为白色,第二个插槽的标为黑色。
本教程将指导您在 Ubuntu 上安装和配置 TigerVNC 服务器,以便可以通过图形界面远程访问您的 Ubuntu 系统。
Ubuntu 桌面版默认已安装 GNOME 桌面环境。如果您使用的是 Ubuntu 服务器版,则需要手动安装桌面环境。
sudo apt update
sudo apt install ubuntu-gnome-desktop
双击iso文件进入光盘
在次数打开shell,输入命令
在此窗口输入setup.exe /product server,然后敲回车键。注意setup.exe与/ product之间有空格,/product与server之间有空格。
setup.exe /product server
vue项目打包部署上线后发现项目是可以正常运行,点击刷新页面按钮后变成404,需要在Nginx里面设置伪静态规则进行解决,具体步骤如下
文件目录 /etc/nginx/conf.d/default.conf
server {
listen 80;
listen [::]:80;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}