Linux基础

Linux开机自动加载相关文件 /etc/rc.local 可以在里面添加命令,开机执行,需要有执行权限 /etc/fstab 开机时挂载磁盘,第一列挂载设备路径,第二列挂载点,第三列xfs|etx|nfs文件系统,第四列defaults挂载参数,第五列0|1是否做媒体设备检查,第六列0|1是否做数

trx trx Published on 2024-08-31

Linux命令行快捷键和vim用法

快捷键 Ctrl+a 光标快速到行首 Ctrl+e 光标快速到行尾 Ctrl+k 删除光标位置到行尾内容 Ctrl+u 删除光标位置到行首内容 Ctrl+w 按字符串删除内容 Ctrl+insert 复制所选内容 shift+insert 粘贴 Ctrl+r 搜索历史命令 vim用法 快捷键 i 进

trx trx Published on 2024-08-31

npm配置国内仓库

npm config set registry https://registry.npmmirror.com/

trx trx Published on 2024-08-30

windows配置ansible支持

开启winrm winrm quickconfig -q winrm set winrm/config/service '@{AllowUnencrypted="true"}' winrm set winrm/config/service/auth '@{Basic="true"}' 放行防火墙 $

trx trx Published on 2024-08-30

查询本地监听端口对应应用

powershell Get-NetTCPConnection -State Listen | Select-Object -Property LocalAddress, LocalPort, @{Name="ProcessId";Expression={$_.OwningProcess}},

trx trx Published on 2024-08-30

grafana重置密码

# 重置密码 grafana-cli admin reset-admin-password new_password # 重启服务 systemctl restart grafana-server

trx trx Published on 2024-08-29

扫描webshell

#!/bin/bash EXCLUDE_DIRS=( "/proc" "/sys" "/dev" "/run" "/boot" "/var/log" "/var/cache" "/var/run" ) # 定义常见的Webshell后

trx trx Published on 2024-08-27

openssl下载网站证书

echo -n | openssl s_client -connect IP:PORT | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > certificate.crt

trx trx Published on 2024-08-26

场景设计脚本

现场操作教学和验证操作 一、现场操作教学 1. 麦克风基础操作 安装麦克风电池,确保正负极安装正常。 麦克风静音和解开静音,一般麦克风保持开启即可,通过调音台控制。 2. 调音

trx trx Published on 2024-08-23

tomcat9隐藏报错界面版本号

tomcat隐藏版本,在server.xml中找到host元素,在里面添加<Valve className="org.apache.catalina.valves.ErrorReportValve" showReport="false" showServerInfo="false" />,重启tom

trx trx Published on 2024-08-20
Previous Next