- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 visio2013报临时目录下某些文件找不到(实际有)
从office解压后的目录拷过来也不行解决:修改visio的默认安装目录,避免使用和office相同的目录即可
2022-02-09 15:45:22 789
原创 sed获取机器ip及注释行和空行
获取机器IPifconfig eth0|grep -w 'inet'|sed 's/^.*inet//g'|sed 's/netmask.*$//g'说明:grep -w 'inet' 精准匹配字段sed 's/^.*inet//g' 替换匹配字段为空(即删除)sed 's/netmask.*$//g 替换以此开头的字段至末尾为空(即删除)删除配置文件中的注释行和空行sed -i "/^#/d;/^$/d" /etc/zabbix/zabbix_agentd.c...
2020-08-06 23:19:10 310
原创 mysql自动初始化脚本
使用expect来编写#!/usr/bin/expectset timeout 3set password Lsf@zte123spawn mysql_secure_installationexpect {"enter for none" { send "\r";exp_continue}"Y/n" { send "Y\r";exp_continue }"password:" { send "${password}\r" ;exp_continue}"Cleaning up" {.
2020-08-06 23:17:52 263
原创 mysql密码重置(超级简单)
针对root用户密码忘记的情况可以使用如下方式进行重置1、停止数据库服务2、修改/etc/my.cnf在【mysqld】下添加skip-grant-tables3、启动数据库服务此时使用root用户登录不再需要密码use mysqlupdate user set password=password('123456')where user='root';可完成修改密码4、注释或删除刚才添加的skip-grant-tables5、重启数据库...
2020-08-06 23:17:03 730
翻译 testr for openstack
testr for openstack1 介绍 testrtestr is a test runner and is part of testrepository. testrepository has excellent documentation and a very useful manual. This wiki page will try and condense much of the
2016-03-30 14:52:06 1764
原创 logstash+elastic+kibana日志管理工具介绍及安装
logstash+elastic+kibana日志管理工具介绍及安装一、 Logstash 安装1.1 前置条件,安装了官方java 7或更新版本 查看[ldx@1511-min ~]$ java -versionopenjdk version "1.8.0_71"OpenJDK Runtime Environment (build 1.8.0_71-b15)OpenJDK 64-Bit S
2016-03-24 17:47:00 1885
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人