CentOS7进入紧急模式恢复root密码

实战场景:公司一台centos7系统,忘记root密码了,需要你快速把修改root密码,找回root身份。1.首先重启,按↑↓键,进入如下界面,选择第一项,同时按下e键进行编辑。2.在此界面找到ro这一项,改为rw init=/sysroot/bin/sh,修改完成之后,按下Ctrl+X进入紧急模式原理:启动一个shell环境,系统并没有真正启动。3.切换根,修改密码。Linu...
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

Java通过时间戳判断是否过期

通过时间戳判断是否过期:时间戳戳是1971年1月1日到现在经过的秒数可以将时间戳转换为字符串保存中数据库中,再转换为long判断。long generateTime = Long.valueOf(new Date().getTime()/1000);long currentTime = Long.valueOf(new Date().getTime()/1000);boolean val...
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

导出MySQL表结构到Excel(含备注)

一、查询表结构SELECT COLUMN_NAME 列名, COLUMN_TYPE 数据类型, DATA_TYPE 字段类型, CHARACTER_MAXIMUM_LENGTH 长度, IS_NULLABLE 是否为空, COLUMN_DEFAULT 默认值, COLUMN_COMMENT 备注 FROM INFORMATION_SCHEMA.COLUMNS...
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

Notepad++找回缓存的内容

场景:在使用Notepad++的时候,有一个非常方便的自动保存功能,也就是你在新建一个文档后,输入你的内容,在你没有手动保存前,Notepad++会帮你保存当前内容。当你没有保存就退出Notepad++,下次进来Notepad++会自动把你上次编辑的内容显示出来,以便你继续编辑。除非你手动关掉当前页面,这样Notepad++就会删除掉自动保存的内容。(低版本的Notepad++可能没有这个功能...
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

导出 docker部署的MySQL表结构

docker使用 mysqldump命令https://blog.csdn.net/harris135/article/details/79663901https://www.cnblogs.com/yuanyouqi/archive/2010/04/28/1722738.htmlmysqldump 命令详细使用https://www.cnblogs.com/MrHSR/p/9567164...
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

笔记(待整理)

SecureCRT相关配置https://blog.csdn.net/ithomer/article/details/9503123https://blog.51cto.com/sandshell/2109176mariadb相关0. mariadb离线安装Centos7.4安装mariadbmariadb与mysql版本对应1.配置参数innodb_data_file_path参数设置innodb_data参数慢查询参数优化1参数优化2参数优化32.日志相关日志二进制日志
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

git终端代理

设置代理git config --global http.proxy http://127.0.0.1:1087git config --global https.proxy https://127.0.0.1:1087取消代理git config --global --unset http.proxygit config --global --unset https.proxy
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

git拉取GitHub分支

指定分支git clone -b 分支名 仓库地址例:比如拉取nacos 指定1.1.4git clone -b 1.1.4 https://github.com/alibaba/nacos.git
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

vs2015 dynamicweb3-3 枚举类型

webform1.aspx<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="dynamicweb3_3.WebForm1" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><meta http-equiv
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

vs2015 dynamicweb3-4 数组的使用

webform1.aspx<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="dynamicweb3_4.WebForm1" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><meta http-equiv
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

vs2015 dynamicweb3-5 delegate代理

webform1.aspx<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="dynamicweb3_5.WebForm1" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><meta http-equiv
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

javascript userAgent字符串判断浏览器属性的方法

xxx.js//是否winXp系统var isWinXP=navigator.userAgent.indexOf("Windows NT 5.1")>-1||navigator.userAgent.indexOf("Windows XP")>-1;//是否win7系统var isWin7=navigator.userAgent.indexOf("Windows NT 6.1")>-1||navigator.userAgent.indexOf("Windows 7")>-1
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

网站链接href中带搜索词,可以直接进入搜索的输入框中

<script> var value = '要搜索的词' location.href = 'https://www.baidu.com/s?wd='+value // s代表搜索,wd代表word</script>
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

jquery <table>中选中一行,行背景色改变

css文件中.lineColor{ background-color: #eeeeee;}js文件中function TableRowSelectColor(clsName) { $(clsName).find("tr").click(function () { var rows = $(this).parent().find("tr"); if(rows.hasClass("lineColor")) {
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

jquery <table>通过button.Click获取选中行的td值

js文件//table选中行,取pkid值function ReturnSelectRowPK(tableClass, rowClass, pkIndex) { var pkid = $(tableClass).find("tr[class="+rowClass+"]") .find("td").eq(pkIndex).text(); if(pkid == "") { return -1; } return pkid;}
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

asp.net page_load中自动生成控件,解决上下文不存在问题的示例

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace dynamicweb4_8{ public partial class WebForm1 : System.Web.UI.Page { Panel plContent; .
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

vs2015 dynamicweb3-14 类

webform1.aspx<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="dynamicweb3_14.WebForm1" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><meta http-equi
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

vs2015 dynamicweb3-15 类继承

webform1.aspx<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="dynamicweb3_15.WebForm1" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><meta http-equi
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

vs2015 dynamicweb3-16

webform1.aspx<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="dynamicweb3_16.WebForm1" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><meta http-equi
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0

vs2015 dynamicweb3-17 闰年

webform1.aspx<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="dynamicweb3_17.WebForm1" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><meta http-equi
分类: 其他 发布时间: 04-03 10:52 阅读次数: 0