- 博客(82)
- 资源 (16)
- 收藏
- 关注
原创 impdp导入Oracle数据操作
自用,记录一下,有不对的地方希望能指正一下1.登陆Oracle数据库sqlplus / as sysdba2. 没有库则建库略3. 没有用户则建用户并授权--创建用户create user username identified by password;--授权grant connect,resource,dba to username;4.没有表空间则创建并扩充表空间 ,表空间所在目录要手动创建(登陆username用户)--创建表空间(初始1G,
2020-08-26 11:44:58 886
原创 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
使用ssh跳到其他服务器提示这个倒数第三行:Offending ECDSA key in /home/scudms/.ssh/known_hosts:14解决方法:vi /home/scudms/.ssh/known_hosts删掉第14行即可然后重新ssh就可以了
2020-10-19 09:56:52 245
原创 mysql查看表对应的物理空间
select concat(round(sum(data_length/1024/1024/1024),2),'GB') from information_schema.tables where table_schema='库名' and table_name='表名';
2020-10-14 12:27:15 409
原创 centos7 docker安装,启动,停止,删除mysql,远程连接
centos7安装docker:https://blog.csdn.net/weixin_42591674/article/details/1089560291.查看镜像docker search mysql2. 拉取官方的最新版本的镜像docker pull mysql:latest3.查看拉取的镜像docker images
2020-10-08 20:48:51 1222
原创 SpringBoot学习(一)myeclipse搭建springboot
1.使用myeclipse搭建springboot1) File -> New ->Other选Spring Web 是为了嵌入一个tomcat,会在pom.xml自动增加: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web...
2020-10-08 15:26:11 1897
原创 centos7安装docker,更换阿里源
1)yum更换为阿里源cd /etc/yum.repos.d#备份原来的mv CentOS-Base.repo CentOS-Base.repo.bak#下载阿里的yum源配置文件wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo#生成缓存yum clean allyum makecache2)安装doctoryum -y install docker#启动docker
2020-10-07 21:31:33 631
原创 VMware安装CentOS7及常用功能安装
1.安装VMware官网地址:https://my.vmware.com/cn/web/vmware/downloads/info/slug/desktop_end_user_computing/vmware_workstation_pro/16_02.准备centos7的iso 包,官网慢,建议用阿里云或者其他镜像阿里云镜像地址:http://mirrors.aliyun.com/centos/7/isos/x86_64/下载标准版,需要其他的自行选择,标准版是 CentOS-7-
2020-10-06 22:00:56 299
原创 java执行shell脚本
import java.io.File;import java.io.IOException;public class Test { public static void main(String[] args) { try { //脚本名,参数1,参数2...... ProcessBuilder pb = new ProcessBuilder("./a.sh","123","456","789"); ...
2020-09-28 11:10:51 232
原创 springboot解决@Autowired为空
在线程中使用@Autowired自动注入了,但是执行报空指针,jdbcTemplate为空,使用new AllSubmitNumThread()导致自动注入失效了public class AllSubmitNumThread extends Thread{ @Autowired JdbcTemplate jdbcTemplate;}public class A{ AllSubmitNumThread t1 = new AllSubmitNumThread ();...
2020-09-15 10:33:45 1227
原创 Thymeleaf 读取后端值出现??a_zh_CN??
Thymeleaf取后端值是显示??a_zh_CN??后端传值:model.addAttribute("a", 123);前端取值:<!--错误写法: <h3 class="red-txt" th:text="#{a}"></h3> --><h3 class="red-txt" th:text="${a}"></h3>#是用于取配置文件中的值的,去后端值要使用$...
2020-09-14 14:29:14 945
原创 Template mode “LEGACYHTML5 “ has not been configured
spring.thymeleaf.mode=LEGACYHTML5上面配置最后多了个空格
2020-09-10 11:55:14 470
原创 linux文件删除后没有释放空间
在Oracle删除表空间及数据文件后,df -h 发现空间并没有被释放 ,使用命令:lsof |grep delete|more我们有大量的文件显示已删除(deleted),但是空间还没有释放解决方法:杀掉进程即可kill -9 18289kill -9 27222...
2020-09-03 14:12:41 379
原创 linux命令后台执行方式
1 命令后加&,比如cp -r a b $执行后返回的2861是进程ID,这样可以在此终端继续执行其他命令,但是终端关闭后命令会停止2.nohup 命令 &nohup cp -r a b &这个关闭终端也不会停止,在当前目录下生成nohup.out记录刚才命令打印日志3.使用定时crontab这个需要安装,可以指定时间去执行命令或者脚本,有需要的单独搜一下这个...
2020-09-03 11:58:16 3335
转载 Centos 7系统挂载NTFS格式移动硬盘
转自:https://www.cnblogs.com/java-h/p/10583932.htmlCentOS 7 下默认不支持挂载 NTFS 格式分区。因此我们需要一个 NTFS-3G 工具,并编译它之后在 mount就可以了。安装ntfs-3g步骤:1、.首先下载 NTFS-3G 工具之后进行解压 wget https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz tar -xvf ntfs-3g_ntfspr..
2020-09-03 11:35:07 236
转载 Linux:tar命令批量解压方法总结
转自:https://blog.csdn.net/silentwolfyh/article/details/53909518由于linux的tar命令不支持批量解压,所以很多网友编写了好多支持批量解压的shell命令,收集了一下,供大家分享:第一:for tar in *.tar.gz; do tar xvf $tar; donefor tar in *.tar.bz2; do tar xvf $tar; done第二:用tar命令批量解压某个文件夹下所有的tar.gz文件ls
2020-08-19 17:22:17 1731
转载 StringUtils里的isEmpty方法和isBlank方法的区别
转自:https://blog.csdn.net/a1102325298/article/details/80410740前言我们常说的字符串为空,其实就是一个没有字符的空数组。比如:String a = ""; a 就可以称为是一个空字符串。由于 String 在 Java 中底层是通过 char 数组去存储字符串的,所以空字符串对应的 char 数组表现形式为...
2019-12-04 11:15:15 120
原创 windows使用node.js和vue才踩坑记录
背景2:继续开发公司一个项目,前端是vue框架1.安装node.js ,请安装能原来项目用的nodejs和npm版本,别直接进去官网就下一份最新版本的,可能会有版本问题2.windows不自带python,npm install 的时候可能会报缺python环境,需要下载python,推荐下载python2.73.npm install不成功,可以跟同事要分没问题的node_mode...
2019-12-02 15:37:34 166
转载 npm报错:A complete log of this run can be fund in: C\Users\用户\AppData\Roaming\npm-cache_logs\解决方案(清理缓)
转自:https://blog.csdn.net/weixin_42470791/article/details/82833415因项目中安装模块,多次不成功,所以导致报错。A complete log of this run can be fund in: C\Users\用户\AppData\Roaming\npm-cache_logs\2018-9-24T10_55_24_806Z-d...
2019-11-20 16:17:53 620
转载 The import junit cannot be resolved解决问题
转自:https://blog.csdn.net/woshiaiouou/article/details/72832354第一次安装Junit,配置环境之后发现添加语句import junit.framework.TestCase; 编译错误解决:项目右键Properties->Java Build Path->Libraries->add library->Jui...
2019-11-19 15:08:13 272
原创 Jmeter简单使用例子http协议,get请求
我们以访问http://192.168.1.199:8080/path?param1=111¶m2=222为例1.下载Jmeter,官网地址:https://jmeter.apache.org/download_jmeter.cgi2.打开Jmeter打开后界面3. 添加线程组,在测试计划右键如图我这里配置的是20个线程数,所有现在立即启动...
2019-11-15 10:15:44 297
转载 java判断一个字符串是否包含另外一个字符串的方法
转自:https://www.cnblogs.com/my-blogs-for-everone/p/8038216.htmlindexOf(String s)的使用,如果包含,返回的值是包含该子字符串在父类字符串中起始位置;如果不包含必定全部返回值为-1package my_automation;public class z_test { public stati...
2019-11-09 00:19:53 9613
原创 centos7 -bash: zip: command not found -bash: unzip: command not found
yum -y install zip unzip
2019-10-24 09:31:09 778
转载 StringBuffer内容清空效率比较
转载自:http://blog.sina.com.cn/s/blog_56fd58ab0100qfcz.html在开发程序的时候,经常使用StringBuffer来进行字符串的拼接。如果在循环中来反复的做字符串拼接时,会清空Stringbuffer中的内容,然后再拼接新的字符串信息。例如:StringBuffer sb = new StringBuffer("");for (...
2019-07-29 17:13:51 129
转载 MYSQL:WARN: Establishing SSL connection without server's identity verification is not recommended.
转自:https://blog.csdn.net/u010429286/article/details/77750177WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7....
2019-07-23 11:38:17 101
原创 Shell 删除文件前两行和删除文件后两行
#!/bin/bash#删除前两行sed -i '1,2d' filename#删除后两行sed -i '$d' filenamesed -i '$d' filename这是我能想到的最简单的写法,有更简单方法的可以评论分享一下...
2019-06-25 14:14:15 8018
原创 linux 删除文件前两行和删除文件后两行
1.删除前两行sed -i '1,2d' filename2.删除后两行sed -i '$d' filenamesed -i '$d' filename这是我能想到的最简单的写法,有更简单方法的可以评论分享一下...
2019-06-25 14:11:06 7711
原创 crontab执行shell脚本无结果,手动执行没问题,改环境变量也不行
说一下我遇到的问题shell文件a.sh#!/bin/bashecho "start"./b.shshell文件b.sh#!/bin/bashecho "end"crontab -e (a.sh和b.sh文件路径/home/)11 * * * * /home/a.sh >> /home/log.log手动执行是没问题的,但是使用c...
2019-06-18 15:39:19 2985
原创 shell执行变量中的命令
变量里面有的命令可以通道${name}执行,比如有的则不行,比如这时候可以使用eval ${name}来执行为什么会这样原因还没有找到,希望懂的大神帮忙评论解疑一下,谢谢...
2019-06-12 16:21:34 7724 2
原创 shell脚本获取当前时间、1分钟前时间、1小时前时间和1天前时间
#获取当前时间time=`date +"%Y-%m-%d %H:%M:%S"`#获取一分钟之前time=`date -d "1 minute ago" +"%Y-%m-%d %H:%M:%S"`#获取一小时之前time=`date -d "1 hour ago" +"%Y-%m-%d %H:%M:%S"`#获取一天前时间time=`date -d "1 day ago"...
2019-06-12 13:14:53 12480
转载 Linux-shell脚本字符串截取
转自https://baijiahao.baidu.com/s?id=1606425493933114713&wfr=spider&for=pcLinux-shell脚本字符串截取前言在Linux shell编程中,我们经常需要截取某个字符串来,继续操作,比如:截取日期来创建整分钟的目录之类的。字符截取测试字符串var=1234567...
2019-06-12 10:41:44 609
原创 在expect连接ssh后执行shell
下面是一个监控各个服务器磁盘和内存的例子,文件名:ssh.exp#!/usr/bin/expectset timeout 5set host [lindex $argv 0]set username [lindex $argv 1]set password [lindex $argv 2]#连接sshspawn ssh $username@$hostexpect { ...
2019-06-11 00:38:39 1045
转载 Linux expect详解
转自:https://www.jellythink.com/archives/373随处可见的expect第一次见expect这个命令还是我第一次参加全量上线的时候,那是公司的一个牛人用Shell脚本写的一套自动部署、MD5 比对、发布的全量上线工具,没事的时候,看了下其中的几个脚本,好多的expect命令。实在是看不懂这个expect命令的用法,所以就找时间总结了这篇关于expect命令...
2019-06-10 22:48:56 294
原创 Centos7配置网络连接
1.eno1是电脑主机名,每个不一定一样,根据自己的来2.BOOTPROTO:开机协议,有dhcp(动态获取)和static(静态IP)3.ONBOOT:开机启动4.IPADDR:指定IP5.NETMASK:子网掩码6.GATEWAY:网关7.DNS1:国内固定DNS,114.114.114.114重启服务systemctl restart network.s...
2019-05-08 15:40:35 1315
转载 Linux Centos 6,Centos 7关闭或开启防火墙的方法
转自:https://www.tpyyes.com/a/linux/2018/0831/745.html在Centos 6服务器中关闭或开启防火墙的方法,使用service命令,分别如下:查询防火墙状态:[root@localhost~]#serviceiptablesstatus停止防火墙:[root@localhost~]#servi...
2019-05-08 10:17:08 1326
原创 正在启动 nginx:nginx: [emerg] "server" directive is not allowed here in /etc/nginx/nginx.conf:40
在nginx.conf中配置增加sever配置后原因是Server放http外面了,应该放在http里面http{sever{}}
2019-05-08 10:10:57 60314
转载 MySQL 报错Fatal error: mysql.user table is damaged
转自:https://www.jianshu.com/p/c6cabef4e9e5shell> mysqlERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)shell> service mysqld restartSto...
2019-05-06 13:26:49 1470
apache-jmeter-5.1.1官网下载.zip
2019-11-15
webservice部署tomcat简单例子(客户端和服务端)
2018-12-07
Twisted-18.7.0-cp37-cp37m-win_amd64
2018-11-28
redis,jedis,sentinel需要的两个jar包
2018-11-28
redis,jedis,sentinel需要的两个jar包
2018-09-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人